"Gisle Vanem" wrote:
I'm sure my old MSVC v16 has a bit stupid C-preprocessor. At least when
expanding this (line 153):
Now this C-preprocessor "bug" got me into problems with print-olsr.c too.
A patch:
--- Git-Latest/print-olsr.c 2014-04-02 17:02:01 +
+++ print-olsr.c2014-04-
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()
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