]> The Tcpdump Group git mirrors - tcpdump/blobdiff - print-mobile.c
Add printing support for vsockmon devices.
[tcpdump] / print-mobile.c
index 11314d7c7f19c35d29cc6089af67d0abe5dceaf6..50bcd3eba82b325a33971dfbe887f83cbd7110ba 100644 (file)
@@ -74,13 +74,13 @@ mobile_print(netdissect_options *ndo, const u_char *bp, u_int length)
        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: ");
 
-       proto = EXTRACT_BE_U_2(mob->proto);
-       crc =  EXTRACT_BE_U_2(mob->hcheck);
+       proto = GET_BE_U_2(mob->proto);
+       crc =  GET_BE_U_2(mob->hcheck);
        if (proto & OSRC_PRES) {
                osp=1;
        }