[PATCH iproute2-next] tc: Fix compilation error with old iptables

Subsystems: the rest

STALE3125d

2 messages, 2 authors, 2018-03-27 · open the first message on its own page

[PATCH iproute2-next] tc: Fix compilation error with old iptables

From: Roi Dayan <hidden>
Date: 2018-03-27 09:21:02

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 <redacted>
---
 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

Re: [PATCH iproute2-next] tc: Fix compilation error with old iptables

From: David Ahern <hidden>
Date: 2018-03-27 13:40:43

On 3/27/18 3:20 AM, Roi Dayan wrote:
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 <redacted>
---
 tc/em_ipt.c | 2 ++
 1 file changed, 2 insertions(+)
Applied to iproute2-next. Thanks,
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help