]> The Tcpdump Group git mirrors - tcpdump/blobdiff - print-mobile.c
Fix spaces
[tcpdump] / print-mobile.c
index ee916a943b0420d08b7f36a45a682835984226c7..28713acc73e23a978f7b135219876e86f8e4f8a6 100644 (file)
@@ -70,10 +70,11 @@ mobile_print(netdissect_options *ndo, const u_char *bp, u_int length)
        u_short proto,crc;
        u_char osp =0;                  /* old source address present */
 
+       ndo->ndo_protocol = "mobile";
        mob = (const struct mobile_ip *)bp;
 
        if (length < MOBILE_SIZE || !ND_TTEST_SIZE(mob)) {
-               ND_PRINT("[|mobile]");
+               nd_print_trunc(ndo);
                return;
        }
        ND_PRINT("mobile: ");