diff options
author | Maciej Żenczykowski <maze@google.com> | 2019-01-24 03:07:02 -0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-01-24 22:45:34 -0800 |
commit | 3b707c3008cad04604c1f50e39f456621821c414 (patch) | |
tree | 16dd39eeb619e1224302f05eacae70e60a66b6bb /include | |
parent | 6eea3527e68acc22483f4763c8682f223eb90029 (diff) | |
download | linux-3b707c3008cad04604c1f50e39f456621821c414.tar.bz2 |
net: dev_is_mac_header_xmit() true for ARPHRD_RAWIP
__bpf_redirect() and act_mirred checks this boolean
to determine whether to prefix an ethernet header.
Signed-off-by: Maciej Żenczykowski <maze@google.com>
Acked-by: Daniel Borkmann <daniel@iogearbox.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/if_arp.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/if_arp.h b/include/linux/if_arp.h index 6756fea18b69..e44746de95cd 100644 --- a/include/linux/if_arp.h +++ b/include/linux/if_arp.h @@ -54,6 +54,7 @@ static inline bool dev_is_mac_header_xmit(const struct net_device *dev) case ARPHRD_IPGRE: case ARPHRD_VOID: case ARPHRD_NONE: + case ARPHRD_RAWIP: return false; default: return true; |