diff options
author | Patrick McHardy <kaber@trash.net> | 2009-11-24 16:11:46 +0100 |
---|---|---|
committer | Patrick McHardy <kaber@trash.net> | 2009-11-24 16:11:46 +0100 |
commit | b1f40e1d31b900f90fd5641a483788ed9cb91c64 (patch) | |
tree | 9a3f24769e026a0ee4cdb3f44565807198402598 /ip6tables.c | |
parent | f294f843473718f8d32745600b9a97c0b799e7c5 (diff) | |
parent | 1bd2f0a20596e47c082c2415369a209ed1b329f6 (diff) |
Merge branch 'master' of git://dev.medozas.de/iptables
Diffstat (limited to 'ip6tables.c')
-rw-r--r-- | ip6tables.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/ip6tables.c b/ip6tables.c index f6daa51c..e2359dfe 100644 --- a/ip6tables.c +++ b/ip6tables.c @@ -758,13 +758,15 @@ static int replace_entry(const ip6t_chainlabel chain, struct ip6t_entry *fw, unsigned int rulenum, - const struct in6_addr *saddr, - const struct in6_addr *daddr, + const struct in6_addr *saddr, const struct in6_addr *smask, + const struct in6_addr *daddr, const struct in6_addr *dmask, int verbose, struct ip6tc_handle *handle) { fw->ipv6.src = *saddr; fw->ipv6.dst = *daddr; + fw->ipv6.smsk = *smask; + fw->ipv6.dmsk = *dmask; if (verbose) print_firewall_line(fw, handle); @@ -1947,8 +1949,8 @@ int do_command6(int argc, char *argv[], char **table, struct ip6tc_handle **hand break; case CMD_REPLACE: ret = replace_entry(chain, e, rulenum - 1, - saddrs, daddrs, options&OPT_VERBOSE, - *handle); + saddrs, smasks, daddrs, dmasks, + options&OPT_VERBOSE, *handle); break; case CMD_INSERT: ret = insert_entry(chain, e, rulenum - 1, |