tcpdump mailing list archives
Re: buggy getaddrinfo()
From: Guy Harris <guy () alum mit edu>
Date: Mon, 8 Sep 2014 12:10:17 -0700
On Sep 8, 2014, at 8:49 AM, Michael Richardson <mcr () sandelman ca> wrote:
Since a long time ago, we test to see if the getaddrinfo() function is buggy. It appears that if we are cross-compiling, that we always forceably fail the test. But, since 2014-0-25, we don't even include getaddrinfo.c, is that because we never need it anymore, (grep seems to agree), or because???
As far as I can tell from grepping through the CVS files on bpf.tcpdump.org, we *never* needed it in tcpdump. My guess is that, as part of IPv6 support, the same, or very similar, configure-script changes and replacement getaddrinfo.c/getnameinfo.c were done for both libpcap and tcpdump, even though libpcap only uses getaddrinfo() (e.g., to map host names in filter expressions to addresses) and tcpdump only uses getnameinfo() (to map addresses in packets to host names).
If we don't need it, can we remove the test in configure for it?
Unless I've missed something, yes, we can. _______________________________________________ tcpdump-workers mailing list tcpdump-workers () lists tcpdump org https://lists.sandelman.ca/mailman/listinfo/tcpdump-workers
Current thread:
- buggy getaddrinfo() Michael Richardson (Sep 08)
- Re: buggy getaddrinfo() Guy Harris (Sep 08)