From 76c303ac8895b19e53aae37ae2cfa94d8e782554 Mon Sep 17 00:00:00 2001 From: Shivani Bhardwaj Date: Thu, 2 Jun 2016 18:54:42 +0530 Subject: extensions: libxt_devgroup: Fix order of mask and id The order of mask and id in the translated code is not apt so fix it. This patch follows commit 8548dd by Liping Zhang. Signed-off-by: Shivani Bhardwaj Signed-off-by: Pablo Neira Ayuso --- extensions/libxt_devgroup.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'extensions/libxt_devgroup.c') diff --git a/extensions/libxt_devgroup.c b/extensions/libxt_devgroup.c index a30fff0f..f110ea73 100644 --- a/extensions/libxt_devgroup.c +++ b/extensions/libxt_devgroup.c @@ -158,8 +158,8 @@ print_devgroup_xlate(unsigned int id, uint32_t op, unsigned int mask, const char *name = NULL; if (mask != 0xffffffff) - xt_xlate_add(xl, "and 0x%x %s 0x%x ", id, - op == XT_OP_EQ ? "==" : "!=", mask); + xt_xlate_add(xl, "and 0x%x %s 0x%x ", mask, + op == XT_OP_EQ ? "==" : "!=", id); else { if (numeric == 0) name = xtables_lmap_id2name(devgroups, id); -- cgit v1.2.3