diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2006-11-15 00:11:51 -0500 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2006-12-03 00:22:56 -0500 |
commit | 47c183fa5ea7feebc356da8ccbd9105a41f8e534 (patch) | |
tree | 632e361178e7af9070c68ff0d7784a6a5d79c65e | |
parent | 30d492da738a8d5f4ec884b3e1a13eef97714994 (diff) |
[BRIDGE]: Annotations.
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | include/linux/netfilter_bridge.h | 2 | ||||
-rw-r--r-- | include/linux/netfilter_bridge/ebt_802_3.h | 10 | ||||
-rw-r--r-- | include/linux/netfilter_bridge/ebt_among.h | 2 | ||||
-rw-r--r-- | include/linux/netfilter_bridge/ebt_arp.h | 14 | ||||
-rw-r--r-- | include/linux/netfilter_bridge/ebt_ip.h | 8 | ||||
-rw-r--r-- | include/linux/netfilter_bridge/ebt_vlan.h | 2 | ||||
-rw-r--r-- | include/linux/netfilter_bridge/ebtables.h | 2 | ||||
-rw-r--r-- | net/bridge/br_netfilter.c | 2 | ||||
-rw-r--r-- | net/bridge/netfilter/ebt_802_3.c | 2 | ||||
-rw-r--r-- | net/bridge/netfilter/ebt_among.c | 22 | ||||
-rw-r--r-- | net/bridge/netfilter/ebt_arp.c | 6 | ||||
-rw-r--r-- | net/bridge/netfilter/ebt_ip.c | 4 | ||||
-rw-r--r-- | net/bridge/netfilter/ebt_log.c | 6 | ||||
-rw-r--r-- | net/bridge/netfilter/ebt_vlan.c | 2 |
14 files changed, 42 insertions, 42 deletions
diff --git a/include/linux/netfilter_bridge.h b/include/linux/netfilter_bridge.h index 9a4dd11af86e..6c4613f8ad75 100644 --- a/include/linux/netfilter_bridge.h +++ b/include/linux/netfilter_bridge.h | |||
@@ -64,7 +64,7 @@ static inline int nf_bridge_pad(const struct sk_buff *skb) | |||
64 | 64 | ||
65 | struct bridge_skb_cb { | 65 | struct bridge_skb_cb { |
66 | union { | 66 | union { |
67 | __u32 ipv4; | 67 | __be32 ipv4; |
68 | } daddr; | 68 | } daddr; |
69 | }; | 69 | }; |
70 | 70 | ||
diff --git a/include/linux/netfilter_bridge/ebt_802_3.h b/include/linux/netfilter_bridge/ebt_802_3.h index b9f712c14a0a..07f044ff1a6b 100644 --- a/include/linux/netfilter_bridge/ebt_802_3.h +++ b/include/linux/netfilter_bridge/ebt_802_3.h | |||
@@ -28,21 +28,21 @@ struct hdr_ui { | |||
28 | uint8_t ssap; | 28 | uint8_t ssap; |
29 | uint8_t ctrl; | 29 | uint8_t ctrl; |
30 | uint8_t orig[3]; | 30 | uint8_t orig[3]; |
31 | uint16_t type; | 31 | __be16 type; |
32 | }; | 32 | }; |
33 | 33 | ||
34 | struct hdr_ni { | 34 | struct hdr_ni { |
35 | uint8_t dsap; | 35 | uint8_t dsap; |
36 | uint8_t ssap; | 36 | uint8_t ssap; |
37 | uint16_t ctrl; | 37 | __be16 ctrl; |
38 | uint8_t orig[3]; | 38 | uint8_t orig[3]; |
39 | uint16_t type; | 39 | __be16 type; |
40 | }; | 40 | }; |
41 | 41 | ||
42 | struct ebt_802_3_hdr { | 42 | struct ebt_802_3_hdr { |
43 | uint8_t daddr[6]; | 43 | uint8_t daddr[6]; |
44 | uint8_t saddr[6]; | 44 | uint8_t saddr[6]; |
45 | uint16_t len; | 45 | __be16 len; |
46 | union { | 46 | union { |
47 | struct hdr_ui ui; | 47 | struct hdr_ui ui; |
48 | struct hdr_ni ni; | 48 | struct hdr_ni ni; |
@@ -61,7 +61,7 @@ static inline struct ebt_802_3_hdr *ebt_802_3_hdr(const struct sk_buff *skb) | |||
61 | struct ebt_802_3_info | 61 | struct ebt_802_3_info |
62 | { | 62 | { |
63 | uint8_t sap; | 63 | uint8_t sap; |
64 | uint16_t type; | 64 | __be16 type; |
65 | uint8_t bitmask; | 65 | uint8_t bitmask; |
66 | uint8_t invflags; | 66 | uint8_t invflags; |
67 | }; | 67 | }; |
diff --git a/include/linux/netfilter_bridge/ebt_among.h b/include/linux/netfilter_bridge/ebt_among.h index 307c1fed8511..7654069233ca 100644 --- a/include/linux/netfilter_bridge/ebt_among.h +++ b/include/linux/netfilter_bridge/ebt_among.h | |||
@@ -32,7 +32,7 @@ | |||
32 | struct ebt_mac_wormhash_tuple | 32 | struct ebt_mac_wormhash_tuple |
33 | { | 33 | { |
34 | uint32_t cmp[2]; | 34 | uint32_t cmp[2]; |
35 | uint32_t ip; | 35 | __be32 ip; |
36 | }; | 36 | }; |
37 | 37 | ||
38 | struct ebt_mac_wormhash | 38 | struct ebt_mac_wormhash |
diff --git a/include/linux/netfilter_bridge/ebt_arp.h b/include/linux/netfilter_bridge/ebt_arp.h index 537ec6b487a2..97e4dbde1f89 100644 --- a/include/linux/netfilter_bridge/ebt_arp.h +++ b/include/linux/netfilter_bridge/ebt_arp.h | |||
@@ -14,13 +14,13 @@ | |||
14 | 14 | ||
15 | struct ebt_arp_info | 15 | struct ebt_arp_info |
16 | { | 16 | { |
17 | uint16_t htype; | 17 | __be16 htype; |
18 | uint16_t ptype; | 18 | __be16 ptype; |
19 | uint16_t opcode; | 19 | __be16 opcode; |
20 | uint32_t saddr; | 20 | __be32 saddr; |
21 | uint32_t smsk; | 21 | __be32 smsk; |
22 | uint32_t daddr; | 22 | __be32 daddr; |
23 | uint32_t dmsk; | 23 | __be32 dmsk; |
24 | unsigned char smaddr[ETH_ALEN]; | 24 | unsigned char smaddr[ETH_ALEN]; |
25 | unsigned char smmsk[ETH_ALEN]; | 25 | unsigned char smmsk[ETH_ALEN]; |
26 | unsigned char dmaddr[ETH_ALEN]; | 26 | unsigned char dmaddr[ETH_ALEN]; |
diff --git a/include/linux/netfilter_bridge/ebt_ip.h b/include/linux/netfilter_bridge/ebt_ip.h index 7247385cdcb1..d6847475bf2e 100644 --- a/include/linux/netfilter_bridge/ebt_ip.h +++ b/include/linux/netfilter_bridge/ebt_ip.h | |||
@@ -28,10 +28,10 @@ | |||
28 | /* the same values are used for the invflags */ | 28 | /* the same values are used for the invflags */ |
29 | struct ebt_ip_info | 29 | struct ebt_ip_info |
30 | { | 30 | { |
31 | uint32_t saddr; | 31 | __be32 saddr; |
32 | uint32_t daddr; | 32 | __be32 daddr; |
33 | uint32_t smsk; | 33 | __be32 smsk; |
34 | uint32_t dmsk; | 34 | __be32 dmsk; |
35 | uint8_t tos; | 35 | uint8_t tos; |
36 | uint8_t protocol; | 36 | uint8_t protocol; |
37 | uint8_t bitmask; | 37 | uint8_t bitmask; |
diff --git a/include/linux/netfilter_bridge/ebt_vlan.h b/include/linux/netfilter_bridge/ebt_vlan.h index cb1fcc41565f..1d98be4031e7 100644 --- a/include/linux/netfilter_bridge/ebt_vlan.h +++ b/include/linux/netfilter_bridge/ebt_vlan.h | |||
@@ -10,7 +10,7 @@ | |||
10 | struct ebt_vlan_info { | 10 | struct ebt_vlan_info { |
11 | uint16_t id; /* VLAN ID {1-4095} */ | 11 | uint16_t id; /* VLAN ID {1-4095} */ |
12 | uint8_t prio; /* VLAN User Priority {0-7} */ | 12 | uint8_t prio; /* VLAN User Priority {0-7} */ |
13 | uint16_t encap; /* VLAN Encapsulated frame code {0-65535} */ | 13 | __be16 encap; /* VLAN Encapsulated frame code {0-65535} */ |
14 | uint8_t bitmask; /* Args bitmask bit 1=1 - ID arg, | 14 | uint8_t bitmask; /* Args bitmask bit 1=1 - ID arg, |
15 | bit 2=1 User-Priority arg, bit 3=1 encap*/ | 15 | bit 2=1 User-Priority arg, bit 3=1 encap*/ |
16 | uint8_t invflags; /* Inverse bitmask bit 1=1 - inversed ID arg, | 16 | uint8_t invflags; /* Inverse bitmask bit 1=1 - inversed ID arg, |
diff --git a/include/linux/netfilter_bridge/ebtables.h b/include/linux/netfilter_bridge/ebtables.h index b1a7cc90877b..e6ea70de24d5 100644 --- a/include/linux/netfilter_bridge/ebtables.h +++ b/include/linux/netfilter_bridge/ebtables.h | |||
@@ -141,7 +141,7 @@ struct ebt_entry { | |||
141 | /* this needs to be the first field */ | 141 | /* this needs to be the first field */ |
142 | unsigned int bitmask; | 142 | unsigned int bitmask; |
143 | unsigned int invflags; | 143 | unsigned int invflags; |
144 | uint16_t ethproto; | 144 | __be16 ethproto; |
145 | /* the physical in-dev */ | 145 | /* the physical in-dev */ |
146 | char in[IFNAMSIZ]; | 146 | char in[IFNAMSIZ]; |
147 | /* the logical in-dev */ | 147 | /* the logical in-dev */ |
diff --git a/net/bridge/br_netfilter.c b/net/bridge/br_netfilter.c index ac181be13d83..2a5d31b1a196 100644 --- a/net/bridge/br_netfilter.c +++ b/net/bridge/br_netfilter.c | |||
@@ -381,7 +381,7 @@ static int check_hbh_len(struct sk_buff *skb) | |||
381 | case IPV6_TLV_JUMBO: | 381 | case IPV6_TLV_JUMBO: |
382 | if (skb->nh.raw[off + 1] != 4 || (off & 3) != 2) | 382 | if (skb->nh.raw[off + 1] != 4 || (off & 3) != 2) |
383 | goto bad; | 383 | goto bad; |
384 | pkt_len = ntohl(*(u32 *) (skb->nh.raw + off + 2)); | 384 | pkt_len = ntohl(*(__be32 *) (skb->nh.raw + off + 2)); |
385 | if (pkt_len <= IPV6_MAXPLEN || | 385 | if (pkt_len <= IPV6_MAXPLEN || |
386 | skb->nh.ipv6h->payload_len) | 386 | skb->nh.ipv6h->payload_len) |
387 | goto bad; | 387 | goto bad; |
diff --git a/net/bridge/netfilter/ebt_802_3.c b/net/bridge/netfilter/ebt_802_3.c index d42f63f5e9f8..9abbc09ccdc3 100644 --- a/net/bridge/netfilter/ebt_802_3.c +++ b/net/bridge/netfilter/ebt_802_3.c | |||
@@ -17,7 +17,7 @@ static int ebt_filter_802_3(const struct sk_buff *skb, const struct net_device * | |||
17 | { | 17 | { |
18 | struct ebt_802_3_info *info = (struct ebt_802_3_info *)data; | 18 | struct ebt_802_3_info *info = (struct ebt_802_3_info *)data; |
19 | struct ebt_802_3_hdr *hdr = ebt_802_3_hdr(skb); | 19 | struct ebt_802_3_hdr *hdr = ebt_802_3_hdr(skb); |
20 | uint16_t type = hdr->llc.ui.ctrl & IS_UI ? hdr->llc.ui.type : hdr->llc.ni.type; | 20 | __be16 type = hdr->llc.ui.ctrl & IS_UI ? hdr->llc.ui.type : hdr->llc.ni.type; |
21 | 21 | ||
22 | if (info->bitmask & EBT_802_3_SAP) { | 22 | if (info->bitmask & EBT_802_3_SAP) { |
23 | if (FWINV(info->sap != hdr->llc.ui.ssap, EBT_802_3_SAP)) | 23 | if (FWINV(info->sap != hdr->llc.ui.ssap, EBT_802_3_SAP)) |
diff --git a/net/bridge/netfilter/ebt_among.c b/net/bridge/netfilter/ebt_among.c index a614485828af..ce97c4285f9a 100644 --- a/net/bridge/netfilter/ebt_among.c +++ b/net/bridge/netfilter/ebt_among.c | |||
@@ -15,7 +15,7 @@ | |||
15 | #include <linux/module.h> | 15 | #include <linux/module.h> |
16 | 16 | ||
17 | static int ebt_mac_wormhash_contains(const struct ebt_mac_wormhash *wh, | 17 | static int ebt_mac_wormhash_contains(const struct ebt_mac_wormhash *wh, |
18 | const char *mac, uint32_t ip) | 18 | const char *mac, __be32 ip) |
19 | { | 19 | { |
20 | /* You may be puzzled as to how this code works. | 20 | /* You may be puzzled as to how this code works. |
21 | * Some tricks were used, refer to | 21 | * Some tricks were used, refer to |
@@ -70,7 +70,7 @@ static int ebt_mac_wormhash_check_integrity(const struct ebt_mac_wormhash | |||
70 | return 0; | 70 | return 0; |
71 | } | 71 | } |
72 | 72 | ||
73 | static int get_ip_dst(const struct sk_buff *skb, uint32_t *addr) | 73 | static int get_ip_dst(const struct sk_buff *skb, __be32 *addr) |
74 | { | 74 | { |
75 | if (eth_hdr(skb)->h_proto == htons(ETH_P_IP)) { | 75 | if (eth_hdr(skb)->h_proto == htons(ETH_P_IP)) { |
76 | struct iphdr _iph, *ih; | 76 | struct iphdr _iph, *ih; |
@@ -81,16 +81,16 @@ static int get_ip_dst(const struct sk_buff *skb, uint32_t *addr) | |||
81 | *addr = ih->daddr; | 81 | *addr = ih->daddr; |
82 | } else if (eth_hdr(skb)->h_proto == htons(ETH_P_ARP)) { | 82 | } else if (eth_hdr(skb)->h_proto == htons(ETH_P_ARP)) { |
83 | struct arphdr _arph, *ah; | 83 | struct arphdr _arph, *ah; |
84 | uint32_t buf, *bp; | 84 | __be32 buf, *bp; |
85 | 85 | ||
86 | ah = skb_header_pointer(skb, 0, sizeof(_arph), &_arph); | 86 | ah = skb_header_pointer(skb, 0, sizeof(_arph), &_arph); |
87 | if (ah == NULL || | 87 | if (ah == NULL || |
88 | ah->ar_pln != sizeof(uint32_t) || | 88 | ah->ar_pln != sizeof(__be32) || |
89 | ah->ar_hln != ETH_ALEN) | 89 | ah->ar_hln != ETH_ALEN) |
90 | return -1; | 90 | return -1; |
91 | bp = skb_header_pointer(skb, sizeof(struct arphdr) + | 91 | bp = skb_header_pointer(skb, sizeof(struct arphdr) + |
92 | 2 * ETH_ALEN + sizeof(uint32_t), | 92 | 2 * ETH_ALEN + sizeof(__be32), |
93 | sizeof(uint32_t), &buf); | 93 | sizeof(__be32), &buf); |
94 | if (bp == NULL) | 94 | if (bp == NULL) |
95 | return -1; | 95 | return -1; |
96 | *addr = *bp; | 96 | *addr = *bp; |
@@ -98,7 +98,7 @@ static int get_ip_dst(const struct sk_buff *skb, uint32_t *addr) | |||
98 | return 0; | 98 | return 0; |
99 | } | 99 | } |
100 | 100 | ||
101 | static int get_ip_src(const struct sk_buff *skb, uint32_t *addr) | 101 | static int get_ip_src(const struct sk_buff *skb, __be32 *addr) |
102 | { | 102 | { |
103 | if (eth_hdr(skb)->h_proto == htons(ETH_P_IP)) { | 103 | if (eth_hdr(skb)->h_proto == htons(ETH_P_IP)) { |
104 | struct iphdr _iph, *ih; | 104 | struct iphdr _iph, *ih; |
@@ -109,15 +109,15 @@ static int get_ip_src(const struct sk_buff *skb, uint32_t *addr) | |||
109 | *addr = ih->saddr; | 109 | *addr = ih->saddr; |
110 | } else if (eth_hdr(skb)->h_proto == htons(ETH_P_ARP)) { | 110 | } else if (eth_hdr(skb)->h_proto == htons(ETH_P_ARP)) { |
111 | struct arphdr _arph, *ah; | 111 | struct arphdr _arph, *ah; |
112 | uint32_t buf, *bp; | 112 | __be32 buf, *bp; |
113 | 113 | ||
114 | ah = skb_header_pointer(skb, 0, sizeof(_arph), &_arph); | 114 | ah = skb_header_pointer(skb, 0, sizeof(_arph), &_arph); |
115 | if (ah == NULL || | 115 | if (ah == NULL || |
116 | ah->ar_pln != sizeof(uint32_t) || | 116 | ah->ar_pln != sizeof(__be32) || |
117 | ah->ar_hln != ETH_ALEN) | 117 | ah->ar_hln != ETH_ALEN) |
118 | return -1; | 118 | return -1; |
119 | bp = skb_header_pointer(skb, sizeof(struct arphdr) + | 119 | bp = skb_header_pointer(skb, sizeof(struct arphdr) + |
120 | ETH_ALEN, sizeof(uint32_t), &buf); | 120 | ETH_ALEN, sizeof(__be32), &buf); |
121 | if (bp == NULL) | 121 | if (bp == NULL) |
122 | return -1; | 122 | return -1; |
123 | *addr = *bp; | 123 | *addr = *bp; |
@@ -133,7 +133,7 @@ static int ebt_filter_among(const struct sk_buff *skb, | |||
133 | struct ebt_among_info *info = (struct ebt_among_info *) data; | 133 | struct ebt_among_info *info = (struct ebt_among_info *) data; |
134 | const char *dmac, *smac; | 134 | const char *dmac, *smac; |
135 | const struct ebt_mac_wormhash *wh_dst, *wh_src; | 135 | const struct ebt_mac_wormhash *wh_dst, *wh_src; |
136 | uint32_t dip = 0, sip = 0; | 136 | __be32 dip = 0, sip = 0; |
137 | 137 | ||
138 | wh_dst = ebt_among_wh_dst(info); | 138 | wh_dst = ebt_among_wh_dst(info); |
139 | wh_src = ebt_among_wh_src(info); | 139 | wh_src = ebt_among_wh_src(info); |
diff --git a/net/bridge/netfilter/ebt_arp.c b/net/bridge/netfilter/ebt_arp.c index a6c81d9f73b8..9c599800a900 100644 --- a/net/bridge/netfilter/ebt_arp.c +++ b/net/bridge/netfilter/ebt_arp.c | |||
@@ -35,10 +35,10 @@ static int ebt_filter_arp(const struct sk_buff *skb, const struct net_device *in | |||
35 | return EBT_NOMATCH; | 35 | return EBT_NOMATCH; |
36 | 36 | ||
37 | if (info->bitmask & (EBT_ARP_SRC_IP | EBT_ARP_DST_IP)) { | 37 | if (info->bitmask & (EBT_ARP_SRC_IP | EBT_ARP_DST_IP)) { |
38 | uint32_t _addr, *ap; | 38 | __be32 _addr, *ap; |
39 | 39 | ||
40 | /* IPv4 addresses are always 4 bytes */ | 40 | /* IPv4 addresses are always 4 bytes */ |
41 | if (ah->ar_pln != sizeof(uint32_t)) | 41 | if (ah->ar_pln != sizeof(__be32)) |
42 | return EBT_NOMATCH; | 42 | return EBT_NOMATCH; |
43 | if (info->bitmask & EBT_ARP_SRC_IP) { | 43 | if (info->bitmask & EBT_ARP_SRC_IP) { |
44 | ap = skb_header_pointer(skb, sizeof(struct arphdr) + | 44 | ap = skb_header_pointer(skb, sizeof(struct arphdr) + |
@@ -53,7 +53,7 @@ static int ebt_filter_arp(const struct sk_buff *skb, const struct net_device *in | |||
53 | 53 | ||
54 | if (info->bitmask & EBT_ARP_DST_IP) { | 54 | if (info->bitmask & EBT_ARP_DST_IP) { |
55 | ap = skb_header_pointer(skb, sizeof(struct arphdr) + | 55 | ap = skb_header_pointer(skb, sizeof(struct arphdr) + |
56 | 2*ah->ar_hln+sizeof(uint32_t), | 56 | 2*ah->ar_hln+sizeof(__be32), |
57 | sizeof(_addr), &_addr); | 57 | sizeof(_addr), &_addr); |
58 | if (ap == NULL) | 58 | if (ap == NULL) |
59 | return EBT_NOMATCH; | 59 | return EBT_NOMATCH; |
diff --git a/net/bridge/netfilter/ebt_ip.c b/net/bridge/netfilter/ebt_ip.c index 65b665ce57b5..e4c642448e1b 100644 --- a/net/bridge/netfilter/ebt_ip.c +++ b/net/bridge/netfilter/ebt_ip.c | |||
@@ -20,8 +20,8 @@ | |||
20 | #include <linux/module.h> | 20 | #include <linux/module.h> |
21 | 21 | ||
22 | struct tcpudphdr { | 22 | struct tcpudphdr { |
23 | uint16_t src; | 23 | __be16 src; |
24 | uint16_t dst; | 24 | __be16 dst; |
25 | }; | 25 | }; |
26 | 26 | ||
27 | static int ebt_filter_ip(const struct sk_buff *skb, const struct net_device *in, | 27 | static int ebt_filter_ip(const struct sk_buff *skb, const struct net_device *in, |
diff --git a/net/bridge/netfilter/ebt_log.c b/net/bridge/netfilter/ebt_log.c index 466ed3440b74..a184f879f253 100644 --- a/net/bridge/netfilter/ebt_log.c +++ b/net/bridge/netfilter/ebt_log.c | |||
@@ -38,8 +38,8 @@ static int ebt_log_check(const char *tablename, unsigned int hookmask, | |||
38 | 38 | ||
39 | struct tcpudphdr | 39 | struct tcpudphdr |
40 | { | 40 | { |
41 | uint16_t src; | 41 | __be16 src; |
42 | uint16_t dst; | 42 | __be16 dst; |
43 | }; | 43 | }; |
44 | 44 | ||
45 | struct arppayload | 45 | struct arppayload |
@@ -130,7 +130,7 @@ ebt_log_packet(unsigned int pf, unsigned int hooknum, | |||
130 | * then log the ARP payload */ | 130 | * then log the ARP payload */ |
131 | if (ah->ar_hrd == htons(1) && | 131 | if (ah->ar_hrd == htons(1) && |
132 | ah->ar_hln == ETH_ALEN && | 132 | ah->ar_hln == ETH_ALEN && |
133 | ah->ar_pln == sizeof(uint32_t)) { | 133 | ah->ar_pln == sizeof(__be32)) { |
134 | struct arppayload _arpp, *ap; | 134 | struct arppayload _arpp, *ap; |
135 | 135 | ||
136 | ap = skb_header_pointer(skb, sizeof(_arph), | 136 | ap = skb_header_pointer(skb, sizeof(_arph), |
diff --git a/net/bridge/netfilter/ebt_vlan.c b/net/bridge/netfilter/ebt_vlan.c index a2b452862b73..7ee377622964 100644 --- a/net/bridge/netfilter/ebt_vlan.c +++ b/net/bridge/netfilter/ebt_vlan.c | |||
@@ -55,7 +55,7 @@ ebt_filter_vlan(const struct sk_buff *skb, | |||
55 | unsigned short id; /* VLAN ID, given from frame TCI */ | 55 | unsigned short id; /* VLAN ID, given from frame TCI */ |
56 | unsigned char prio; /* user_priority, given from frame TCI */ | 56 | unsigned char prio; /* user_priority, given from frame TCI */ |
57 | /* VLAN encapsulated Type/Length field, given from orig frame */ | 57 | /* VLAN encapsulated Type/Length field, given from orig frame */ |
58 | unsigned short encap; | 58 | __be16 encap; |
59 | 59 | ||
60 | fp = skb_header_pointer(skb, 0, sizeof(_frame), &_frame); | 60 | fp = skb_header_pointer(skb, 0, sizeof(_frame), &_frame); |
61 | if (fp == NULL) | 61 | if (fp == NULL) |