summaryrefslogtreecommitdiff
path: root/print-ospf.c
diff options
context:
space:
mode:
authorSeonah Moon <seonah1.moon@samsung.com>2019-10-07 10:58:05 +0900
committerSeonah Moon <seonah1.moon@samsung.com>2019-10-07 10:58:18 +0900
commit9ceaf0d786e9465506271e8450248a57719e4eb1 (patch)
treec933215271ff7ec5c6b574198aa193e7c377f579 /print-ospf.c
parent68b0938829a42f1f5dbb099d79df2cae08bf9d73 (diff)
downloadtcpdump-9ceaf0d786e9465506271e8450248a57719e4eb1.tar.gz
tcpdump-9ceaf0d786e9465506271e8450248a57719e4eb1.tar.bz2
tcpdump-9ceaf0d786e9465506271e8450248a57719e4eb1.zip
Imported Upstream version 4.9.3upstream/4.9.3upstream
Change-Id: I3cc0d412048588389bb26e10136fe244bd6b09ed
Diffstat (limited to 'print-ospf.c')
-rw-r--r--print-ospf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/print-ospf.c b/print-ospf.c
index db4231b..4c09912 100644
--- a/print-ospf.c
+++ b/print-ospf.c
@@ -706,7 +706,7 @@ ospf_print_lsa(netdissect_options *ndo,
while ((const u_char *)lp < ls_end) {
register uint32_t ul;
- ND_TCHECK(*lp);
+ ND_TCHECK_32BITS(lp);
ul = EXTRACT_32BITS(lp);
topology = (ul & SLA_MASK_TOS) >> SLA_SHIFT_TOS;
ND_PRINT((ndo, "\n\t\ttopology %s (%u) metric %d",
@@ -723,7 +723,7 @@ ospf_print_lsa(netdissect_options *ndo,
while ((const u_char *)lp < ls_end) {
register uint32_t ul;
- ND_TCHECK(*lp);
+ ND_TCHECK_32BITS(lp);
ul = EXTRACT_32BITS(lp);
topology = (ul & SLA_MASK_TOS) >> SLA_SHIFT_TOS;
ND_PRINT((ndo, "\n\t\ttopology %s (%u) metric %d",