diff options
author | Francois-Xavier Le Bail <devel.fx.lebail@orange.fr> | 2021-08-15 11:20:12 +0200 |
---|---|---|
committer | Francois-Xavier Le Bail <devel.fx.lebail@orange.fr> | 2021-08-15 13:01:54 +0200 |
commit | f1c7ca5a7d5b39c0dd676437a6819f4328ebdb70 (patch) | |
tree | e60943f9e3d558acc1a0d72c7a9ca436b849ff19 /print-juniper.c | |
parent | 604cd4aa60557f23ee76a60fd8ea339ca2e54e77 (diff) | |
download | tcpdump-f1c7ca5a7d5b39c0dd676437a6819f4328ebdb70.tar.gz |
Use more the ND_TCHECK_1() macro
This is a follow-up to 880b867ee73ae757faebbab13213c7d4079222a5.
Diffstat (limited to 'print-juniper.c')
-rw-r--r-- | print-juniper.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/print-juniper.c b/print-juniper.c index e024b6be..ea6f3f9f 100644 --- a/print-juniper.c +++ b/print-juniper.c @@ -950,7 +950,7 @@ juniper_mfr_if_print(netdissect_options *ndo, switch (l2info.proto) { case (LLCSAP_ISONS<<8 | LLCSAP_ISONS): /* At least one byte is required */ - ND_TCHECK_LEN(p, 1); + ND_TCHECK_1(p); isoclns_print(ndo, p + 1, l2info.length - 1); break; case (LLC_UI<<8 | NLPID_Q933): @@ -1052,7 +1052,7 @@ juniper_atm1_if_print(netdissect_options *ndo, if (GET_U_1(p) == 0x03) { /* Cisco style NLPID encaps ? */ /* At least one byte is required */ - ND_TCHECK_LEN(p, 1); + ND_TCHECK_1(p); isoclns_print(ndo, p + 1, l2info.length - 1); /* FIXME check if frame was recognized */ ndo->ndo_ll_hdr_len += l2info.header_len; @@ -1121,7 +1121,7 @@ juniper_atm2_if_print(netdissect_options *ndo, if (GET_U_1(p) == 0x03) { /* Cisco style NLPID encaps ? */ /* At least one byte is required */ - ND_TCHECK_LEN(p, 1); + ND_TCHECK_1(p); isoclns_print(ndo, p + 1, l2info.length - 1); /* FIXME check if frame was recognized */ ndo->ndo_ll_hdr_len += l2info.header_len; |