Home
last modified time | relevance | path

Searched refs:rcv_tsecr (Results 1 – 5 of 5) sorted by relevance

/linux/tools/testing/selftests/bpf/progs/
H A Dtest_tcp_custom_syncookie.c263 ctx->attrs.rcv_tsecr = get_unaligned_be32(tsecr); in tcp_parse_option()
265 if (ctx->tcp->syn && ctx->attrs.rcv_tsecr) in tcp_parse_option()
346 ctx->attrs.rcv_tsecr = bpf_get_prandom_u32(); in tcp_prepare_cookie()
347 ctx->attrs.rcv_tsecr &= ~COOKIE_MASK; in tcp_prepare_cookie()
348 ctx->attrs.rcv_tsecr |= hash & COOKIE_MASK; in tcp_prepare_cookie()
391 *ctx->ptr32++ = bpf_htonl(ctx->attrs.rcv_tsecr); in tcp_write_options()
482 hash -= ctx->attrs.rcv_tsecr & COOKIE_MASK; in tcp_validate_cookie()
/linux/net/ipv4/
H A Dtcp_minisocks.c124 if (tmp_opt.rcv_tsecr) in tcp_timewait_state_process()
125 tmp_opt.rcv_tsecr -= tcptw->tw_ts_offset; in tcp_timewait_state_process()
707 if (tmp_opt.rcv_tsecr) { in tcp_check_req()
709 tsecr_reject = !between(tmp_opt.rcv_tsecr, in tcp_check_req()
712 tmp_opt.rcv_tsecr -= tcp_rsk(req)->ts_off; in tcp_check_req()
H A Dtcp_input.c880 delta = tcp_time_stamp_ts(tp) - tp->rx_opt.rcv_tsecr; in tcp_rtt_tsopt_us()
898 if (tp->rx_opt.rcv_tsecr == tp->rcv_rtt_last_tsecr) in tcp_rcv_rtt_measure_ts()
900 tp->rcv_rtt_last_tsecr = tp->rx_opt.rcv_tsecr; in tcp_rcv_rtt_measure_ts()
2725 return tp->rx_opt.saw_tstamp && tp->rx_opt.rcv_tsecr && in tcp_tsopt_ecr_before()
2726 before(tp->rx_opt.rcv_tsecr, when); in tcp_tsopt_ecr_before()
3480 tp->rx_opt.rcv_tsecr && flag & FLAG_ACKED) in tcp_ack_update_rtt()
4630 opt_rx->rcv_tsecr = get_unaligned_be32(ptr + 4); in tcp_parse_options()
4714 tp->rx_opt.rcv_tsecr = ntohl(*ptr) - tp->tsoffset; in tcp_parse_aligned_timestamp()
4716 tp->rx_opt.rcv_tsecr = 0; in tcp_parse_aligned_timestamp()
4745 if (tp->rx_opt.saw_tstamp && tp->rx_opt.rcv_tsecr) in tcp_fast_parse_options()
[all …]
/linux/include/linux/
H A Dtcp.h116 u32 rcv_tsecr; /* Time stamp echo reply */ member
/linux/net/core/
H A Dfilter.c12567 tsoff = attrs->rcv_tsecr - tcp_ns_to_ts(attrs->usec_ts_ok, tcp_clock_ns()); in bpf_sk_assign_tcp_reqsk()