Skip to content

Commit de0389e

Browse files
committed
mobile: Print the protocol name before any test
1 parent f6b74c5 commit de0389e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

print-mobile.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,10 +74,10 @@ mobile_print(netdissect_options *ndo, const u_char *bp, u_int length)
7474
ndo->ndo_protocol = "mobile";
7575
mob = (const struct mobile_ip *)bp;
7676

77-
ND_ICHECK_U(length, <, MOBILE_SIZE);
78-
ND_TCHECK_SIZE(mob);
7977
nd_print_protocol(ndo);
8078
ND_PRINT(": ");
79+
ND_ICHECK_U(length, <, MOBILE_SIZE);
80+
ND_TCHECK_SIZE(mob);
8181

8282
proto = GET_BE_U_2(mob->proto);
8383
crc = GET_BE_U_2(mob->hcheck);

0 commit comments

Comments
 (0)