Changeset View
Changeset View
Standalone View
Standalone View
head/sys/netinet/tcp_syncache.c
Show First 20 Lines • Show All 1,363 Lines • ▼ Show 20 Lines | |||||
* cookie is processed and a new socket is created. In this case, any data | * cookie is processed and a new socket is created. In this case, any data | ||||
* accompanying the SYN will be queued to the socket by tcp_input() and will | * accompanying the SYN will be queued to the socket by tcp_input() and will | ||||
* be ACKed either when the application sends response data or the delayed | * be ACKed either when the application sends response data or the delayed | ||||
* ACK timer expires, whichever comes first. | * ACK timer expires, whichever comes first. | ||||
*/ | */ | ||||
int | int | ||||
syncache_add(struct in_conninfo *inc, struct tcpopt *to, struct tcphdr *th, | syncache_add(struct in_conninfo *inc, struct tcpopt *to, struct tcphdr *th, | ||||
struct inpcb *inp, struct socket **lsop, struct mbuf *m, void *tod, | struct inpcb *inp, struct socket **lsop, struct mbuf *m, void *tod, | ||||
void *todctx) | void *todctx, uint8_t iptos) | ||||
{ | { | ||||
struct tcpcb *tp; | struct tcpcb *tp; | ||||
struct socket *so; | struct socket *so; | ||||
struct syncache *sc = NULL; | struct syncache *sc = NULL; | ||||
struct syncache_head *sch; | struct syncache_head *sch; | ||||
struct mbuf *ipopts = NULL; | struct mbuf *ipopts = NULL; | ||||
u_int ltflags; | u_int ltflags; | ||||
int win, ip_ttl, ip_tos; | int win, ip_ttl, ip_tos; | ||||
▲ Show 20 Lines • Show All 1,112 Lines • Show Last 20 Lines |