X-Git-Url: https://git.tcpdump.org/tcpdump/blobdiff_plain/64677b0d78ff168d98c3035e894c4910c021136e..a8abce5c5e2dce2ba6dbccd5d3829da104b80f9c:/print-geonet.c diff --git a/print-geonet.c b/print-geonet.c index ae0a9776..cdcc07ac 100644 --- a/print-geonet.c +++ b/print-geonet.c @@ -18,10 +18,10 @@ /* \summary: ISO CALM FAST and ETSI GeoNetworking printer */ #ifdef HAVE_CONFIG_H -#include "config.h" +#include #endif -#include +#include "netdissect-stdinc.h" #include "netdissect.h" #include "extract.h" @@ -118,6 +118,7 @@ geonet_print(netdissect_options *ndo, const u_char *bp, u_int length, const char *hdr_type_txt = "Unknown"; int hdr_size = -1; + ndo->ndo_protocol = "geonet"; ND_PRINT("GeoNet "); if (src != NULL) ND_PRINT("src:%s", (src->addr_string)(ndo, src->addr)); @@ -274,13 +275,5 @@ invalid: return; trunc: - ND_PRINT("[|geonet]"); + nd_print_trunc(ndo); } - - -/* - * Local Variables: - * c-style: whitesmith - * c-basic-offset: 8 - * End: - */