commit a25e1ace7aac161fe8f61882b10dfb65551f8239 Author: Bernhard Miklautz <miklautz@xxxxxxxxx> Date: Fri Oct 17 18:49:53 2008 +0200 libxt_conntrack: respect -n option during ruledump Reference: http://bugs.debian.org/502548 Signed-off-by: Jan Engelhardt <jengelh@xxxxxxxxxx> --- extensions/libxt_conntrack.c | 10 ++++++++-- 1 files changed, 8 insertions(+), 2 deletions(-) diff --git a/extensions/libxt_conntrack.c b/extensions/libxt_conntrack.c index 79ed3b8..987e1af 100644 --- a/extensions/libxt_conntrack.c +++ b/extensions/libxt_conntrack.c @@ -758,14 +758,20 @@ conntrack_dump_addr(const union nf_inet_addr *addr, printf("anywhere "); return; } - printf("%s ", ipaddr_to_anyname(&addr->in)); + if (numeric) + printf("%s ", ipaddr_to_numeric(&addr->in)); + else + printf("%s ", ipaddr_to_anyname(&addr->in)); } else if (family == AF_INET6) { if (!numeric && addr->ip6[0] == 0 && addr->ip6[1] == 0 && addr->ip6[2] == 0 && addr->ip6[3] == 0) { printf("anywhere "); return; } - printf("%s ", ip6addr_to_anyname(&addr->in6)); + if (numeric) + printf("%s ", ip6addr_to_numeric(&addr->in6)); + else + printf("%s ", ip6addr_to_anyname(&addr->in6)); } } -- To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html