mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-05-24 10:39:52 +00:00
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:
parent
fa8a4b63da
commit
d9a19d200f
2 changed files with 2 additions and 2 deletions
|
@ -292,7 +292,7 @@ static int sp_header(struct sk_buff *skb, struct net_device *dev,
|
||||||
const void *saddr, unsigned len)
|
const void *saddr, unsigned len)
|
||||||
{
|
{
|
||||||
#ifdef CONFIG_INET
|
#ifdef CONFIG_INET
|
||||||
if (type != htons(ETH_P_AX25))
|
if (type != ETH_P_AX25)
|
||||||
return ax25_hard_header(skb, dev, type, daddr, saddr, len);
|
return ax25_hard_header(skb, dev, type, daddr, saddr, len);
|
||||||
#endif
|
#endif
|
||||||
return 0;
|
return 0;
|
||||||
|
|
|
@ -583,7 +583,7 @@ static int ax_header(struct sk_buff *skb, struct net_device *dev,
|
||||||
const void *saddr, unsigned len)
|
const void *saddr, unsigned len)
|
||||||
{
|
{
|
||||||
#ifdef CONFIG_INET
|
#ifdef CONFIG_INET
|
||||||
if (type != htons(ETH_P_AX25))
|
if (type != ETH_P_AX25)
|
||||||
return ax25_hard_header(skb, dev, type, daddr, saddr, len);
|
return ax25_hard_header(skb, dev, type, daddr, saddr, len);
|
||||||
#endif
|
#endif
|
||||||
return 0;
|
return 0;
|
||||||
|
|
Loading…
Add table
Reference in a new issue