]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 24 Feb 2020 07:36:29 +0000 (08:36 +0100)
commit37ea6d15b1970cdc34169291d80e2bd267d2008e
treeb32b8e00d12206e77748530831c770d3e258fc9b
parent77b131f652d426c916a1c3b45d45325136e5610e
wan/hdlc_x25: fix skb handling

[ Upstream commit 953c4a08dfc9ffe763a8340ac10f459d6c6cc4eb ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/wan/hdlc_x25.c