]> git.ipfire.org Git - thirdparty/iptables.git/commitdiff
libxt_devgroup: actually set XT_DEVGROUP_OPT_???GROUP flags
authorLutz Jaenicke <ljaenicke@innominate.com>
Mon, 23 May 2011 14:28:25 +0000 (16:28 +0200)
committerPatrick McHardy <kaber@trash.net>
Mon, 23 May 2011 14:28:25 +0000 (16:28 +0200)
Signed-off-by: Lutz Jaenicke <ljaenicke@innominate.com>
Signed-off-by: Patrick McHardy <kaber@trash.net>
extensions/libxt_devgroup.c

index a925dd08a2915337cdbab1c1e8215e28ee5f96ad..4487c83304ab7aeef16b9ffb62e1705c2c9a654b 100644 (file)
@@ -70,6 +70,7 @@ static void devgroup_parse(struct xt_option_call *cb)
                        info->src_group = id;
                        info->src_mask  = 0xffffffff;
                }
+               info->flags |= XT_DEVGROUP_MATCH_SRC;
                if (cb->invert)
                        info->flags |= XT_DEVGROUP_INVERT_SRC;
                break;
@@ -93,6 +94,7 @@ static void devgroup_parse(struct xt_option_call *cb)
                        info->dst_group = id;
                        info->dst_mask  = 0xffffffff;
                }
+               info->flags |= XT_DEVGROUP_MATCH_DST;
                if (cb->invert)
                        info->flags |= XT_DEVGROUP_INVERT_DST;
                break;