Print this page
3903 DTrace SCTP Provider

@@ -160,10 +160,13 @@
         connp->conn_ixa->ixa_cpid = connp->conn_cpid;
         if (is_system_labeled())
                 connp->conn_ixa->ixa_tsl = crgetlabel(connp->conn_cred);
 
         sctp->sctp_state = SCTPS_LISTEN;
+        DTRACE_SCTP6(state__change, void, NULL, ip_xmit_attr_t *,
+            connp->conn_ixa, void, NULL, sctp_t *, sctp, void, NULL,
+            int32_t, SCTPS_BOUND);
         (void) random_get_pseudo_bytes(sctp->sctp_secret, SCTP_SECRET_LEN);
         sctp->sctp_last_secret_update = ddi_get_lbolt64();
         bzero(sctp->sctp_old_secret, SCTP_SECRET_LEN);
 
         /*

@@ -706,10 +709,14 @@
                          * This port is ours. Insert in fanout and mark as
                          * bound to prevent others from getting the port
                          * number.
                          */
                         sctp->sctp_state = SCTPS_BOUND;
+                        DTRACE_SCTP6(state__change, void, NULL,
+                            ip_xmit_attr_t *, connp->conn_ixa, void, NULL,
+                            scpt_t *, sctp, void, NULL,
+                            int32_t, SCTPS_IDLE);
                         connp->conn_lport = lport;
 
                         ASSERT(&sctps->sctps_bind_fanout[
                             SCTP_BIND_HASH(port)] == tbf);
                         sctp_bind_hash_insert(tbf, sctp, 1);