From: Francois-Xavier Le Bail Date: Wed, 27 Feb 2019 11:15:06 +0000 (+0100) Subject: Add two ndo_protocol reassignments after xxx_print() calls X-Git-Tag: tcpdump-4.99-bp~924 X-Git-Url: https://git.tcpdump.org/tcpdump/commitdiff_plain/61857ddd22ca4c313f0c4a08217aae723fa914f2 Add two ndo_protocol reassignments after xxx_print() calls --- diff --git a/print-sctp.c b/print-sctp.c index d8db2d82..519cf518 100644 --- a/print-sctp.c +++ b/print-sctp.c @@ -609,11 +609,15 @@ sctp_print(netdissect_options *ndo, if (isforces) { forces_print(ndo, bp, payload_size); + /* ndo_protocol reassignment after forces_print() call */ + ndo->ndo_protocol = "sctp"; } else if (ndo->ndo_vflag >= 2) { /* if verbose output is specified */ /* at the command line */ switch (ppid) { case SCTP_PPID_M3UA : m3ua_print(ndo, bp, payload_size); + /* ndo_protocol reassignment after m3ua_print() call */ + ndo->ndo_protocol = "sctp"; break; default: ND_PRINT("[Payload");