Print this page
3903 DTrace SCTP Provider

Split Close
Expand all
Collapse all
          --- old/usr/src/lib/libdtrace/common/tcp.d.in
          +++ new/usr/src/lib/libdtrace/common/tcp.d.in
↓ open down ↓ 137 lines elided ↑ open up ↑
 138  138  /*
 139  139   * tcplsinfo provides the old tcp state for state changes.
 140  140   */
 141  141  typedef struct tcplsinfo {
 142  142          int32_t tcps_state;             /* previous TCP state */
 143  143  } tcplsinfo_t;
 144  144  
 145  145  /*
 146  146   * __dtrace_tcp_tcph_t is used by the tcpinfo_t * translator to take either
 147  147   * the non-NULL tcph_t * passed in or, if it is NULL, uses arg3 (tcp_t *)
 148      - * from the tcp:::send and tcp:::recieve probes and translates the tcp_t *
      148 + * from the tcp:::send and tcp:::receive probes and translates the tcp_t *
 149  149   * into the tcpinfo_t.  When no headers are available - as is the case for
 150  150   * TCP fusion tcp:::send and tcp:::receive - this allows us to present the
 151  151   * consumer with header data based on tcp_t * content and hide TCP fusion
 152  152   * implementation details.
 153  153   */
 154  154  typedef tcph_t * __dtrace_tcp_tcph_t;
 155  155  
 156  156  #pragma D binding "1.6.3" translator
 157  157  translator tcpinfo_t < tcph_t *T > {
 158  158          tcp_sport = ntohs(*(uint16_t *)T->th_lport);
↓ open down ↓ 111 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX