]> The Tcpdump Group git mirrors - tcpdump/commitdiff
Add two ndo_protocol reassignments after xxx_print() calls
authorFrancois-Xavier Le Bail <[email protected]>
Wed, 27 Feb 2019 11:15:06 +0000 (12:15 +0100)
committerFrancois-Xavier Le Bail <[email protected]>
Wed, 27 Feb 2019 11:26:10 +0000 (12:26 +0100)
print-sctp.c

index d8db2d82e51e96c6a047f54a6a5cb3aabad12781..519cf518172f1550a20a240c1e3edb2a98d1a99a 100644 (file)
@@ -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");