]> The Tcpdump Group git mirrors - tcpdump/blobdiff - print-mobility.c
Fix spaces
[tcpdump] / print-mobility.c
index 6ac3f2c866ac4351a421bafa2fcc40b97642ab64..6fd956281a5287609b15acf6a825933ee5688abf 100644 (file)
 /* RFC 3775 */
 
 #ifdef HAVE_CONFIG_H
-#include "config.h"
+#include <config.h>
 #endif
 
-#include <netdissect-stdinc.h>
+#include "netdissect-stdinc.h"
 
 #include "netdissect.h"
 #include "addrtoname.h"
@@ -42,7 +42,6 @@
 
 #include "ip6.h"
 
-static const char tstr[] = "[|MOBILITY]";
 
 /* Mobility header */
 struct ip6_mobility {
@@ -207,6 +206,7 @@ mobility_print(netdissect_options *ndo,
        unsigned mhlen, hlen;
        uint8_t type;
 
+       ndo->ndo_protocol = "mobility";
        mh = (const struct ip6_mobility *)bp;
 
        /* 'ep' points to the end of available data. */
@@ -339,6 +339,6 @@ mobility_print(netdissect_options *ndo,
        return(mhlen);
 
  trunc:
-       ND_PRINT("%s", tstr);
+       nd_print_trunc(ndo);
        return(-1);
 }