tipc: Hide media-specific addressing details from generic bearer code
[deliverable/linux.git] / net / tipc / bearer.h
index 41a61d219c382795a7f91bd4d61df075563a8fb1..54a5a575d69a72bfef6734c2a890a815a8ed0029 100644 (file)
 #define TIPC_MEDIA_TYPE_ETH    1
 
 /*
- * Destination address structure used by TIPC bearers when sending messages
- *
- * IMPORTANT: The fields of this structure MUST be stored using the specified
- * byte order indicated below, as the structure is exchanged between nodes
- * as part of a link setup process.
+ * struct tipc_media_addr - destination address used by TIPC bearers
+ * @value: address info (format defined by media)
+ * @media_id: TIPC media type identifier
+ * @broadcast: non-zero if address is a broadcast address
  */
+
 struct tipc_media_addr {
-       __be32  type;                   /* bearer type (network byte order) */
-       union {
-               __u8   eth_addr[6];     /* 48 bit Ethernet addr (byte array) */
-       } dev_addr;
+       u8 value[TIPC_MEDIA_ADDR_SIZE];
+       u8 media_id;
+       u8 broadcast;
 };
 
 struct tipc_bearer;
This page took 0.029286 seconds and 5 git commands to generate.