]> The Tcpdump Group git mirrors - tcpdump/blobdiff - print-ripng.c
CI: Add warning exemptions for Sun C (suncc-5.14) on Solaris 10
[tcpdump] / print-ripng.c
index 224c17fe2cf8093a86a588b7efa8f92ec1136a4c..c6955cb8ef145da036143d3d19db65085b1a43f5 100644 (file)
@@ -23,9 +23,7 @@
 
 /* specification: RFC 2080 */
 
-#ifdef HAVE_CONFIG_H
 #include <config.h>
-#endif
 
 #include "netdissect-stdinc.h"
 
@@ -117,7 +115,8 @@ ripng_print(netdissect_options *ndo, const u_char *dat, unsigned int length)
        ndo->ndo_protocol = "ripng";
        vers = GET_U_1(rp->rip6_vers);
        if (vers != RIP6_VERSION) {
-               ND_PRINT(" [vers %u]", vers);
+               nd_print_protocol(ndo);
+               ND_PRINT(" [version %u, must be %u]", vers, RIP6_VERSION);
                goto invalid;
        }
        cmd = GET_U_1(rp->rip6_cmd);