X-Git-Url: https://git.tcpdump.org/tcpdump/blobdiff_plain/5a796b82bd7e85d479c6ccc6eb0a6ddf321e840d..0023eaa78f123676bfa9c5fba72ea4b8a59aaa70:/print-ripng.c diff --git a/print-ripng.c b/print-ripng.c index 224c17fe..c6955cb8 100644 --- a/print-ripng.c +++ b/print-ripng.c @@ -23,9 +23,7 @@ /* specification: RFC 2080 */ -#ifdef HAVE_CONFIG_H #include -#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);