Lines Matching +full:local +full:- +full:host

34 .Fn tcp:::accept-established "pktinfo_t *" "csinfo_t *" "ipinfo_t *" \
36 .Fn tcp:::accept-refused "pktinfo_t *" "csinfo_t *" "ipinfo_t *" \
38 .Fn tcp:::connect-established "pktinfo_t *" "csinfo_t *" "ipinfo_t *" \
40 .Fn tcp:::connect-refused "pktinfo_t *" "csinfo_t *" "ipinfo_t *" \
42 .Fn tcp:::connect-request "pktinfo_t *" "csinfo_t *" "ipinfo_t *" \
48 .Fn tcp:::state-change "void *" "csinfo_t *" "void *" "tcpsinfo_t *" "void *" \
66 .Fn tcp:::state-change
72 argument exposes the version-agnostic fields of the IP header, while the
80 .Fn tcp:::accept-established
81 probe fires when a remotely-initiated active TCP open succeeds.
83 arguments expose the headers associated with the final ACK of the three-way
86 .Fn tcp:::accept-refused
89 to the remote host in response to the SYN segment.
92 .Fn tcp:::connect-established ,
93 .Fn tcp:::connect-refused ,
95 .Fn tcp:::connect-request
98 probes, except that they correspond to locally-initiated TCP connections.
100 .Fn tcp:::connect-established
101 probe fires when the SYN-ACK segment of a three-way handshake is received from
102 the remote host and a final ACK is prepared for transmission.
103 This occurs immediately after the local connection state transitions from
104 SYN-SENT to ESTABLISHED.
105 The probe arguments describe the headers associated with the received SYN-ACK
108 .Fn tcp:::connect-refused
109 probe fires when the local host receives a RST segment in response to a SYN
110 segment, indicating that the remote host refused to open a connection.
114 .Fn tcp:::connect-request
116 three-way handshake.
122 probes fire when the host sends or receives a TCP packet, respectively.
127 probes fire only for packets sent by or to the local host; forwarded packets are
133 .Fn tcp:::state-change
134 probe fires upon local TCP connection state transitions.
137 Its last argument describes the from-state in the transition, and the to-state
139 .Dv args[3]->tcps_state .
143 probe fires when a TCP segment is sent or received by the host.
155 .Bl -tag -width "uinptr_t pkt_addr" -offset indent
165 .Bl -tag -width "uintptr_t cs_addr" -offset indent
179 type is a version-agnostic representation of fields from an IP header.
190 .Fn tcp:::accept-refused ,
195 .Bl -tag -width "uint16_t tcps_lport" -offset indent
201 A boolean indicating whether the connection is local to the host.
202 Currently unimplemented and always set to -1.
204 A boolean indicating whether the connection was initiated by the local host.
205 Currently unimplemented and always set to -1.
207 Local TCP port.
211 Local address.
248 Round-trip timeout, in milliseconds.
252 A boolean indicating that the local sender is retransmitting data.
254 Smoothed round-trip time.
259 type exposes the fields in a TCP segment header in host order.
261 .Bl -tag -width "struct tcphdr *tcp_hdr" -offset indent
287 .Fn tcp:::state-change
288 probe to provide the from-state of a transition.
290 .Bl -tag -width "int32_t tcps_state" -offset indent
305 .Bl -tag -width "u_int sent_inflight_bytes" -offset indent
321 The TCP port that the local host is communicating via.
323 The TCP port that the remote host is communicating via.
325 The IPv4 or IPv6 address of the local host.
327 The IPv4 or IPv6 address of the remote host.
371 The current number of unacknowledged bytes in-flight.
388 .Bl -tag -width "/usr/lib/dtrace/siftr.d" -compact
404 .Bd -literal -offset indent
410 printf(" %3s %15s:%-5s %15s:%-5s %6s %s\\n", "CPU",
416 this->length = args[2]->ip_plength - args[4]->tcp_offset;
417 printf(" %3d %16s:%-5d -> %16s:%-5d %6d (", cpu, args[2]->ip_saddr,
418 args[4]->tcp_sport, args[2]->ip_daddr, args[4]->tcp_dport,
419 this->length);
420 printf("%s", args[4]->tcp_flags & TH_FIN ? "FIN|" : "");
421 printf("%s", args[4]->tcp_flags & TH_SYN ? "SYN|" : "");
422 printf("%s", args[4]->tcp_flags & TH_RST ? "RST|" : "");
423 printf("%s", args[4]->tcp_flags & TH_PUSH ? "PUSH|" : "");
424 printf("%s", args[4]->tcp_flags & TH_ACK ? "ACK|" : "");
425 printf("%s", args[4]->tcp_flags & TH_URG ? "URG|" : "");
426 printf("%s", args[4]->tcp_flags == 0 ? "null " : "");
432 this->length = args[2]->ip_plength - args[4]->tcp_offset;
433 printf(" %3d %16s:%-5d <- %16s:%-5d %6d (", cpu,
434 args[2]->ip_daddr, args[4]->tcp_dport, args[2]->ip_saddr,
435 args[4]->tcp_sport, this->length);
436 printf("%s", args[4]->tcp_flags & TH_FIN ? "FIN|" : "");
437 printf("%s", args[4]->tcp_flags & TH_SYN ? "SYN|" : "");
438 printf("%s", args[4]->tcp_flags & TH_RST ? "RST|" : "");
439 printf("%s", args[4]->tcp_flags & TH_PUSH ? "PUSH|" : "");
440 printf("%s", args[4]->tcp_flags & TH_ACK ? "ACK|" : "");
441 printf("%s", args[4]->tcp_flags & TH_URG ? "URG|" : "");
442 printf("%s", args[4]->tcp_flags == 0 ? "null " : "");
447 .Bd -literal -offset indent
455 printf(" %12s %-20s %-20s %s\\n",
459 tcp:::state-change
461 this->elapsed = (timestamp - last[args[1]->cs_cid]) / 1000;
462 printf(" %12d %-20s -> %-20s %d\\n", this->elapsed,
463 tcp_state_string[args[5]->tcps_state],
464 tcp_state_string[args[3]->tcps_state], timestamp);
465 last[args[1]->cs_cid] = timestamp;
468 tcp:::state-change
469 /last[args[1]->cs_cid] == 0/
471 printf(" %12s %-20s -> %-20s %d\\n", "-",
472 tcp_state_string[args[5]->tcps_state],
473 tcp_state_string[args[3]->tcps_state], timestamp);
474 last[args[1]->cs_cid] = timestamp;
479 .Bd -literal -offset indent
485 printf(" %3s %16s:%-5s %16s:%-5s %10s %10s\\n",
491 printf(" %3s %16s:%-5d %16s:%-5d %10u %10u\\n",
492 siftr_dir_string[args[0]->direction],
493 args[0]->laddr, args[0]->lport, args[0]->raddr, args[0]->rport,
494 args[0]->snd_cwnd, args[0]->snd_ssthresh);