hamradio: ->hard_header() takes packet type in host-endian
authorAl Viro <viro@ftp.linux.org.uk>
Sun, 14 Oct 2007 18:40:49 +0000 (19:40 +0100)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Sun, 14 Oct 2007 19:41:52 +0000 (12:41 -0700)
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/net/hamradio/6pack.c
drivers/net/hamradio/mkiss.c

index ecd156def0398b24864313843b712caa186fb9ca..ad9e327c3b0366a99cd670d8be71dbdc64af6b12 100644 (file)
@@ -292,7 +292,7 @@ static int sp_header(struct sk_buff *skb, struct net_device *dev,
                     const void *saddr, unsigned len)
 {
 #ifdef CONFIG_INET
-       if (type != htons(ETH_P_AX25))
+       if (type != ETH_P_AX25)
                return ax25_hard_header(skb, dev, type, daddr, saddr, len);
 #endif
        return 0;
index 9e43c47691caa4c9d12a6015a1668277424c3b25..803a3bdea0af5f1e36d02055157f55107aff7c87 100644 (file)
@@ -583,7 +583,7 @@ static int ax_header(struct sk_buff *skb, struct net_device *dev,
                     const void *saddr, unsigned len)
 {
 #ifdef CONFIG_INET
-       if (type != htons(ETH_P_AX25))
+       if (type != ETH_P_AX25)
                return ax25_hard_header(skb, dev, type, daddr, saddr, len);
 #endif
        return 0;