summaryrefslogtreecommitdiffstats
path: root/print-nsh.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-nsh.c
parentAdding upstream version 4.99.4. (diff)
downloadtcpdump-31cd589d20ba8d3d6b3fc4fccacc40d38a163c5d.tar.xz
tcpdump-31cd589d20ba8d3d6b3fc4fccacc40d38a163c5d.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-nsh.c')
-rw-r--r--print-nsh.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/print-nsh.c b/print-nsh.c
index 12a63cd..bf86a8b 100644
--- a/print-nsh.c
+++ b/print-nsh.c
@@ -25,9 +25,7 @@
/* specification: RFC 8300 */
-#ifdef HAVE_CONFIG_H
#include <config.h>
-#endif
#include "netdissect-stdinc.h"
@@ -181,7 +179,7 @@ nsh_print(netdissect_options *ndo, const u_char *bp, u_int len)
if (md_type == MD_TYPE1) {
if (length != 6) {
- ND_PRINT(" (invalid length for the MD type)");
+ ND_PRINT(" (length for the MD type)");
goto invalid;
}
for (n = 0; n < length - 2; n++) {
@@ -189,8 +187,7 @@ nsh_print(netdissect_options *ndo, const u_char *bp, u_int len)
bp += NSH_HDR_WORD_SIZE;
}
past_headers = 1;
- }
- else if (md_type == MD_TYPE2) {
+ } else if (md_type == MD_TYPE2) {
n = 0;
while (n < length - 2) {
uint16_t tlv_class;