Make -N option work.

Submitted by:	KONDOU Kazuhiro <kazuhiro@alib.jp>
This commit is contained in:
Hajimu UMEMOTO 2003-03-25 11:27:46 +00:00
parent 897af91bac
commit 0c6257801e
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=112605

View File

@ -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