diff options
Diffstat (limited to 'tools/iptables-test.c')
-rw-r--r-- | tools/iptables-test.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/iptables-test.c b/tools/iptables-test.c index feefc535..5411bd1d 100644 --- a/tools/iptables-test.c +++ b/tools/iptables-test.c @@ -1488,6 +1488,7 @@ static int parse_ip_and_mask(const char *str, struct in_addr *ip, struct in_addr } mask->s_addr = htonl(tmp); + ip->s_addr = ip->s_addr & mask->s_addr; err = 0; out: g_strfreev(tokens); |