]> git.ipfire.org Git - thirdparty/ipset.git/commit
configure.ac: Build on kernels without skb->vlan_proto correctly
authorSerhey Popovych <serhe.popovych@gmail.com>
Fri, 29 Nov 2019 09:21:29 +0000 (11:21 +0200)
committerJozsef Kadlecsik <kadlec@netfilter.org>
Mon, 9 Dec 2019 10:02:27 +0000 (11:02 +0100)
commitde06e92fc9b22f9c78316a2f2f4bc524696a91f6
treeffd218411fa6c531f1ee0329abd8840d76b62cc8
parentbb750b8ded015c4447cc2eee601709f50d06574e
configure.ac: Build on kernels without skb->vlan_proto correctly

Support for EtherType other than ETH_P_8021Q for VLAN header introduced
with commit 86a9bad3ab6b ("net: vlan: add protocol argument to packet
tagging functions") in upstream kernel since v3.10.

To support build on older kernels check for ->vlan_proto presence in
@struct sk_buff and return htons(ETH_P_8021Q) when it is missing.

Signed-off-by: Serhey Popovych <serhe.popovych@gmail.com>
Signed-off-by: Jozsef Kadlecsik <kadlec@netfilter.org>
configure.ac
kernel/include/linux/netfilter/ipset/ip_set_compat.h.in