Changeset View
Changeset View
Standalone View
Standalone View
cddl/lib/libdtrace/tcp.d
Show First 20 Lines • Show All 238 Lines • ▼ Show 20 Lines | translator tcpsinfo_t < struct tcpcb *p > { | ||||
tcps_radv = p == NULL ? -1 : p->rcv_adv; | tcps_radv = p == NULL ? -1 : p->rcv_adv; | ||||
tcps_rwnd = p == NULL ? -1 : p->rcv_wnd; | tcps_rwnd = p == NULL ? -1 : p->rcv_wnd; | ||||
tcps_rup = p == NULL ? -1 : p->rcv_up; | tcps_rup = p == NULL ? -1 : p->rcv_up; | ||||
tcps_rcv_ws = p == NULL ? -1 : p->rcv_scale; | tcps_rcv_ws = p == NULL ? -1 : p->rcv_scale; | ||||
tcps_cwnd = p == NULL ? -1 : p->snd_cwnd; | tcps_cwnd = p == NULL ? -1 : p->snd_cwnd; | ||||
tcps_cwnd_ssthresh = p == NULL ? -1 : p->snd_ssthresh; | tcps_cwnd_ssthresh = p == NULL ? -1 : p->snd_ssthresh; | ||||
tcps_srecover = p == NULL ? -1 : p->snd_recover; | tcps_srecover = p == NULL ? -1 : p->snd_recover; | ||||
tcps_sack_fack = p == NULL ? 0 : p->snd_fack; | tcps_sack_fack = p == NULL ? 0 : p->snd_fack; | ||||
tcps_sack_snxt = p == NULL ? 0 : p->sack_newdata; | tcps_sack_snxt = p == NULL ? 0 : p->snd_recover; | ||||
rscheff: this structure is in dtrace - but it appears to be an unstable interface as it tracks tcpcb… | |||||
tcps_rto = p == NULL ? -1 : (p->t_rxtcur * 1000) / `hz; | tcps_rto = p == NULL ? -1 : (p->t_rxtcur * 1000) / `hz; | ||||
tcps_mss = p == NULL ? -1 : p->t_maxseg; | tcps_mss = p == NULL ? -1 : p->t_maxseg; | ||||
tcps_retransmit = p == NULL ? -1 : p->t_rxtshift > 0 ? 1 : 0; | tcps_retransmit = p == NULL ? -1 : p->t_rxtshift > 0 ? 1 : 0; | ||||
tcps_srtt = p == NULL ? -1 : p->t_srtt; /* smoothed RTT in units of (TCP_RTT_SCALE*hz) */ | tcps_srtt = p == NULL ? -1 : p->t_srtt; /* smoothed RTT in units of (TCP_RTT_SCALE*hz) */ | ||||
tcps_debug = p == NULL ? 0 : | tcps_debug = p == NULL ? 0 : | ||||
p->t_inpcb->inp_socket->so_options & 1; | p->t_inpcb->inp_socket->so_options & 1; | ||||
tcps_cookie = p == NULL ? -1 : | tcps_cookie = p == NULL ? -1 : | ||||
p->t_inpcb->inp_socket->so_user_cookie; | p->t_inpcb->inp_socket->so_user_cookie; | ||||
▲ Show 20 Lines • Show All 163 Lines • Show Last 20 Lines |
this structure is in dtrace - but it appears to be an unstable interface as it tracks tcpcb directly. Shall this be removed altogether instead?