]> git.baikalelectronics.ru Git - kernel.git/commit
wan/hdlc_x25: fix skb handling
authorMartin Schiller <ms@dev.tdt.de>
Tue, 21 Jan 2020 06:00:34 +0000 (07:00 +0100)
committerDavid S. Miller <davem@davemloft.net>
Tue, 21 Jan 2020 10:41:36 +0000 (11:41 +0100)
commit7fe4dfeb03fab540f8aa4a5ae46b907297cb24e3
treee765ca351e3d2be8eab1d800752462b2a02cc83e
parentfc827f43f61011d34265f09fa3d8e53100c7c9a9
wan/hdlc_x25: fix skb handling

o call skb_reset_network_header() before hdlc->xmit()
 o change skb proto to HDLC (0x0019) before hdlc->xmit()
 o call dev_queue_xmit_nit() before hdlc->xmit()

This changes make it possible to trace (tcpdump) outgoing layer2
(ETH_P_HDLC) packets

Additionally call skb_reset_network_header() after each skb_push() /
skb_pull().

Signed-off-by: Martin Schiller <ms@dev.tdt.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/wan/hdlc_x25.c