From: Shivani Bhardwaj Date: Thu, 2 Jun 2016 13:24:42 +0000 (+0530) Subject: extensions: libxt_devgroup: Fix order of mask and id X-Git-Tag: v1.6.1~79 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=76c303ac8895b19e53aae37ae2cfa94d8e782554;p=thirdparty%2Fiptables.git 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 --- 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);