diff options
-rw-r--r-- | sbin/ip6fw/ip6fw.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sbin/ip6fw/ip6fw.c b/sbin/ip6fw/ip6fw.c index 7069e5b..dc09c1c 100644 --- a/sbin/ip6fw/ip6fw.c +++ b/sbin/ip6fw/ip6fw.c @@ -325,7 +325,7 @@ show_ip6fw(struct ip6_fw *chain) mb=mask_bits((u_char *)&chain->fw_dmsk,sizeof(chain->fw_dmsk)); if (mb==128 && do_resolv) { - he=gethostbyaddr((char *)&(chain->fw_dst),sizeof(chain->fw_dst),AF_INET); + he=gethostbyaddr((char *)&(chain->fw_dst),sizeof(chain->fw_dst),AF_INET6); if (he==NULL) { printf(inet_ntop(AF_INET6,&chain->fw_dst,ntop_buf,sizeof(ntop_buf))); } else |