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-slow.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-slow.c')
-rw-r--r-- | print-slow.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/print-slow.c b/print-slow.c index dfa26e08..d30aa219 100644 --- a/print-slow.c +++ b/print-slow.c @@ -366,7 +366,7 @@ slow_marker_lacp_print(netdissect_options *ndo, if (tlen < sizeof(struct tlv_header_t)) goto tooshort; /* did we capture enough for fully decoding the tlv header ? */ - ND_TCHECK2(*tptr, sizeof(struct tlv_header_t)); + ND_TCHECK_LEN(tptr, sizeof(struct tlv_header_t)); tlv_header = (const struct tlv_header_t *)tptr; tlv_len = tlv_header->length; @@ -396,7 +396,7 @@ slow_marker_lacp_print(netdissect_options *ndo, if (tlen < tlv_len) goto tooshort; /* did we capture enough for fully decoding the tlv ? */ - ND_TCHECK2(*tptr, tlv_len); + ND_TCHECK_LEN(tptr, tlv_len); tlv_tptr=tptr+sizeof(struct tlv_header_t); tlv_tlen=tlv_len-sizeof(struct tlv_header_t); @@ -564,7 +564,7 @@ slow_oam_print(netdissect_options *ndo, if (tlen < length) goto tooshort; - ND_TCHECK2(*tptr, length); + ND_TCHECK_LEN(tptr, length); hexdump = FALSE; switch (type) { @@ -663,7 +663,7 @@ slow_oam_print(netdissect_options *ndo, if (tlen < length) goto tooshort; - ND_TCHECK2(*tptr, length); + ND_TCHECK_LEN(tptr, length); hexdump = FALSE; switch (type) { |