summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorJozsef Kadlecsik <kadlec@netfilter.org>2020-11-19 13:50:02 +0100
committerJozsef Kadlecsik <kadlec@netfilter.org>2020-11-19 13:50:02 +0100
commitc965c9770b0a8c49375fdf47c544bc2bb3c3bce6 (patch)
tree75c08cf5ba28a4c897e23efbc516d2f949edb4f9 /configure.ac
parent8f1af2e9fe86f3c9ca2925855d1622d7e7b2b708 (diff)
downloadipset-c965c9770b0a8c49375fdf47c544bc2bb3c3bce6.tar.gz
Compatibility: use skb_policy() from if_vlan.h if available
Signed-off-by: Jozsef Kadlecsik <kadlec@netfilter.org>
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac10
1 files changed, 10 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 7388cdd..dcb533d 100644
--- a/configure.ac
+++ b/configure.ac
@@ -756,6 +756,16 @@ else
AC_SUBST(HAVE_LIST_FOR_EACH_ENTRY_RCU_FOUR_ARGS, undef)
fi
+AC_MSG_CHECKING([kernel source for skb_protocol() in if_vlan.h])
+if test -f $ksourcedir/include/linux/if_vlan.h && \
+ $GREP -q 'static inline __be16 skb_protocol' $ksourcedir/include/linux/if_vlan.h; then
+ AC_MSG_RESULT(yes)
+ AC_SUBST(HAVE_SKB_PROTOCOL, define)
+else
+ AC_MSG_RESULT(no)
+ AC_SUBST(HAVE_SKB_PROTOCOL, undef)
+fi
+
AC_MSG_CHECKING([kernel source for struct net_generic])
if test -f $ksourcedir/include/net/netns/generic.h && \
$GREP -q 'struct net_generic' $ksourcedir/include/net/netns/generic.h; then