Xie He
2d854a00a8
drivers/net/wan/lapbether: Make skb->protocol consistent with the header
...
[ Upstream commit 83f9a9c8c1 ]
This driver is a virtual driver stacked on top of Ethernet interfaces.
When this driver transmits data on the Ethernet device, the skb->protocol
setting is inconsistent with the Ethernet header prepended to the skb.
This causes a user listening on the Ethernet interface with an AF_PACKET
socket, to see different sll_protocol values for incoming and outgoing
frames, because incoming frames would have this value set by parsing the
Ethernet header.
This patch changes the skb->protocol value for outgoing Ethernet frames,
making it consistent with the Ethernet header prepended. This makes a
user listening on the Ethernet device with an AF_PACKET socket, to see
the same sll_protocol value for incoming and outgoing frames.
Cc: Martin Schiller <ms@dev.tdt.de >
Signed-off-by: Xie He <xie.he.0141@gmail.com >
Signed-off-by: David S. Miller <davem@davemloft.net >
Signed-off-by: Sasha Levin <sashal@kernel.org >
2023-05-16 09:23:37 +09:00
..
2023-05-16 09:15:18 +09:00
2018-05-01 15:13:08 -07:00
2023-05-12 16:27:16 +09:00
2023-05-16 08:54:24 +09:00
2023-05-16 09:17:11 +09:00
2023-05-16 09:16:55 +09:00
2018-02-13 12:35:55 +01:00
2023-05-16 08:57:44 +09:00
2023-05-15 16:46:34 +09:00
2023-05-16 09:12:53 +09:00
2023-05-15 16:30:44 +09:00
2023-05-15 17:13:43 +09:00
2023-05-15 16:21:24 +09:00
2023-05-16 09:16:12 +09:00
2023-05-16 09:14:56 +09:00
2023-05-16 09:16:51 +09:00
2023-05-16 09:15:59 +09:00
2023-05-15 17:34:06 +09:00
2023-05-16 08:47:23 +09:00
2018-02-28 10:18:33 +01:00
2023-05-16 09:14:54 +09:00
2023-05-16 09:15:41 +09:00
2023-05-15 16:17:55 +09:00
2023-05-16 08:57:04 +09:00
2023-05-16 08:19:49 +09:00
2023-05-15 16:31:00 +09:00
2023-05-16 08:29:32 +09:00
2023-05-16 09:23:31 +09:00
2023-05-16 09:23:33 +09:00
2022-03-15 09:20:56 +09:00
2023-05-16 09:04:06 +09:00
2018-03-24 11:00:12 +01:00
2023-05-16 09:13:23 +09:00
2023-05-16 09:04:09 +09:00
2023-05-15 17:11:00 +09:00
2023-05-16 09:16:46 +09:00
2023-05-16 09:04:57 +09:00
2023-05-15 12:46:28 +09:00
2023-05-16 09:12:43 +09:00
2023-05-16 09:15:36 +09:00
2023-05-16 09:23:32 +09:00
2023-05-16 09:04:35 +09:00
2023-05-16 08:31:09 +09:00
2023-05-15 16:15:52 +09:00
2023-05-16 08:46:35 +09:00
2023-05-15 17:34:39 +09:00
2023-05-15 14:08:07 +09:00
2017-09-09 17:39:41 +02:00
2023-05-16 09:15:02 +09:00
2023-05-16 09:15:50 +09:00
2023-05-15 12:52:51 +09:00
2023-05-15 14:51:01 +09:00
2023-05-16 08:29:41 +09:00
2023-05-16 09:14:59 +09:00
2023-05-16 08:46:23 +09:00
2023-05-15 17:34:04 +09:00
2023-05-16 09:16:36 +09:00
2023-05-16 09:23:37 +09:00
2023-05-16 09:12:14 +09:00
2023-05-15 15:18:34 +09:00
2023-05-16 09:04:57 +09:00
2023-05-16 09:04:10 +09:00
2023-05-15 17:31:34 +09:00
2023-05-15 17:16:01 +09:00
2023-05-16 08:47:32 +09:00
2023-05-15 16:19:36 +09:00
2023-05-16 08:56:52 +09:00
2023-05-15 09:18:55 +09:00
2023-05-15 14:09:37 +09:00
2023-05-16 09:16:16 +09:00
2023-05-16 08:47:11 +09:00
2023-05-16 08:45:44 +09:00
2023-05-16 08:46:54 +09:00
2023-05-15 12:46:28 +09:00
2023-05-15 14:08:51 +09:00
2023-05-15 17:27:25 +09:00
2023-05-16 08:48:30 +09:00
2023-05-16 09:13:19 +09:00
2023-05-16 09:12:48 +09:00
2023-05-15 17:23:50 +09:00
2023-05-15 15:12:21 +09:00
2023-05-15 09:23:11 +09:00
2023-05-15 17:15:54 +09:00
2023-05-16 08:57:18 +09:00
2023-05-15 10:37:00 +09:00
2023-05-16 09:15:33 +09:00
2023-05-15 17:15:58 +09:00
2023-05-16 09:13:17 +09:00
2023-05-15 12:59:29 +09:00
2023-05-16 09:13:01 +09:00
2023-05-16 09:12:51 +09:00
2023-05-15 09:23:01 +09:00
2020-02-04 13:48:58 +09:00
2023-05-16 09:04:36 +09:00
2023-05-15 14:55:28 +09:00
2023-05-16 09:16:20 +09:00
2023-05-16 08:31:00 +09:00
2023-05-16 09:23:30 +09:00
2023-05-15 08:28:33 +09:00
2023-05-16 09:16:43 +09:00
2023-05-15 17:25:24 +09:00
2023-05-16 09:13:28 +09:00
2023-05-15 12:50:46 +09:00
2023-05-16 08:54:57 +09:00
2023-05-15 16:59:11 +09:00
2023-05-15 17:34:48 +09:00
2023-05-16 08:48:16 +09:00
2023-05-16 09:04:14 +09:00
2018-05-30 07:50:44 +02:00
2019-12-11 18:21:09 +09:00
2019-12-11 18:21:09 +09:00