summaryrefslogtreecommitdiffstats
path: root/print-olsr.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-olsr.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-olsr.c')
-rw-r--r--print-olsr.c16
1 files changed, 4 insertions, 12 deletions
diff --git a/print-olsr.c b/print-olsr.c
index 8f04923..d83a960 100644
--- a/print-olsr.c
+++ b/print-olsr.c
@@ -21,9 +21,7 @@
/* specification: RFC 3626 */
-#ifdef HAVE_CONFIG_H
#include <config.h>
-#endif
#include "netdissect-stdinc.h"
@@ -361,8 +359,7 @@ olsr_print(netdissect_options *ndo,
} msgptr;
int msg_len_valid = 0;
- if (is_ipv6)
- {
+ if (is_ipv6) {
ND_TCHECK_LEN(tptr, sizeof(struct olsr_msg6));
msgptr.v6 = (const struct olsr_msg6 *) tptr;
msg_type = GET_U_1(msgptr.v6->msg_type);
@@ -391,9 +388,7 @@ olsr_print(netdissect_options *ndo,
msg_tlen = msg_len - sizeof(struct olsr_msg6);
msg_data = tptr + sizeof(struct olsr_msg6);
- }
- else /* (!is_ipv6) */
- {
+ } else { /* (!is_ipv6) */
ND_TCHECK_LEN(tptr, sizeof(struct olsr_msg4));
msgptr.v4 = (const struct olsr_msg4 *) tptr;
msg_type = GET_U_1(msgptr.v4->msg_type);
@@ -534,8 +529,7 @@ olsr_print(netdissect_options *ndo,
}
case OLSR_HNA_MSG:
- if (is_ipv6)
- {
+ if (is_ipv6) {
int i = 0;
ND_PRINT("\n\t Advertised networks (total %u)",
@@ -555,9 +549,7 @@ olsr_print(netdissect_options *ndo,
msg_data += sizeof(struct olsr_hna6);
msg_tlen -= sizeof(struct olsr_hna6);
}
- }
- else
- {
+ } else {
int col = 0;
ND_PRINT("\n\t Advertised networks (total %u)",