summaryrefslogtreecommitdiffhomepage
path: root/src/peer.c
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2021-02-18 13:38:00 +0100
committerJason A. Donenfeld <Jason@zx2c4.com>2021-02-18 15:22:33 +0100
commita63edc04c19ab0d46769dd66c869f3c48fd35d3d (patch)
tree461611b9273ff6f16722afc73d68c1a30ccfa98c /src/peer.c
parentad32b95c94897850f906d6e6a160e6cc803af85b (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>
Diffstat (limited to 'src/peer.c')
0 files changed, 0 insertions, 0 deletions