mirror of
https://github.com/the-tcpdump-group/tcpdump.git
synced 2024-11-23 18:14:29 +08:00
mobile: Print the protocol name before any test
This commit is contained in:
parent
f6b74c5cf2
commit
de0389e19a
@ -74,10 +74,10 @@ mobile_print(netdissect_options *ndo, const u_char *bp, u_int length)
|
||||
ndo->ndo_protocol = "mobile";
|
||||
mob = (const struct mobile_ip *)bp;
|
||||
|
||||
ND_ICHECK_U(length, <, MOBILE_SIZE);
|
||||
ND_TCHECK_SIZE(mob);
|
||||
nd_print_protocol(ndo);
|
||||
ND_PRINT(": ");
|
||||
ND_ICHECK_U(length, <, MOBILE_SIZE);
|
||||
ND_TCHECK_SIZE(mob);
|
||||
|
||||
proto = GET_BE_U_2(mob->proto);
|
||||
crc = GET_BE_U_2(mob->hcheck);
|
||||
|
Loading…
Reference in New Issue
Block a user