diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2021-02-18 13:38:00 +0100 |
---|---|---|
committer | Michael Bestas <mkbestas@lineageos.org> | 2021-07-23 02:43:42 +0300 |
commit | 5e386c74e1b5e09828b13815b49b0e028b51fc97 (patch) | |
tree | 5e8f873993448368a550a4f6135baae79284cb38 /drivers/net/wireguard/receive.c | |
parent | d6c1dbfc8d382168f37ff6a893bdc2640e43845b (diff) |
device: do not generate ICMP for non-IP packets
If skb->protocol doesn't match the actual skb->data header, it's
probably not a good idea to pass it off to icmp{,v6}_ndo_send, which is
expecting to reply to a valid IP packet. So this commit has that early
mismatch case jump to a later error label.
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Change-Id: I89049b5c67889f73600a0d219cb39ad47f5e65d9
Diffstat (limited to 'drivers/net/wireguard/receive.c')
0 files changed, 0 insertions, 0 deletions