diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2006-11-08 00:26:29 -0800 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2006-12-02 21:21:24 -0800 |
commit | 0e11c91e1e912bc4db5b71607d149e7e9a77e756 (patch) | |
tree | b04a580d0dd0598a8188ed6f67673ee5e20e02a0 /include/linux/if_packet.h | |
parent | 3fbd418acc264e7069483d04165633ed3bfad80c (diff) | |
download | linux-stable-0e11c91e1e912bc4db5b71607d149e7e9a77e756.tar.gz linux-stable-0e11c91e1e912bc4db5b71607d149e7e9a77e756.tar.bz2 linux-stable-0e11c91e1e912bc4db5b71607d149e7e9a77e756.zip |
[AF_PACKET]: annotate
Weirdness: the third argument of socket() is net-endian
here. Oh, well - it's documented in packet(7).
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/if_packet.h')
-rw-r--r-- | include/linux/if_packet.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/include/linux/if_packet.h b/include/linux/if_packet.h index b92558549d27..99393ef3af39 100644 --- a/include/linux/if_packet.h +++ b/include/linux/if_packet.h @@ -1,17 +1,19 @@ #ifndef __LINUX_IF_PACKET_H #define __LINUX_IF_PACKET_H +#include <linux/types.h> + struct sockaddr_pkt { unsigned short spkt_family; unsigned char spkt_device[14]; - unsigned short spkt_protocol; + __be16 spkt_protocol; }; struct sockaddr_ll { unsigned short sll_family; - unsigned short sll_protocol; + __be16 sll_protocol; int sll_ifindex; unsigned short sll_hatype; unsigned char sll_pkttype; |