Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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 <[email protected]>
- Loading branch information