Changeset View
Changeset View
Standalone View
Standalone View
sys/netinet/tcp_input.c
Show First 20 Lines • Show All 50 Lines • ▼ Show 20 Lines | |||||
#include <sys/cdefs.h> | #include <sys/cdefs.h> | ||||
__FBSDID("$FreeBSD$"); | __FBSDID("$FreeBSD$"); | ||||
#include "opt_inet.h" | #include "opt_inet.h" | ||||
#include "opt_inet6.h" | #include "opt_inet6.h" | ||||
#include "opt_ipsec.h" | #include "opt_ipsec.h" | ||||
#include "opt_tcpdebug.h" | #include "opt_tcpdebug.h" | ||||
#include "opt_accecn.h" | |||||
#include <sys/param.h> | #include <sys/param.h> | ||||
#include <sys/arb.h> | #include <sys/arb.h> | ||||
#include <sys/kernel.h> | #include <sys/kernel.h> | ||||
#ifdef TCP_HHOOK | #ifdef TCP_HHOOK | ||||
#include <sys/hhook.h> | #include <sys/hhook.h> | ||||
#endif | #endif | ||||
#include <sys/malloc.h> | #include <sys/malloc.h> | ||||
▲ Show 20 Lines • Show All 1,555 Lines • ▼ Show 20 Lines | #endif | ||||
tiwin = th->th_win << tp->snd_scale; | tiwin = th->th_win << tp->snd_scale; | ||||
#ifdef STATS | #ifdef STATS | ||||
stats_voi_update_abs_ulong(tp->t_stats, VOI_TCP_FRWIN, tiwin); | stats_voi_update_abs_ulong(tp->t_stats, VOI_TCP_FRWIN, tiwin); | ||||
#endif | #endif | ||||
/* | /* | ||||
* TCP ECN processing. | * TCP ECN processing. | ||||
*/ | */ | ||||
#if defined(TCP_ACCECNOPT) | |||||
if (tcp_ecn_input_segment(tp, thflags, tlen, iptos)) | |||||
#else | |||||
if (tcp_ecn_input_segment(tp, thflags, iptos)) | if (tcp_ecn_input_segment(tp, thflags, iptos)) | ||||
#endif /* TCP_ACCECNOPT */ | |||||
cc_cong_signal(tp, th, CC_ECN); | cc_cong_signal(tp, th, CC_ECN); | ||||
/* | /* | ||||
* Parse options on any incoming segment. | * Parse options on any incoming segment. | ||||
*/ | */ | ||||
tcp_dooptions(&to, (u_char *)(th + 1), | tcp_dooptions(&to, (u_char *)(th + 1), | ||||
(th->th_off << 2) - sizeof(struct tcphdr), | (th->th_off << 2) - sizeof(struct tcphdr), | ||||
(thflags & TH_SYN) ? TO_SYN : 0); | (thflags & TH_SYN) ? TO_SYN : 0); | ||||
▲ Show 20 Lines • Show All 2,443 Lines • Show Last 20 Lines |