Home
last modified time | relevance | path

Searched refs:tsecr (Results 1 – 9 of 9) sorted by relevance

/linux/tools/testing/selftests/bpf/progs/
H A Dxdp_synproxy_kern.c192 __be32 *tsecr;
219 __u8 *opcode, *opsize, *wscale, *tsecr; in tscookie_tcpopt_parse()
244 tsecr = next(ctx, 4); in tscookie_tcpopt_parse()
245 if (!tsecr) in tscookie_tcpopt_parse()
249 /* Client's tsval becomes our tsecr. */ in tscookie_tcpopt_parse()
250 *ctx->tsecr = get_unaligned((__be32 *)tsecr); in tscookie_tcpopt_parse()
276 __be32 *tsecr, void *data, void *data_end) in tscookie_init()
281 .tsecr = tsecr, in tscookie_init()
193 __be32 *tsecr; global() member
220 __u8 *opcode, *opsize, *wscale, *tsecr; tscookie_tcpopt_parse() local
277 tscookie_init(struct tcphdr * tcp_header,__u16 tcp_len,__be32 * tsval,__be32 * tsecr,void * data,void * data_end) tscookie_init() argument
[all...]
H A Dtest_tcp_custom_syncookie.c223 __u32 *tsval, *tsecr; in tcp_parse_option() local
260 tsecr = next(ctx, 4); in tcp_parse_option()
261 if (*opsize == TCPOLEN_TIMESTAMP && tsval && tsecr) { in tcp_parse_option()
263 ctx->attrs.rcv_tsecr = get_unaligned_be32(tsecr); in tcp_parse_option()
/linux/net/netfilter/
H A Dnf_synproxy_core.c79 opts->tsecr = get_unaligned_be32(ptr + 4); in synproxy_parse_options()
138 *ptr++ = htonl(opts->tsecr); in synproxy_build_options()
155 opts->tsecr = opts->tsval; in synproxy_init_timestamp_cookie()
175 opts->wscale = opts->tsecr & 0xf; in synproxy_check_timestamp_cookie()
179 opts->options |= opts->tsecr & (1 << 4) ? NF_SYNPROXY_OPT_SACK_PERM : 0; in synproxy_check_timestamp_cookie()
181 opts->options |= opts->tsecr & (1 << 5) ? NF_SYNPROXY_OPT_ECN : 0; in synproxy_check_timestamp_cookie()
712 synproxy->its = opts.tsecr; in ipv4_synproxy_hook()
732 swap(opts.tsval, opts.tsecr); in ipv4_synproxy_hook()
738 swap(opts.tsval, opts.tsecr); in ipv4_synproxy_hook()
1135 synproxy->its = opts.tsecr; in ipv6_synproxy_hook()
[all …]
/linux/include/net/netfilter/
H A Dnf_synproxy.h41 u32 tsecr; member
/linux/net/sched/
H A Dsch_cake.c1110 u32 *tsval, u32 *tsecr) in cake_tcph_get_tstamp() argument
1119 *tsecr = get_unaligned_be32(ptr + 4); in cake_tcph_get_tstamp()
1129 u32 tstamp, tsecr; in cake_tcph_may_drop() local
1173 tsecr = get_unaligned_be32(ptr + 4); in cake_tcph_may_drop()
1175 after(tsecr, tsecr_new)) in cake_tcph_may_drop()
1208 u32 tstamp = 0, tsecr = 0; in cake_ack_filter() local
1222 cake_tcph_get_tstamp(tcph, &tstamp, &tsecr); in cake_ack_filter()
1289 if (!cake_tcph_may_drop(tcph_check, tstamp, tsecr) || in cake_ack_filter()
/linux/net/ipv6/
H A Dtcp_ipv6.c863 u32 ack, u32 win, u32 tsval, u32 tsecr, in tcp_v6_send_response() argument
878 if (tsecr) in tcp_v6_send_response()
916 if (tsecr) { in tcp_v6_send_response()
920 *topt++ = htonl(tsecr); in tcp_v6_send_response()
1148 u32 ack, u32 win, u32 tsval, u32 tsecr, int oif, in tcp_v6_send_ack() argument
1152 tcp_v6_send_response(sk, skb, seq, ack, win, tsval, tsecr, oif, 0, in tcp_v6_send_ack()
/linux/net/ipv4/
H A Dtcp_ipv4.c935 u32 win, u32 tsval, u32 tsecr, int oif, in tcp_v4_send_ack() argument
954 if (tsecr) { in tcp_v4_send_ack()
959 rep.opt[2] = htonl(tsecr); in tcp_v4_send_ack()
974 int offset = (tsecr) ? 3 : 0; in tcp_v4_send_ack()
990 int offset = (tsecr) ? 3 : 0; in tcp_v4_send_ack()
H A Dtcp_output.c454 __u32 tsval, tsecr; /* need to include OPTION_TS */ member
696 *ptr++ = htonl(opts->tsecr); in tcp_options_write()
851 opts->tsecr = tp->rx_opt.ts_recent; in tcp_syn_options()
941 opts->tsecr = READ_ONCE(req->ts_recent); in tcp_synack_options()
998 opts->tsecr = tp->rx_opt.ts_recent; in tcp_established_options()
/linux/tools/testing/selftests/net/
H A Dgro.c430 uint32_t tsecr; in tcp_write_options() member
453 opt_ts->tsecr = 0; in tcp_write_options()