summaryrefslogtreecommitdiffstats
path: root/sbin/ip6fw
diff options
context:
space:
mode:
authorume <ume@FreeBSD.org>2003-03-25 11:27:46 +0000
committerume <ume@FreeBSD.org>2003-03-25 11:27:46 +0000
commitf5ec7dd2c2a44ea305d16780b5a0a8639bd9acd1 (patch)
treef1937fa16a2ab1a550165595ad96188c3178fa7f /sbin/ip6fw
parent192c308033415c9a71c8da32cfc530928d14df1a (diff)
downloadFreeBSD-src-f5ec7dd2c2a44ea305d16780b5a0a8639bd9acd1.zip
FreeBSD-src-f5ec7dd2c2a44ea305d16780b5a0a8639bd9acd1.tar.gz
Make -N option work.
Submitted by: KONDOU Kazuhiro <kazuhiro@alib.jp>
Diffstat (limited to 'sbin/ip6fw')
-rw-r--r--sbin/ip6fw/ip6fw.c2
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
OpenPOWER on IntegriCloud