Changeset View
Changeset View
Standalone View
Standalone View
usr.bin/systat/tcp.c
Show First 20 Lines • Show All 119 Lines • ▼ Show 20 Lines | #define R(row, str) mvwprintw(wnd, row, 51, str); | ||||
L(0, "TCP Connections"); R(0, "TCP Packets"); | L(0, "TCP Connections"); R(0, "TCP Packets"); | ||||
L(1, "connections initiated"); R(1, "total packets sent"); | L(1, "connections initiated"); R(1, "total packets sent"); | ||||
L(2, "connections accepted"); R(2, "- data"); | L(2, "connections accepted"); R(2, "- data"); | ||||
L(3, "connections established"); R(3, "- data (retransmit by dupack)"); | L(3, "connections established"); R(3, "- data (retransmit by dupack)"); | ||||
L(4, "connections dropped"); R(4, "- data (retransmit by sack)"); | L(4, "connections dropped"); R(4, "- data (retransmit by sack)"); | ||||
L(5, "- in embryonic state"); R(5, "- ack-only"); | L(5, "- in embryonic state"); R(5, "- ack-only"); | ||||
L(6, "- on retransmit timeout"); R(6, "- window probes"); | L(6, "- on retransmit timeout"); R(6, "- window probes"); | ||||
L(7, "- by keepalive"); R(7, "- window updates"); | L(7, "- by keepalive"); R(7, "- window updates"); | ||||
L(8, "- from listen queue"); R(8, "- urgent data only"); | L(8, "- exceeded progress time"); R(8, "- urgent data only"); | ||||
R(9, "- control"); | L(9, "- from listen queue"); R(9, "- control"); | ||||
R(10, "- resends by PMTU discovery"); | R(10, "- resends by PMTU discovery"); | ||||
L(11, "TCP Timers"); R(11, "total packets received"); | L(11, "TCP Timers"); R(11, "total packets received"); | ||||
L(12, "potential rtt updates"); R(12, "- in sequence"); | L(12, "potential rtt updates"); R(12, "- in sequence"); | ||||
L(13, "- successful"); R(13, "- completely duplicate"); | L(13, "- successful"); R(13, "- completely duplicate"); | ||||
L(14, "delayed acks sent"); R(14, "- with some duplicate data"); | L(14, "delayed acks sent"); R(14, "- with some duplicate data"); | ||||
L(15, "retransmit timeouts"); R(15, "- out-of-order"); | L(15, "retransmit timeouts"); R(15, "- out-of-order"); | ||||
L(16, "persist timeouts"); R(16, "- duplicate acks"); | L(16, "persist timeouts"); R(16, "- duplicate acks"); | ||||
L(17, "keepalive probes"); R(17, "- acks"); | L(17, "keepalive probes"); R(17, "- acks"); | ||||
Show All 36 Lines | #define DO(stat) ret->stat = (curstat.stat - sub->stat) / divisor | ||||
DO(tcps_rttupdated); | DO(tcps_rttupdated); | ||||
DO(tcps_delack); | DO(tcps_delack); | ||||
DO(tcps_timeoutdrop); | DO(tcps_timeoutdrop); | ||||
DO(tcps_rexmttimeo); | DO(tcps_rexmttimeo); | ||||
DO(tcps_persisttimeo); | DO(tcps_persisttimeo); | ||||
DO(tcps_keeptimeo); | DO(tcps_keeptimeo); | ||||
DO(tcps_keepprobe); | DO(tcps_keepprobe); | ||||
DO(tcps_keepdrops); | DO(tcps_keepdrops); | ||||
DO(tcps_progdrops); | |||||
DO(tcps_sndtotal); | DO(tcps_sndtotal); | ||||
DO(tcps_sndpack); | DO(tcps_sndpack); | ||||
DO(tcps_sndbyte); | DO(tcps_sndbyte); | ||||
DO(tcps_sndrexmitpack); | DO(tcps_sndrexmitpack); | ||||
DO(tcps_sack_rexmits); | DO(tcps_sack_rexmits); | ||||
DO(tcps_sndacks); | DO(tcps_sndacks); | ||||
DO(tcps_sndprobe); | DO(tcps_sndprobe); | ||||
▲ Show 20 Lines • Show All 53 Lines • ▼ Show 20 Lines | |||||
#define R(row, stat) DO(stat, row, 38) | #define R(row, stat) DO(stat, row, 38) | ||||
L(1, tcps_connattempt); R(1, tcps_sndtotal); | L(1, tcps_connattempt); R(1, tcps_sndtotal); | ||||
L(2, tcps_accepts); R(2, tcps_sndpack); | L(2, tcps_accepts); R(2, tcps_sndpack); | ||||
L(3, tcps_connects); R(3, tcps_sndrexmitpack); | L(3, tcps_connects); R(3, tcps_sndrexmitpack); | ||||
L(4, tcps_drops); R(4, tcps_sack_rexmits); | L(4, tcps_drops); R(4, tcps_sack_rexmits); | ||||
L(5, tcps_conndrops); R(5, tcps_sndacks); | L(5, tcps_conndrops); R(5, tcps_sndacks); | ||||
L(6, tcps_timeoutdrop); R(6, tcps_sndprobe); | L(6, tcps_timeoutdrop); R(6, tcps_sndprobe); | ||||
L(7, tcps_keepdrops); R(7, tcps_sndwinup); | L(7, tcps_keepdrops); R(7, tcps_sndwinup); | ||||
L(8, tcps_listendrop); R(8, tcps_sndurg); | L(8, tcps_progdrops); R(8, tcps_sndurg); | ||||
R(9, tcps_sndctrl); | L(9, tcps_listendrop); R(9, tcps_sndctrl); | ||||
R(10, tcps_mturesent); | R(10, tcps_mturesent); | ||||
R(11, tcps_rcvtotal); | R(11, tcps_rcvtotal); | ||||
L(12, tcps_segstimed); R(12, tcps_rcvpack); | L(12, tcps_segstimed); R(12, tcps_rcvpack); | ||||
L(13, tcps_rttupdated); R(13, tcps_rcvduppack); | L(13, tcps_rttupdated); R(13, tcps_rcvduppack); | ||||
L(14, tcps_delack); R(14, tcps_rcvpartduppack); | L(14, tcps_delack); R(14, tcps_rcvpartduppack); | ||||
L(15, tcps_rexmttimeo); R(15, tcps_rcvoopack); | L(15, tcps_rexmttimeo); R(15, tcps_rcvoopack); | ||||
L(16, tcps_persisttimeo); R(16, tcps_rcvdupack); | L(16, tcps_persisttimeo); R(16, tcps_rcvdupack); | ||||
L(17, tcps_keepprobe); R(17, tcps_rcvackpack); | L(17, tcps_keepprobe); R(17, tcps_rcvackpack); | ||||
▲ Show 20 Lines • Show All 70 Lines • Show Last 20 Lines |