Changeset View
Changeset View
Standalone View
Standalone View
head/sys/netinet/tcp_input.c
Show First 20 Lines • Show All 1,607 Lines • ▼ Show 20 Lines | #endif | ||||
KASSERT(tp->t_state != TCPS_TIME_WAIT, ("%s: TCPS_TIME_WAIT", | KASSERT(tp->t_state != TCPS_TIME_WAIT, ("%s: TCPS_TIME_WAIT", | ||||
__func__)); | __func__)); | ||||
#ifdef TCPPCAP | #ifdef TCPPCAP | ||||
/* Save segment, if requested. */ | /* Save segment, if requested. */ | ||||
tcp_pcap_add(th, m, &(tp->t_inpkts)); | tcp_pcap_add(th, m, &(tp->t_inpkts)); | ||||
#endif | #endif | ||||
if ((thflags & TH_SYN) && (thflags & TH_FIN) && V_drop_synfin) { | |||||
if ((s = tcp_log_addrs(inc, th, NULL, NULL))) { | |||||
log(LOG_DEBUG, "%s; %s: " | |||||
"SYN|FIN segment ignored (based on " | |||||
"sysctl setting)\n", s, __func__); | |||||
free(s, M_TCPLOG); | |||||
} | |||||
goto drop; | |||||
} | |||||
/* | /* | ||||
* Segment received on connection. | * Segment received on connection. | ||||
* Reset idle time and keep-alive timer. | * Reset idle time and keep-alive timer. | ||||
* XXX: This should be done after segment | * XXX: This should be done after segment | ||||
* validation to ignore broken/spoofed segs. | * validation to ignore broken/spoofed segs. | ||||
*/ | */ | ||||
tp->t_rcvtime = ticks; | tp->t_rcvtime = ticks; | ||||
▲ Show 20 Lines • Show All 2,275 Lines • Show Last 20 Lines |