Changeset View
Changeset View
Standalone View
Standalone View
sys/netinet/tcp_subr.c
Show First 20 Lines • Show All 87 Lines • ▼ Show 20 Lines | |||||
#include <netinet/ip6.h> | #include <netinet/ip6.h> | ||||
#include <netinet6/in6_fib.h> | #include <netinet6/in6_fib.h> | ||||
#include <netinet6/in6_pcb.h> | #include <netinet6/in6_pcb.h> | ||||
#include <netinet6/ip6_var.h> | #include <netinet6/ip6_var.h> | ||||
#include <netinet6/scope6_var.h> | #include <netinet6/scope6_var.h> | ||||
#include <netinet6/nd6.h> | #include <netinet6/nd6.h> | ||||
#endif | #endif | ||||
#ifdef TCP_RFC7413 | |||||
#include <netinet/tcp_fastopen.h> | |||||
#endif | |||||
#include <netinet/tcp.h> | #include <netinet/tcp.h> | ||||
#include <netinet/tcp_fsm.h> | #include <netinet/tcp_fsm.h> | ||||
#include <netinet/tcp_seq.h> | #include <netinet/tcp_seq.h> | ||||
#include <netinet/tcp_timer.h> | #include <netinet/tcp_timer.h> | ||||
#include <netinet/tcp_var.h> | #include <netinet/tcp_var.h> | ||||
#include <netinet/tcp_syncache.h> | #include <netinet/tcp_syncache.h> | ||||
#include <netinet/cc/cc.h> | #include <netinet/cc/cc.h> | ||||
#ifdef INET6 | #ifdef INET6 | ||||
#include <netinet6/tcp6_var.h> | #include <netinet6/tcp6_var.h> | ||||
#endif | #endif | ||||
#include <netinet/tcpip.h> | #include <netinet/tcpip.h> | ||||
#ifdef TCP_RFC7413 | |||||
#include <netinet/tcp_fastopen.h> | |||||
#endif | |||||
#ifdef TCPPCAP | #ifdef TCPPCAP | ||||
#include <netinet/tcp_pcap.h> | #include <netinet/tcp_pcap.h> | ||||
#endif | #endif | ||||
#ifdef TCPDEBUG | #ifdef TCPDEBUG | ||||
#include <netinet/tcp_debug.h> | #include <netinet/tcp_debug.h> | ||||
#endif | #endif | ||||
#ifdef INET6 | #ifdef INET6 | ||||
#include <netinet6/ip6protosw.h> | #include <netinet6/ip6protosw.h> | ||||
▲ Show 20 Lines • Show All 2,283 Lines • ▼ Show 20 Lines | tcp_drop_syn_sent(struct inpcb *inp, int errno) | ||||
if ((inp->inp_flags & INP_TIMEWAIT) || | if ((inp->inp_flags & INP_TIMEWAIT) || | ||||
(inp->inp_flags & INP_DROPPED)) | (inp->inp_flags & INP_DROPPED)) | ||||
return (inp); | return (inp); | ||||
tp = intotcpcb(inp); | tp = intotcpcb(inp); | ||||
if (tp->t_state != TCPS_SYN_SENT) | if (tp->t_state != TCPS_SYN_SENT) | ||||
return (inp); | return (inp); | ||||
#ifdef TCP_RFC7413 | |||||
if (IS_FASTOPEN(tp->t_flags)) | |||||
tcp_fastopen_disable_path(tp); | |||||
#endif | |||||
tp = tcp_drop(tp, errno); | tp = tcp_drop(tp, errno); | ||||
if (tp != NULL) | if (tp != NULL) | ||||
return (inp); | return (inp); | ||||
else | else | ||||
return (NULL); | return (NULL); | ||||
} | } | ||||
/* | /* | ||||
▲ Show 20 Lines • Show All 476 Lines • Show Last 20 Lines |