aboutsummaryrefslogtreecommitdiffstats
path: root/net/802/hippi.c
diff options
context:
space:
mode:
authorYOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>2007-03-25 23:11:55 -0400
committerDavid S. Miller <davem@sunset.davemloft.net>2007-04-26 01:23:52 -0400
commit2953fd246845f4d00af3717163f37b2ff4c5ce29 (patch)
treea66f03e86ffb44b201f4f876b6826ccce4232108 /net/802/hippi.c
parent759e5d006462d53fb708daa8284b4ad909415da1 (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/hippi.c')
-rw-r--r--net/802/hippi.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/802/hippi.c b/net/802/hippi.c
index 578f2a3d692d..35dd938cff95 100644
--- a/net/802/hippi.c
+++ b/net/802/hippi.c
@@ -60,7 +60,7 @@ static int hippi_header(struct sk_buff *skb, struct net_device *dev,
60 * Due to the stupidity of the little endian byte-order we 60 * Due to the stupidity of the little endian byte-order we
61 * have to set the fp field this way. 61 * have to set the fp field this way.
62 */ 62 */
63 hip->fp.fixed = __constant_htonl(0x04800018); 63 hip->fp.fixed = htonl(0x04800018);
64 hip->fp.d2_size = htonl(len + 8); 64 hip->fp.d2_size = htonl(len + 8);
65 hip->le.fc = 0; 65 hip->le.fc = 0;
66 hip->le.double_wide = 0; /* only HIPPI 800 for the time being */ 66 hip->le.double_wide = 0; /* only HIPPI 800 for the time being */
@@ -104,7 +104,7 @@ static int hippi_rebuild_header(struct sk_buff *skb)
104 * Only IP is currently supported 104 * Only IP is currently supported
105 */ 105 */
106 106
107 if(hip->snap.ethertype != __constant_htons(ETH_P_IP)) 107 if(hip->snap.ethertype != htons(ETH_P_IP))
108 { 108 {
109 printk(KERN_DEBUG "%s: unable to resolve type %X addresses.\n",skb->dev->name,ntohs(hip->snap.ethertype)); 109 printk(KERN_DEBUG "%s: unable to resolve type %X addresses.\n",skb->dev->name,ntohs(hip->snap.ethertype));
110 return 0; 110 return 0;