Changeset View
Changeset View
Standalone View
Standalone View
sys/netinet/tcp_subr.c
Show First 20 Lines • Show All 2,168 Lines • ▼ Show 20 Lines | if (INP_WLOCKED(inp)) { | ||||
(tp->t_state > TCPS_LISTEN && tp->t_port != port)), | (tp->t_state > TCPS_LISTEN && tp->t_port != port)), | ||||
("%s: Logging of TCP segment with flags 0x%b and " | ("%s: Logging of TCP segment with flags 0x%b and " | ||||
"UDP encapsulation port %u skipped in state %s", | "UDP encapsulation port %u skipped in state %s", | ||||
__func__, thflags, PRINT_TH_FLAGS, | __func__, thflags, PRINT_TH_FLAGS, | ||||
ntohs(port), tcpstates[tp->t_state])); | ntohs(port), tcpstates[tp->t_state])); | ||||
} | } | ||||
} | } | ||||
if (flags & TH_ACK) | |||||
TCPSTAT_INC(tcps_sndacks); | |||||
else if (flags & (TH_SYN|TH_FIN|TH_RST)) | |||||
TCPSTAT_INC(tcps_sndctrl); | |||||
TCPSTAT_INC(tcps_sndtotal); | |||||
#ifdef INET6 | #ifdef INET6 | ||||
if (isipv6) { | if (isipv6) { | ||||
TCP_PROBE5(send, NULL, tp, ip6, tp, nth); | TCP_PROBE5(send, NULL, tp, ip6, tp, nth); | ||||
output_ret = ip6_output(m, NULL, NULL, 0, NULL, NULL, inp); | output_ret = ip6_output(m, NULL, NULL, 0, NULL, NULL, inp); | ||||
} | } | ||||
#endif /* INET6 */ | #endif /* INET6 */ | ||||
#if defined(INET) && defined(INET6) | #if defined(INET) && defined(INET6) | ||||
else | else | ||||
▲ Show 20 Lines • Show All 1,965 Lines • Show Last 20 Lines |