mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 18:51:56 -04:00
[TIPC]: Corrected potential misuse of tipc_media_addr structure.
Signed-off-by: Allan Stephens <[email protected]> Signed-off-by: Per Liden <[email protected]> Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
parent
2535ec50b7
commit
4938450789
2 changed files with 13 additions and 3 deletions
|
|
@ -49,10 +49,18 @@
|
|||
|
||||
#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 {
|
||||
__u32 type;
|
||||
__u32 type; /* bearer type (network byte order) */
|
||||
union {
|
||||
__u8 eth_addr[6]; /* Ethernet bearer */
|
||||
__u8 eth_addr[6]; /* 48 bit Ethernet addr (byte array) */
|
||||
#if 0
|
||||
/* Prototypes for other possible bearer types */
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue