Re: [tcpdump-workers] print-ahcp.c on MSVC

2014-03-11 Thread Guy Harris
On Mar 11, 2014, at 11:40 AM, Gisle Vanem wrote: > Applying this patch fixes it though: Checked into the trunk and pushed. > Time for an INET6 aware util.c print-function for these cases? ip6addr_string() is a macro wrapper for getname6(). getname6() uses both gethostbyaddr() and inet_ntop()

[tcpdump-workers] print-ahcp.c on MSVC

2014-03-11 Thread Gisle Vanem
I'm sure my old MSVC v16 has a bit stupid C-preprocessor. At least when expanding this (line 153): ND_PRINT((ndo, "%s%s", sep, #ifdef INET6 ip6addr_string(cp) #else "(compiled w/o IPv6)" #endif /* INET6 */ into this (all on one line): (*ndo->ndo_printf)(ndo, "%s%s", sep