diff options
author | ume <ume@FreeBSD.org> | 2003-03-25 11:27:46 +0000 |
---|---|---|
committer | ume <ume@FreeBSD.org> | 2003-03-25 11:27:46 +0000 |
commit | f5ec7dd2c2a44ea305d16780b5a0a8639bd9acd1 (patch) | |
tree | f1937fa16a2ab1a550165595ad96188c3178fa7f /sbin/ip6fw | |
parent | 192c308033415c9a71c8da32cfc530928d14df1a (diff) | |
download | FreeBSD-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.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 |