From 4ed4c5f9f3f5cf007f9d2f168d310e83fb16408a Mon Sep 17 00:00:00 2001 From: Jozsef Kadlecsik Date: Mon, 19 Oct 2015 20:20:19 +0200 Subject: Fix detecting 'struct net' in 'struct tcf_ematch' Nikolay Borisov reported that the detection is broken. Fix checking in the right sctructure and wrap the call to dev_get_by_index_rcu() too. --- configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index 91567da..8829403 100644 --- a/configure.ac +++ b/configure.ac @@ -367,7 +367,7 @@ 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 | \ + $AWK '/^struct tcf_ematch / {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) -- cgit v1.2.3