diff options
author | YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org> | 2007-03-25 23:12:18 -0400 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2007-04-26 01:23:53 -0400 |
commit | b93b7eebd328d5c1d171896fb823267539d4a0f6 (patch) | |
tree | 652add75965e7829b903a4e92e3cd24d228f1011 | |
parent | 2953fd246845f4d00af3717163f37b2ff4c5ce29 (diff) |
[NET] 8021Q: Use htons() where appropriate.
Signed-off-by: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | net/8021q/vlan_dev.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/net/8021q/vlan_dev.c b/net/8021q/vlan_dev.c index b6e0eea1e39e..0991e293940f 100644 --- a/net/8021q/vlan_dev.c +++ b/net/8021q/vlan_dev.c | |||
@@ -258,7 +258,7 @@ int vlan_skb_recv(struct sk_buff *skb, struct net_device *dev, | |||
258 | * won't work for fault tolerant netware but does for the rest. | 258 | * won't work for fault tolerant netware but does for the rest. |
259 | */ | 259 | */ |
260 | if (*(unsigned short *)rawp == 0xFFFF) { | 260 | if (*(unsigned short *)rawp == 0xFFFF) { |
261 | skb->protocol = __constant_htons(ETH_P_802_3); | 261 | skb->protocol = htons(ETH_P_802_3); |
262 | /* place it back on the queue to be handled by true layer 3 protocols. | 262 | /* place it back on the queue to be handled by true layer 3 protocols. |
263 | */ | 263 | */ |
264 | 264 | ||
@@ -281,7 +281,7 @@ int vlan_skb_recv(struct sk_buff *skb, struct net_device *dev, | |||
281 | /* | 281 | /* |
282 | * Real 802.2 LLC | 282 | * Real 802.2 LLC |
283 | */ | 283 | */ |
284 | skb->protocol = __constant_htons(ETH_P_802_2); | 284 | skb->protocol = htons(ETH_P_802_2); |
285 | /* place it back on the queue to be handled by upper layer protocols. | 285 | /* place it back on the queue to be handled by upper layer protocols. |
286 | */ | 286 | */ |
287 | 287 | ||
@@ -448,7 +448,7 @@ int vlan_dev_hard_start_xmit(struct sk_buff *skb, struct net_device *dev) | |||
448 | * OTHER THINGS LIKE FDDI/TokenRing/802.3 SNAPs... | 448 | * OTHER THINGS LIKE FDDI/TokenRing/802.3 SNAPs... |
449 | */ | 449 | */ |
450 | 450 | ||
451 | if (veth->h_vlan_proto != __constant_htons(ETH_P_8021Q)) { | 451 | if (veth->h_vlan_proto != htons(ETH_P_8021Q)) { |
452 | int orig_headroom = skb_headroom(skb); | 452 | int orig_headroom = skb_headroom(skb); |
453 | unsigned short veth_TCI; | 453 | unsigned short veth_TCI; |
454 | 454 | ||