hamradio: ->hard_header() takes packet type in host-endian

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
Al Viro
2007-10-14 19:40:49 +01:00
committed by Linus Torvalds
부모 fa8a4b63da
커밋 d9a19d200f
2개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제

파일 보기

@@ -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;

파일 보기

@@ -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;