]> git.baikalelectronics.ru Git - kernel.git/commitdiff
net: dev_is_mac_header_xmit() true for ARPHRD_RAWIP
authorMaciej Żenczykowski <maze@google.com>
Thu, 24 Jan 2019 11:07:02 +0000 (03:07 -0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 25 Jan 2019 06:45:34 +0000 (22:45 -0800)
__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>
include/linux/if_arp.h

index 6756fea18b69f6176bf73c749a977ba15e37d840..e44746de95cdf9193c470d78382797465f39c5ba 100644 (file)
@@ -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;