]> The Tcpdump Group git mirrors - tcpdump/blobdiff - print-geonet.c
Fix spaces
[tcpdump] / print-geonet.c
index ae0a97766785d8bed9ea06742de65e183c0167d1..cdcc07accc5ed88759e5abfe4f9f4ccbe7881d7c 100644 (file)
 /* \summary: ISO CALM FAST and ETSI GeoNetworking printer */
 
 #ifdef HAVE_CONFIG_H
-#include "config.h"
+#include <config.h>
 #endif
 
-#include <netdissect-stdinc.h>
+#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:
- */