summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrancois-Xavier Le Bail <devel.fx.lebail@orange.fr>2021-02-01 10:31:34 +0100
committerFrancois-Xavier Le Bail <devel.fx.lebail@orange.fr>2021-02-01 10:49:35 +0100
commit74a4e7404c282b61ab5b051250822af45bfbb388 (patch)
tree6db1f071a76a83f2ae795a187a7bc536d01383be
parentfc87be0585b18dd265ea98307cfebf2fd12c2cdc (diff)
downloadtcpdump-74a4e7404c282b61ab5b051250822af45bfbb388.tar.gz
MSDP: Print ": " before the protocol name
Like with most TCP encapsulated protocols. Use nd_print_protocol(). No more ":" after protocol name. This change will print the protocol name even in truncation cases.
-rw-r--r--print-msdp.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/print-msdp.c b/print-msdp.c
index 545f452a..7845116b 100644
--- a/print-msdp.c
+++ b/print-msdp.c
@@ -36,12 +36,13 @@ msdp_print(netdissect_options *ndo, const u_char *sp, u_int length)
unsigned int type, len;
ndo->ndo_protocol = "msdp";
+ ND_PRINT(": ");
+ nd_print_protocol(ndo);
/* See if we think we're at the beginning of a compound packet */
type = GET_U_1(sp);
len = GET_BE_U_2(sp + 1);
if (len > 1500 || len < 3 || type == 0 || type > MSDP_TYPE_MAX)
goto trunc; /* not really truncated, but still not decodable */
- ND_PRINT(" msdp:");
while (length != 0) {
type = GET_U_1(sp);
len = GET_BE_U_2(sp + 1);