summaryrefslogtreecommitdiff
path: root/print-isakmp.c
diff options
context:
space:
mode:
authorFrancois-Xavier Le Bail <devel.fx.lebail@orange.fr>2017-11-20 22:58:59 +0100
committerFrancois-Xavier Le Bail <devel.fx.lebail@orange.fr>2017-11-20 22:58:59 +0100
commit93bee2402670249e78478ee3c7ce998a5e2343e6 (patch)
treecda929c01da5da4feda8bee39f23a8d8981f6915 /print-isakmp.c
parenta58370c17f5227919bb1e9619a6a413a90d3fa45 (diff)
downloadtcpdump-93bee2402670249e78478ee3c7ce998a5e2343e6.tar.gz
Use pointer expressions like in most similar cases
Diffstat (limited to 'print-isakmp.c')
-rw-r--r--print-isakmp.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/print-isakmp.c b/print-isakmp.c
index d38b4732..a3eb0bea 100644
--- a/print-isakmp.c
+++ b/print-isakmp.c
@@ -923,7 +923,7 @@ ikev1_attrmap_print(netdissect_options *ndo,
totlen = 4;
else {
ND_TCHECK_16BITS(&p[2]);
- totlen = 4 + EXTRACT_BE_16BITS(&p[2]);
+ totlen = 4 + EXTRACT_BE_16BITS(p + 2);
}
if (ep2 < p + totlen) {
ND_PRINT((ndo,"[|attr]"));
@@ -932,7 +932,7 @@ ikev1_attrmap_print(netdissect_options *ndo,
ND_TCHECK_16BITS(&p[0]);
ND_PRINT((ndo,"("));
- t = EXTRACT_BE_16BITS(&p[0]) & 0x7fff;
+ t = EXTRACT_BE_16BITS(p) & 0x7fff;
if (map && t < nmap && map[t].type)
ND_PRINT((ndo,"type=%s ", map[t].type));
else
@@ -940,7 +940,7 @@ ikev1_attrmap_print(netdissect_options *ndo,
if (p[0] & 0x80) {
ND_PRINT((ndo,"value="));
ND_TCHECK_16BITS(&p[2]);
- v = EXTRACT_BE_16BITS(&p[2]);
+ v = EXTRACT_BE_16BITS(p + 2);
if (map && t < nmap && v < map[t].nvalue && map[t].value[v])
ND_PRINT((ndo,"%s", map[t].value[v]));
else {
@@ -974,7 +974,7 @@ ikev1_attr_print(netdissect_options *ndo, const u_char *p, const u_char *ep2)
totlen = 4;
else {
ND_TCHECK_16BITS(&p[2]);
- totlen = 4 + EXTRACT_BE_16BITS(&p[2]);
+ totlen = 4 + EXTRACT_BE_16BITS(p + 2);
}
if (ep2 < p + totlen) {
ND_PRINT((ndo,"[|attr]"));
@@ -983,7 +983,7 @@ ikev1_attr_print(netdissect_options *ndo, const u_char *p, const u_char *ep2)
ND_TCHECK_16BITS(&p[0]);
ND_PRINT((ndo,"("));
- t = EXTRACT_BE_16BITS(&p[0]) & 0x7fff;
+ t = EXTRACT_BE_16BITS(p) & 0x7fff;
ND_PRINT((ndo,"type=#%d ", t));
if (p[0] & 0x80) {
ND_PRINT((ndo,"value="));