diff options
author | Francois-Xavier Le Bail <devel.fx.lebail@orange.fr> | 2019-02-27 12:15:06 +0100 |
---|---|---|
committer | Francois-Xavier Le Bail <devel.fx.lebail@orange.fr> | 2019-02-27 12:26:10 +0100 |
commit | 61857ddd22ca4c313f0c4a08217aae723fa914f2 (patch) | |
tree | 3d3a88aec70673711250f873c3353dee37eaca66 /print-sctp.c | |
parent | cc734973ea79401b5a6013f65a3978bf115866dd (diff) | |
download | tcpdump-61857ddd22ca4c313f0c4a08217aae723fa914f2.tar.gz |
Add two ndo_protocol reassignments after xxx_print() calls
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"); |