summaryrefslogtreecommitdiff
path: root/print-aoe.c
diff options
context:
space:
mode:
authorSeonah Moon <seonah1.moon@samsung.com>2019-10-07 11:05:26 +0900
committerSeonah Moon <seonah1.moon@samsung.com>2019-10-07 11:06:12 +0900
commitb0706e54b48af6c11783f55455842a292c4d9b17 (patch)
treee18f8e347693bf9a1297f5553716e84c9109246f /print-aoe.c
parentd722eee76c51a65c5449806c6fdacf2ac4f95055 (diff)
parent9ceaf0d786e9465506271e8450248a57719e4eb1 (diff)
downloadtcpdump-accepted/tizen_6.0_unified_hotfix.tar.gz
tcpdump-accepted/tizen_6.0_unified_hotfix.tar.bz2
tcpdump-accepted/tizen_6.0_unified_hotfix.zip
Change-Id: Ib2ce6fe0c63523943f1fe7d772010824fe2c0d41
Diffstat (limited to 'print-aoe.c')
-rw-r--r--print-aoe.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/print-aoe.c b/print-aoe.c
index 32fa48f..fcb7526 100644
--- a/print-aoe.c
+++ b/print-aoe.c
@@ -325,7 +325,7 @@ aoev1_reserve_print(netdissect_options *ndo,
goto invalid;
/* addresses */
for (i = 0; i < nmacs; i++) {
- ND_TCHECK2(cp, ETHER_ADDR_LEN);
+ ND_TCHECK2(*cp, ETHER_ADDR_LEN);
ND_PRINT((ndo, "\n\tEthernet Address %u: %s", i, etheraddr_string(ndo, cp)));
cp += ETHER_ADDR_LEN;
}
@@ -351,6 +351,7 @@ aoev1_print(netdissect_options *ndo,
if (len < AOEV1_COMMON_HDR_LEN)
goto invalid;
/* Flags */
+ ND_TCHECK2(*cp, 1);
flags = *cp & 0x0F;
ND_PRINT((ndo, ", Flags: [%s]", bittok2str(aoev1_flag_str, "none", flags)));
cp += 1;