diff options
author | Pablo Neira Ayuso <pablo@netfilter.org> | 2013-02-23 18:27:08 +0100 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2013-12-30 23:50:26 +0100 |
commit | 3f7877e6be987bb94897c03a45945725389a6f5c (patch) | |
tree | 6000a614aa23fa8c89b2ba13c10d758c11f18815 /iptables/nft.c | |
parent | 077785df023ad8947d44d19769bc6d91e3917633 (diff) |
xtables-restore: add -4 and -6 support
Now you can specify:
xtables-restore -6 < my-ip6tables-ruleset
to restore the IPv6 rule-set.
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'iptables/nft.c')
-rw-r--r-- | iptables/nft.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/iptables/nft.c b/iptables/nft.c index 273d0838..88fd84be 100644 --- a/iptables/nft.c +++ b/iptables/nft.c @@ -2630,7 +2630,7 @@ static int nft_action(struct nft_handle *h, int type) nlh->nlmsg_seq = seq = time(NULL); struct nfgenmsg *nfg = mnl_nlmsg_put_extra_header(nlh, sizeof(*nfg)); - nfg->nfgen_family = AF_INET; + nfg->nfgen_family = h->family; nfg->version = NFNETLINK_V0; nfg->res_id = 0; |