summaryrefslogtreecommitdiff
path: root/print-timed.c
diff options
context:
space:
mode:
authorFrancois-Xavier Le Bail <devel.fx.lebail@orange.fr>2020-08-10 16:22:37 +0200
committerFrancois-Xavier Le Bail <devel.fx.lebail@orange.fr>2020-09-05 14:59:21 +0200
commit929e4be621ebdcede37865a5767a175f083f9138 (patch)
treebf6ecbc038696e66176b2d50e04e015767f23b3d /print-timed.c
parent54b5db3dde658894be730b15480f9b6e27b717a0 (diff)
downloadtcpdump-test-rc.tar.gz
Remove many (761) redundant ND_TCHECK_n() callstest-rc
ND_TCHECK_n(e), n in { 1, 2, 3, 4, 8 }. They are redundant because they are followed by a GET_.*_n(e) call, same n, same e, which do the bounds check. Remove unused 'trunc' labels and most associated codes. Update the outputs of some tests accordingly.
Diffstat (limited to 'print-timed.c')
-rw-r--r--print-timed.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/print-timed.c b/print-timed.c
index 9940821a..2c004271 100644
--- a/print-timed.c
+++ b/print-timed.c
@@ -98,22 +98,18 @@ timed_print(netdissect_options *ndo,
int sec, usec;
ndo->ndo_protocol = "timed";
- ND_TCHECK_1(tsp->tsp_type);
tsp_type = GET_U_1(tsp->tsp_type);
if (tsp_type < TSPTYPENUMBER)
ND_PRINT("TSP_%s", tsptype[tsp_type]);
else
ND_PRINT("(tsp_type %#x)", tsp_type);
- ND_TCHECK_1(tsp->tsp_vers);
ND_PRINT(" vers %u", GET_U_1(tsp->tsp_vers));
- ND_TCHECK_2(tsp->tsp_seq);
ND_PRINT(" seq %u", GET_BE_U_2(tsp->tsp_seq));
switch (tsp_type) {
case TSP_LOOP:
- ND_TCHECK_1(tsp->tsp_hopcnt);
ND_PRINT(" hopcnt %u", GET_U_1(tsp->tsp_hopcnt));
break;
case TSP_SETTIME: