diff options
author | YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org> | 2007-03-25 23:11:55 -0400 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2007-04-26 01:23:52 -0400 |
commit | 2953fd246845f4d00af3717163f37b2ff4c5ce29 (patch) | |
tree | a66f03e86ffb44b201f4f876b6826ccce4232108 /net/802/fddi.c | |
parent | 759e5d006462d53fb708daa8284b4ad909415da1 (diff) |
[NET] 802: Use hton{s,l}() where appropriate.
Signed-off-by: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/802/fddi.c')
-rw-r--r-- | net/802/fddi.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/802/fddi.c b/net/802/fddi.c index ace6386384bc..8c86216b1c85 100644 --- a/net/802/fddi.c +++ b/net/802/fddi.c | |||
@@ -100,7 +100,7 @@ static int fddi_rebuild_header(struct sk_buff *skb) | |||
100 | struct fddihdr *fddi = (struct fddihdr *)skb->data; | 100 | struct fddihdr *fddi = (struct fddihdr *)skb->data; |
101 | 101 | ||
102 | #ifdef CONFIG_INET | 102 | #ifdef CONFIG_INET |
103 | if (fddi->hdr.llc_snap.ethertype == __constant_htons(ETH_P_IP)) | 103 | if (fddi->hdr.llc_snap.ethertype == htons(ETH_P_IP)) |
104 | /* Try to get ARP to resolve the header and fill destination address */ | 104 | /* Try to get ARP to resolve the header and fill destination address */ |
105 | return arp_find(fddi->daddr, skb); | 105 | return arp_find(fddi->daddr, skb); |
106 | else | 106 | else |
@@ -135,7 +135,7 @@ __be16 fddi_type_trans(struct sk_buff *skb, struct net_device *dev) | |||
135 | if(fddi->hdr.llc_8022_1.dsap==0xe0) | 135 | if(fddi->hdr.llc_8022_1.dsap==0xe0) |
136 | { | 136 | { |
137 | skb_pull(skb, FDDI_K_8022_HLEN-3); | 137 | skb_pull(skb, FDDI_K_8022_HLEN-3); |
138 | type = __constant_htons(ETH_P_802_2); | 138 | type = htons(ETH_P_802_2); |
139 | } | 139 | } |
140 | else | 140 | else |
141 | { | 141 | { |