]> 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)
commit1363e1befaa8a4227576d7c304fbb7cfa0fcd926
treee765ca351e3d2be8eab1d800752462b2a02cc83e
parent37963833564be13f27ff33d016b52909e7964ea2
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