summaryrefslogtreecommitdiffstats
path: root/print-juniper.c
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-09-19 04:52:31 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-09-19 04:52:31 +0000
commit31cd589d20ba8d3d6b3fc4fccacc40d38a163c5d (patch)
tree99d6c086833d530e5d1d33a8128961f8149843f0 /print-juniper.c
parentAdding upstream version 4.99.4. (diff)
downloadtcpdump-upstream/4.99.5.tar.xz
tcpdump-upstream/4.99.5.zip
Adding upstream version 4.99.5.upstream/4.99.5upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'print-juniper.c')
-rw-r--r--print-juniper.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/print-juniper.c b/print-juniper.c
index 2fc0b55..f2d5c75 100644
--- a/print-juniper.c
+++ b/print-juniper.c
@@ -22,9 +22,7 @@
__RCSID("NetBSD: print-juniper.c,v 1.3 2007/07/25 06:31:32 dogcow Exp ");
#endif
-#ifdef HAVE_CONFIG_H
#include <config.h>
-#endif
#include "netdissect-stdinc.h"
@@ -1331,7 +1329,8 @@ juniper_parse_header(netdissect_options *ndo,
/* sanity checks */
if (tlv_type == 0 || tlv_len == 0)
break;
- ND_LCHECK_U(extension_length, tlv_len + JUNIPER_EXT_TLV_OVERHEAD);
+ ND_ICHECK_U(extension_length, <,
+ tlv_len + JUNIPER_EXT_TLV_OVERHEAD);
if (ndo->ndo_vflag > 1)
ND_PRINT("\n\t %s Extension TLV #%u, length %u, value ",