Skip to content
Snippets Groups Projects
Commit f9aefd6b authored by Eric Dumazet's avatar Eric Dumazet Committed by Paolo Abeni
Browse files

net: warn if mac header was not set


Make sure skb_mac_header(), skb_mac_offset() and skb_mac_header_len() uses
are not fooled if the mac header has not been set.

These checks are enabled if CONFIG_DEBUG_NET=y

This commit will likely expose existing bugs in linux networking stacks.

Signed-off-by: default avatarEric Dumazet <edumazet@google.com>
Link: https://lore.kernel.org/r/20220620093017.3366713-1-eric.dumazet@gmail.com


Signed-off-by: default avatarPaolo Abeni <pabeni@redhat.com>
parent 4336487e
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment