X-Git-Url: https://git.tcpdump.org/tcpdump/blobdiff_plain/306c2a0384af923a73bf234f3c8bc186ceff0b58..10ac80fdecfa9b9b7d259d8f50d0b72ef1b18f12:/print-slow.c?ds=sidebyside diff --git a/print-slow.c b/print-slow.c index 27a814b9..3529f03b 100644 --- a/print-slow.c +++ b/print-slow.c @@ -251,7 +251,6 @@ slow_print(netdissect_options *ndo, ndo->ndo_protocol = "slow"; if (len < 1) goto tooshort; - ND_TCHECK_1(pptr); subtype = GET_U_1(pptr); /* @@ -261,7 +260,6 @@ slow_print(netdissect_options *ndo, case SLOW_PROTO_LACP: if (len < 2) goto tooshort; - ND_TCHECK_1(pptr + 1); if (GET_U_1(pptr + 1) != LACP_VERSION) { ND_PRINT("LACP version %u packet not supported", GET_U_1(pptr + 1)); @@ -273,7 +271,6 @@ slow_print(netdissect_options *ndo, case SLOW_PROTO_MARKER: if (len < 2) goto tooshort; - ND_TCHECK_1(pptr + 1); if (GET_U_1(pptr + 1) != MARKER_VERSION) { ND_PRINT("MARKER version %u packet not supported", GET_U_1(pptr + 1)); @@ -339,10 +336,6 @@ tooshort: ND_PRINT(" (packet is too short)"); else ND_PRINT("\n\t\t packet is too short"); - return; - -trunc: - nd_print_trunc(ndo); } static void @@ -628,7 +621,6 @@ slow_oam_print(netdissect_options *ndo, /* Sequence number */ if (tlen < 2) goto tooshort; - ND_TCHECK_2(tptr); ND_PRINT("\n\t Sequence Number %u", GET_BE_U_2(tptr)); tlen -= 2; tptr += 2;