[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
@@ -1630,10 +1630,7 @@ static void scc_net_rx(struct scc_channel *scc, struct sk_buff *skb)
|
||||
scc->dev_stat.rx_packets++;
|
||||
scc->dev_stat.rx_bytes += skb->len;
|
||||
|
||||
skb->dev = scc->dev;
|
||||
skb->protocol = htons(ETH_P_AX25);
|
||||
skb->mac.raw = skb->data;
|
||||
skb->pkt_type = PACKET_HOST;
|
||||
skb->protocol = ax25_type_trans(skb, scc->dev);
|
||||
|
||||
netif_rx(skb);
|
||||
scc->dev->last_rx = jiffies;
|
||||
|
Reference in New Issue
Block a user