mirror of
https://github.com/the-tcpdump-group/tcpdump.git
synced 2024-12-12 03:13:29 +08:00
Add a nd_print_trunc() call
Replace a ND_TTEST_*() with ND_TCHECK_*(). Update the output of some tests accordingly.
This commit is contained in:
parent
34017c6fcb
commit
6e1fdd00a6
@ -679,10 +679,7 @@ void
|
|||||||
isoclns_print(netdissect_options *ndo, const u_char *p, u_int length)
|
isoclns_print(netdissect_options *ndo, const u_char *p, u_int length)
|
||||||
{
|
{
|
||||||
ndo->ndo_protocol = "isoclns";
|
ndo->ndo_protocol = "isoclns";
|
||||||
if (!ND_TTEST_1(p)) { /* enough bytes on the wire ? */
|
ND_TCHECK_1(p); /* enough bytes on the wire ? */
|
||||||
ND_PRINT("|OSI");
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (ndo->ndo_eflag)
|
if (ndo->ndo_eflag)
|
||||||
ND_PRINT("OSI NLPID %s (0x%02x): ", tok2str(nlpid_values, "Unknown", EXTRACT_U_1(p)), EXTRACT_U_1(p));
|
ND_PRINT("OSI NLPID %s (0x%02x): ", tok2str(nlpid_values, "Unknown", EXTRACT_U_1(p)), EXTRACT_U_1(p));
|
||||||
@ -731,6 +728,9 @@ isoclns_print(netdissect_options *ndo, const u_char *p, u_int length)
|
|||||||
print_unknown_data(ndo, p, "\n\t", length);
|
print_unknown_data(ndo, p, "\n\t", length);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
return;
|
||||||
|
trunc:
|
||||||
|
nd_print_trunc(ndo);
|
||||||
}
|
}
|
||||||
|
|
||||||
#define CLNP_PDU_ER 1
|
#define CLNP_PDU_ER 1
|
||||||
|
@ -1 +1 @@
|
|||||||
|OSI
|
[|isoclns]
|
||||||
|
@ -1 +1 @@
|
|||||||
|OSI
|
[|isoclns]
|
||||||
|
Loading…
Reference in New Issue
Block a user