Home
last modified time | relevance | path

Searched refs:tcp_opt (Results 1 – 8 of 8) sorted by relevance

/linux-4.4.14/net/ipv4/
Dsyncookies.c247 bool cookie_timestamp_decode(struct tcp_options_received *tcp_opt) in cookie_timestamp_decode() argument
250 u32 options = tcp_opt->rcv_tsecr; in cookie_timestamp_decode()
252 if (!tcp_opt->saw_tstamp) { in cookie_timestamp_decode()
253 tcp_clear_options(tcp_opt); in cookie_timestamp_decode()
260 tcp_opt->sack_ok = (options & TS_OPT_SACK) ? TCP_SACK_SEEN : 0; in cookie_timestamp_decode()
262 if (tcp_opt->sack_ok && !sysctl_tcp_sack) in cookie_timestamp_decode()
268 tcp_opt->wscale_ok = 1; in cookie_timestamp_decode()
269 tcp_opt->snd_wscale = options & TS_OPT_WSCALE_MASK; in cookie_timestamp_decode()
275 bool cookie_ecn_ok(const struct tcp_options_received *tcp_opt, in cookie_ecn_ok() argument
278 bool ecn_ok = tcp_opt->rcv_tsecr & TS_OPT_ECN; in cookie_ecn_ok()
[all …]
/linux-4.4.14/net/ipv6/
Dsyncookies.c138 struct tcp_options_received tcp_opt; in cookie_v6_check() local
166 memset(&tcp_opt, 0, sizeof(tcp_opt)); in cookie_v6_check()
167 tcp_parse_options(skb, &tcp_opt, 0, NULL); in cookie_v6_check()
169 if (!cookie_timestamp_decode(&tcp_opt)) in cookie_v6_check()
205 ireq->snd_wscale = tcp_opt.snd_wscale; in cookie_v6_check()
206 ireq->sack_ok = tcp_opt.sack_ok; in cookie_v6_check()
207 ireq->wscale_ok = tcp_opt.wscale_ok; in cookie_v6_check()
208 ireq->tstamp_ok = tcp_opt.saw_tstamp; in cookie_v6_check()
209 req->ts_recent = tcp_opt.saw_tstamp ? tcp_opt.rcv_tsval : 0; in cookie_v6_check()
245 ireq->ecn_ok = cookie_ecn_ok(&tcp_opt, sock_net(sk), dst); in cookie_v6_check()
/linux-4.4.14/drivers/scsi/cxgbi/cxgb4i/
Dcxgb4i.c713 unsigned short tcp_opt = ntohs(req->tcp_opt); in do_act_establish() local
763 csk->advmss = lldi->mtus[TCPOPT_MSS_G(tcp_opt)] - 40; in do_act_establish()
764 if (TCPOPT_TSTAMP_G(tcp_opt)) in do_act_establish()
771 csk, TCPOPT_MSS_G(tcp_opt), csk->advmss); in do_act_establish()
773 cxgbi_sock_established(csk, ntohl(req->snd_isn), ntohs(req->tcp_opt)); in do_act_establish()
/linux-4.4.14/drivers/net/ethernet/chelsio/cxgb4/
Dt4_msg.h500 __be16 tcp_opt; member
557 __be16 tcp_opt; member
/linux-4.4.14/drivers/net/ethernet/chelsio/cxgb3/
Dt3_cpl.h509 __be16 tcp_opt; member
636 __be16 tcp_opt; member
/linux-4.4.14/drivers/infiniband/hw/cxgb3/
Diwch_cm.c650 set_emss(ep, ntohs(req->tcp_opt)); in act_establish()
1430 set_emss(ep, ntohs(req->tcp_opt)); in pass_establish()
/linux-4.4.14/drivers/scsi/cxgbi/cxgb3i/
Dcxgb3i.c509 cxgbi_sock_established(csk, ntohl(req->snd_isn), ntohs(req->tcp_opt)); in do_act_establish()
/linux-4.4.14/drivers/infiniband/hw/cxgb4/
Dcm.c1133 set_emss(ep, ntohs(req->tcp_opt)); in act_establish()
2549 ntohs(req->tcp_opt)); in pass_establish()
2551 set_emss(ep, ntohs(req->tcp_opt)); in pass_establish()