From cccfff9309743f173c504dd265fae173caa5b47f Mon Sep 17 00:00:00 2001 From: Pablo Neira Ayuso Date: Sat, 16 Mar 2013 12:11:07 +0100 Subject: libip6t_NETMAP: Use xtables_ip6mask_to_cidr and get rid of libip6tc dependency This patch changes the NETMAP target extension (IPv6 side) to use the xtables_ip6mask_to_cidr available in libxtables. As a side effect, we get rid of the libip6tc dependency. Signed-off-by: Pablo Neira Ayuso --- iptables/ip6tables.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'iptables') diff --git a/iptables/ip6tables.c b/iptables/ip6tables.c index 4cfbea3d..7d02cc12 100644 --- a/iptables/ip6tables.c +++ b/iptables/ip6tables.c @@ -1022,7 +1022,7 @@ static void print_ip(const char *prefix, const struct in6_addr *ip, const struct in6_addr *mask, int invert) { char buf[51]; - int l = ipv6_prefix_length(mask); + int l = xtables_ip6mask_to_cidr(mask); if (l == 0 && !invert) return; -- cgit v1.2.3