summaryrefslogtreecommitdiff
path: root/drivers/net/wireguard/queueing.h
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2020-06-29 19:06:20 -0600
committerJason A. Donenfeld <Jason@zx2c4.com>2022-07-07 13:26:43 +0200
commit3e9342cd2b3dee7159d25e00653e087ea4e73ed7 (patch)
treea3f7688dbf68c0a1683b3cd7d8fb6c8fbb3ad32a /drivers/net/wireguard/queueing.h
parent5939006ae1134bf11d89cc9fd0e31fa814a6e919 (diff)
downloadwireguard-linux-trimmed-3e9342cd2b3dee7159d25e00653e087ea4e73ed7.tar.gz
wireguard-linux-trimmed-3e9342cd2b3dee7159d25e00653e087ea4e73ed7.zip
wireguard: implement header_ops->parse_protocol for AF_PACKET
commit 8e74568ed5725a9782c1f6306e1832e34713e6ec upstream. WireGuard uses skb->protocol to determine packet type, and bails out if it's not set or set to something it's not expecting. For AF_PACKET injection, we need to support its call chain of: packet_sendmsg -> packet_snd -> packet_parse_headers -> dev_parse_header_protocol -> parse_protocol Without a valid parse_protocol, this returns zero, and wireguard then rejects the skb. So, this wires up the ip_tunnel handler for layer 3 packets for that case. Reported-by: Hans Wippel <ndev@hwipl.net> Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com> Signed-off-by: David S. Miller <davem@davemloft.net> Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'drivers/net/wireguard/queueing.h')
0 files changed, 0 insertions, 0 deletions