diff options
author | Francois-Xavier Le Bail <devel.fx.lebail@orange.fr> | 2017-12-11 12:46:51 +0100 |
---|---|---|
committer | Francois-Xavier Le Bail <devel.fx.lebail@orange.fr> | 2017-12-11 22:11:01 +0100 |
commit | 84ef17ac0eecb3efc11a63c3f2c578ae78732c02 (patch) | |
tree | c62632ddf7ae57a999a89938ecaf8e590bfcc019 /print-nsh.c | |
parent | 264ed29aae3407c1a6816c64813806a077ccebcb (diff) | |
download | tcpdump-84ef17ac0eecb3efc11a63c3f2c578ae78732c02.tar.gz |
Replace ND_TTEST2()/ND_TCHECK2() macros by macros using pointers (1/n)
ND_TTEST2(var, l) -> ND_TTEST_LEN(p, l)
ND_TCHECK2(var, l) -> ND_TCHECK_LEN(p, l)
Diffstat (limited to 'print-nsh.c')
-rw-r--r-- | print-nsh.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/print-nsh.c b/print-nsh.c index b0644823..2734382c 100644 --- a/print-nsh.c +++ b/print-nsh.c @@ -66,7 +66,7 @@ nsh_print(netdissect_options *ndo, const u_char *bp, u_int len) if (len < NSH_BASE_HDR_LEN + NSH_SERVICE_PATH_HDR_LEN) goto trunc; - ND_TCHECK2(*bp, NSH_BASE_HDR_LEN + NSH_SERVICE_PATH_HDR_LEN); + ND_TCHECK_LEN(bp, NSH_BASE_HDR_LEN + NSH_SERVICE_PATH_HDR_LEN); ver = (uint8_t)(EXTRACT_U_1(bp) >> 6); flags = EXTRACT_U_1(bp); @@ -101,7 +101,7 @@ nsh_print(netdissect_options *ndo, const u_char *bp, u_int len) if (len < length * NSH_HDR_WORD_SIZE) goto trunc; - ND_TCHECK2(*bp, length * NSH_HDR_WORD_SIZE); + ND_TCHECK_LEN(bp, length * NSH_HDR_WORD_SIZE); /* * length includes the lengths of the Base and Service Path headers. |