Deleted Added
full compact
33c33
< __FBSDID("$FreeBSD: head/sys/netinet/tcp_subr.c 251296 2013-06-03 12:55:13Z andre $");
---
> __FBSDID("$FreeBSD: head/sys/netinet/tcp_subr.c 254889 2013-08-25 21:54:41Z markj $");
38a39
> #include "opt_kdtrace.h"
55a57
> #include <sys/sdt.h>
68a71
> #include <netinet/in_kdtrace.h>
635d637
< ip6->ip6_plen = 0; /* Set in ip6_output(). */
636a639
> ip6->ip6_plen = htons(tlen - sizeof(*ip6));
704a708,711
> if (flags & TH_RST)
> TCP_PROBE5(accept_refused, NULL, NULL, m->m_data, tp, nth);
>
> TCP_PROBE5(send, NULL, tp, m->m_data, tp, nth);
885c892
< tp->t_state = TCPS_CLOSED;
---
> tcp_state_change(tp, TCPS_CLOSED);
2378a2386,2401
>
> /*
> * A subroutine which makes it easy to track TCP state changes with DTrace.
> * This function shouldn't be called for t_state initializations that don't
> * correspond to actual TCP state transitions.
> */
> void
> tcp_state_change(struct tcpcb *tp, int newstate)
> {
> #if defined(KDTRACE_HOOKS)
> int pstate = tp->t_state;
> #endif
>
> tp->t_state = newstate;
> TCP_PROBE6(state_change, NULL, tp, NULL, tp, NULL, pstate);
> }