[AX25] Introduce ax25_type_trans
Replacing the open coded equivalents and making ax25 look more like a linux network protocol, i.e. more similar to inet. Signed-off-by: Arnaldo Carvalho de Melo <acme@ghostprotocols.net> Signed-off-by: Ralf Baechle <ralf@linux-mips.org> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
3b2d59d1fc
commit
56cb515628
@@ -143,8 +143,7 @@ static void ax25_kiss_cmd(ax25_dev *ax25_dev, unsigned char cmd, unsigned char p
|
||||
*p++ = cmd;
|
||||
*p++ = param;
|
||||
|
||||
skb->dev = ax25_dev->dev;
|
||||
skb->protocol = htons(ETH_P_AX25);
|
||||
skb->protocol = ax25_type_trans(skb, ax25_dev->dev);
|
||||
|
||||
dev_queue_xmit(skb);
|
||||
}
|
||||
|
Reference in New Issue
Block a user