X-Git-Url: https://git.tcpdump.org/tcpdump/blobdiff_plain/944e93fa4c29c4e5cdecd858ead5a37430a418af..a8abce5c5e2dce2ba6dbccd5d3829da104b80f9c:/print-sctp.c diff --git a/print-sctp.c b/print-sctp.c index bee474d8..88bf8c21 100644 --- a/print-sctp.c +++ b/print-sctp.c @@ -464,6 +464,7 @@ sctp_print(netdissect_options *ndo, const char *sep; int isforces = 0; + ndo->ndo_protocol = "sctp"; if (sctpPacketLength < sizeof(struct sctpHeader)) { ND_PRINT("truncated-sctp - %ld bytes missing!", @@ -485,16 +486,16 @@ sctp_print(netdissect_options *ndo, if (ip6) { ND_PRINT("%s.%u > %s.%u: sctp", - ip6addr_string(ndo, &ip6->ip6_src), + ip6addr_string(ndo, ip6->ip6_src), sourcePort, - ip6addr_string(ndo, &ip6->ip6_dst), + ip6addr_string(ndo, ip6->ip6_dst), destPort); } else { ND_PRINT("%s.%u > %s.%u: sctp", - ipaddr_string(ndo, &ip->ip_src), + ipaddr_string(ndo, ip->ip_src), sourcePort, - ipaddr_string(ndo, &ip->ip_dst), + ipaddr_string(ndo, ip->ip_dst), destPort); } @@ -767,5 +768,5 @@ sctp_print(netdissect_options *ndo, return; trunc: - ND_PRINT("[|sctp]"); + nd_print_trunc(ndo); }