diff options
Diffstat (limited to 'print-sctp.c')
| -rw-r--r-- | print-sctp.c | 4 |
1 files changed, 4 insertions, 0 deletions
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"); |
