summaryrefslogtreecommitdiffstats
path: root/iptables/xtables-restore.c
diff options
context:
space:
mode:
authorPablo Neira Ayuso <pablo@netfilter.org>2013-06-30 12:34:36 +0200
committerPablo Neira Ayuso <pablo@netfilter.org>2013-12-30 23:50:35 +0100
commit457819b952418501918b6e906bf5e21e3b4f9af8 (patch)
treef0c57f9db7ff7c5aeb5d3c0ccccf113c0296b092 /iptables/xtables-restore.c
parent9283066f1216276116b3f4f85abf18bd673a7b11 (diff)
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 <pablo@netfilter.org>
Diffstat (limited to 'iptables/xtables-restore.c')
-rw-r--r--iptables/xtables-restore.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/iptables/xtables-restore.c b/iptables/xtables-restore.c
index a5d2a65d..e66f10cd 100644
--- a/iptables/xtables-restore.c
+++ b/iptables/xtables-restore.c
@@ -233,6 +233,7 @@ xtables_restore_main(int argc, char *argv[])
break;
case '6':
h.family = AF_INET6;
+ xtables_set_nfproto(AF_INET6);
break;
}
}