summaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2006-11-08 00:26:29 -0800
committerDavid S. Miller <davem@sunset.davemloft.net>2006-12-02 21:21:24 -0800
commit0e11c91e1e912bc4db5b71607d149e7e9a77e756 (patch)
treeb04a580d0dd0598a8188ed6f67673ee5e20e02a0 /include/linux
parent3fbd418acc264e7069483d04165633ed3bfad80c (diff)
downloadop-kernel-dev-0e11c91e1e912bc4db5b71607d149e7e9a77e756.zip
op-kernel-dev-0e11c91e1e912bc4db5b71607d149e7e9a77e756.tar.gz
[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')
-rw-r--r--include/linux/if_packet.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/include/linux/if_packet.h b/include/linux/if_packet.h
index b9255854..99393ef 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;
OpenPOWER on IntegriCloud