summaryrefslogtreecommitdiff
path: root/print-olsr.c
diff options
context:
space:
mode:
authorGisle Vanem <gvanem@yahoo.no>2014-04-03 09:33:25 +0400
committerDenis Ovsienko <infrastation@yandex.ru>2014-04-03 09:35:14 +0400
commita8ace2868c128d3820e587b32808c5942747d0ae (patch)
treeb01e22444084dded3d39c310a5cf042fad8d9dff /print-olsr.c
parent779bcfb73addf223ee78104af297ab794c1d008e (diff)
downloadtcpdump-a8ace2868c128d3820e587b32808c5942747d0ae.tar.gz
OLSR: work around MSVC preprocessor (re 48d8b05)
Diffstat (limited to 'print-olsr.c')
-rw-r--r--print-olsr.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/print-olsr.c b/print-olsr.c
index e8c282c9..82ee11b7 100644
--- a/print-olsr.c
+++ b/print-olsr.c
@@ -457,12 +457,15 @@ olsr_print(netdissect_options *ndo,
while (msg_tlen >= addr_size) {
if (!ND_TTEST2(*msg_data, addr_size))
goto trunc;
-
- ND_PRINT((ndo, "\n\t interface address %s",
#if INET6
+ ND_PRINT((ndo, "\n\t interface address %s",
is_ipv6 ? ip6addr_string(msg_data) :
-#endif
ipaddr_string(msg_data)));
+#else
+ ND_PRINT((ndo, "\n\t interface address %s",
+ ipaddr_string(msg_data)));
+#endif
+
msg_data += addr_size;
msg_tlen -= addr_size;
}