]> The Tcpdump Group git mirrors - tcpdump/blobdiff - print-rt6.c
RIPng: Use more ND_TCHECK_SIZE() macros
[tcpdump] / print-rt6.c
index 684eac40175127b29ab1f1aa1827bfd50b6fb5d6..2d3d3a8bf591bc8987182c552593478920b7bfaa 100644 (file)
 /* \summary: IPv6 routing header printer */
 
 #ifdef HAVE_CONFIG_H
-#include "config.h"
+#include <config.h>
 #endif
 
-#include <netdissect-stdinc.h>
+#include "netdissect-stdinc.h"
 
 #include <string.h>
 
@@ -77,7 +77,7 @@ rt6_print(netdissect_options *ndo, const u_char *bp, const u_char *bp2 _U_)
                        if ((const u_char *)(addr + 1) > ep)
                                goto trunc;
 
-                       ND_PRINT(", [%d]%s", i, ip6addr_string(ndo, addr));
+                       ND_PRINT(", [%u]%s", i, ip6addr_string(ndo, addr));
                        addr++;
                }
                /*(*/
@@ -106,7 +106,7 @@ rt6_print(netdissect_options *ndo, const u_char *bp, const u_char *bp2 _U_)
                        if ((const u_char *)(addr + 1) > ep)
                                goto trunc;
 
-                       ND_PRINT(", [%d]%s", i, ip6addr_string(ndo, addr));
+                       ND_PRINT(", [%u]%s", i, ip6addr_string(ndo, addr));
                        addr++;
                }
                /*(*/