aboutsummaryrefslogtreecommitdiffstats
path: root/print-vrrp.c
diff options
context:
space:
mode:
Diffstat (limited to 'print-vrrp.c')
-rw-r--r--print-vrrp.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/print-vrrp.c b/print-vrrp.c
index d8ba42650504..a39766767e40 100644
--- a/print-vrrp.c
+++ b/print-vrrp.c
@@ -142,17 +142,21 @@ vrrp_print(netdissect_options *ndo,
vec[0].ptr = bp;
vec[0].len = len;
- if (in_cksum(vec, 1))
+ if (in_cksum(vec, 1)) {
+ ND_TCHECK_16BITS(&bp[6]);
ND_PRINT((ndo, ", (bad vrrp cksum %x)",
EXTRACT_16BITS(&bp[6])));
+ }
}
if (version == 3 && ND_TTEST2(bp[0], len)) {
uint16_t cksum = nextproto4_cksum(ndo, (const struct ip *)bp2, bp,
len, len, IPPROTO_VRRP);
- if (cksum)
+ if (cksum) {
+ ND_TCHECK_16BITS(&bp[6]);
ND_PRINT((ndo, ", (bad vrrp cksum %x)",
EXTRACT_16BITS(&bp[6])));
+ }
}
ND_PRINT((ndo, ", addrs"));