On Sat, Sep 29, 2018 at 04:47:54PM +0200, Klemens Nanni wrote:
> There since
> 
>       revision 1.10
>       date: 2000/01/16 12:07:29;  author: jakob;  state: Exp;  lines: +106 -1;
>       INET6 address resolution (from KAME)
> 
> OK?

OK denis@

> 
> Index: addrtoname.c
> ===================================================================
> RCS file: /cvs/src/usr.sbin/tcpdump/addrtoname.c,v
> retrieving revision 1.37
> diff -u -p -r1.37 addrtoname.c
> --- addrtoname.c      14 Dec 2016 19:12:16 -0000      1.37
> +++ addrtoname.c      29 Sep 2018 14:43:50 -0000
> @@ -257,23 +257,7 @@ getname6(const u_char *ap)
>       p->addr = addr;
>       p->nxt = newh6namemem();
>  
> -     /*
> -      * Only print names when:
> -      *      (1) -n was not given
> -      *      (2) Address is foreign and -f was given. (If -f was not
> -      *          give, f_netmask and f_local are 0 and the test
> -      *          evaluates to true)
> -      *      (3) -a was given or the host portion is not all ones
> -      *          nor all zeros (i.e. not a network or broadcast address)
> -      */
> -     if (!nflag
> -#if 0
> -     &&
> -         (addr & f_netmask) == f_localnet &&
> -         (aflag ||
> -         !((addr & ~netmask) == 0 || (addr | netmask) == 0xffffffff))
> -#endif
> -         ) {
> +     if (!nflag) {
>               size_t n = priv_gethostbyaddr((char *)&addr, sizeof(addr),
>                   AF_INET6, host, sizeof(host));
>               if (n > 0) {
> 

Reply via email to