From 457819b952418501918b6e906bf5e21e3b4f9af8 Mon Sep 17 00:00:00 2001 From: Pablo Neira Ayuso Date: Sun, 30 Jun 2013 12:34:36 +0200 Subject: xtables: fix missing afinfo configuration I noticed that the iprange match in IPv6 was broken, fix it by overriding the default family (IPv4) if -6 is passed. Signed-off-by: Pablo Neira Ayuso --- iptables/xtables.c | 1 + 1 file changed, 1 insertion(+) (limited to 'iptables/xtables.c') diff --git a/iptables/xtables.c b/iptables/xtables.c index c0585673..4e8d3621 100644 --- a/iptables/xtables.c +++ b/iptables/xtables.c @@ -1045,6 +1045,7 @@ int do_commandx(struct nft_handle *h, int argc, char *argv[], char **table) case '6': args.family = AF_INET6; + xtables_set_nfproto(AF_INET6); break; case 1: /* non option */ -- cgit v1.2.3