[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1522142448-27697-1-git-send-email-roid@mellanox.com>
Date: Tue, 27 Mar 2018 12:20:48 +0300
From: Roi Dayan <roid@...lanox.com>
To: David Ahern <dsahern@...il.com>
Cc: netdev@...r.kernel.org,
Stephen Hemminger <stephen@...workplumber.org>,
Eyal Birger <eyal.birger@...il.com>,
Roi Dayan <roid@...lanox.com>
Subject: [PATCH iproute2-next] tc: Fix compilation error with old iptables
The compat_rev field does not exists in old versions of iptables.
e.g. iptables 1.4.
Fixes: dd29621578d2 ("tc: add em_ipt ematch for calling xtables matches from tc matching context")
Signed-off-by: Roi Dayan <roid@...lanox.com>
---
tc/em_ipt.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/tc/em_ipt.c b/tc/em_ipt.c
index 9d2b2f9b46d4..aa2edd63c550 100644
--- a/tc/em_ipt.c
+++ b/tc/em_ipt.c
@@ -41,7 +41,9 @@ static struct xtables_globals em_tc_ipt_globals = {
.program_version = "0.1",
.orig_opts = original_opts,
.opts = original_opts,
+#if (XTABLES_VERSION_CODE >= 11)
.compat_rev = xtables_compatible_revision,
+#endif
};
static struct xt_entry_match *fake_xt_entry_match(int data_size, void *data)
--
2.7.0
Powered by blists - more mailing lists