From 3ee3e5ad6e6eb06f13297dd67054325a9af6926a Mon Sep 17 00:00:00 2001 From: Jozsef Kadlecsik Date: Mon, 3 Nov 2014 18:35:28 +0100 Subject: Kernel API changes in em_ipset.c, support both old and new ones --- configure.ac | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index 10529af..8e5c270 100644 --- a/configure.ac +++ b/configure.ac @@ -333,6 +333,28 @@ else AC_SUBST(HAVE_KVFREE, undef) fi +AC_MSG_CHECKING([kernel source for struct net in the change function of tcf_ematch_ops]) +if test -f $ksourcedir/include/net/pkt_cls.h && \ + $AWK '/^struct tcf_ematch_ops / {for(i=1; i<=5; i++) {getline; print}}' $ksourcedir/include/net/pkt_cls.h | \ + $GREP -q '\*change..struct net \*net'; then + AC_MSG_RESULT(yes) + AC_SUBST(HAVE_TCF_EMATCH_OPS_CHANGE_ARG_NET, define) +else + AC_MSG_RESULT(no) + AC_SUBST(HAVE_TCF_EMATCH_OPS_CHANGE_ARG_NET, undef) +fi + +AC_MSG_CHECKING([kernel source for struct net in struct tcf_ematch]) +if test -f $ksourcedir/include/net/pkt_cls.h && \ + $AWK '/^struct tcf_ematch_ops / {for(i=1; i<=7; i++) {getline; print}}' $ksourcedir/include/net/pkt_cls.h | \ + $GREP -q 'struct net'; then + AC_MSG_RESULT(yes) + AC_SUBST(HAVE_TCF_EMATCH_STRUCT_NET, define) +else + AC_MSG_RESULT(no) + AC_SUBST(HAVE_TCF_EMATCH_STRUCT_NET, 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 -- cgit v1.2.3