]> The Tcpdump Group git mirrors - tcpdump/blobdiff - print-mobility.c
Fix spaces
[tcpdump] / print-mobility.c
index 551c316d862204ad360a5d4e0c75788ee3844e8e..6fd956281a5287609b15acf6a825933ee5688abf 100644 (file)
@@ -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);
 }