]> The Tcpdump Group git mirrors - tcpdump/commitdiff
OLSR: work around MSVC preprocessor (re 48d8b05)
authorGisle Vanem <[email protected]>
Thu, 3 Apr 2014 05:33:25 +0000 (09:33 +0400)
committerDenis Ovsienko <[email protected]>
Thu, 3 Apr 2014 05:35:14 +0000 (09:35 +0400)
print-olsr.c

index e8c282c9bd1b671ba2aa048d2a78919bab38daaa..82ee11b799bbf96944f8b55b790408edd9dd84fa 100644 (file)
@@ -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;
             }