From mboxrd@z Thu Jan 1 00:00:00 1970 From: Roi Dayan Subject: [PATCH iproute2-next] tc: Fix compilation error with old iptables Date: Tue, 27 Mar 2018 12:20:48 +0300 Message-ID: <1522142448-27697-1-git-send-email-roid@mellanox.com> Cc: netdev@vger.kernel.org, Stephen Hemminger , Eyal Birger , Roi Dayan To: David Ahern Return-path: Received: from mail-il-dmz.mellanox.com ([193.47.165.129]:49218 "EHLO mellanox.co.il" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752370AbeC0JVC (ORCPT ); Tue, 27 Mar 2018 05:21:02 -0400 Sender: netdev-owner@vger.kernel.org List-ID: 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 --- 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