Home
last modified time | relevance | path

Searched refs:doff (Results 1 – 15 of 15) sorted by relevance

/tools/testing/selftests/bpf/prog_tests/
A Dflow_dissector.c106 .tcp.doff = 5,
127 .tcp.doff = 5,
150 .tcp.doff = 5,
173 .tcp.doff = 5,
197 .tcp.doff = 5,
224 .tcp.doff = 5,
246 .tcp.doff = 5,
273 .tcp.doff = 5,
296 .tcp.doff = 5,
319 .tcp.doff = 5,
[all …]
A Dkfree_skb.c46 if (CHECK(pkt_v6->tcp.doff != 5, "check_tcp", in on_sample()
47 "tcp.doff %x\n", pkt_v6->tcp.doff)) in on_sample()
A Dparse_tcp_hdr_opt.c20 .pk6_v6.tcp.doff = 9, /* 16 bytes of options */
/tools/testing/selftests/bpf/progs/
A Dtest_tcp_custom_syncookie.c133 if (ctx->tcp->doff < sizeof(*ctx->tcp) / 4) in tcp_reload_headers()
137 if (bpf_skb_change_tail(ctx->skb, data_len + 60 - ctx->tcp->doff * 4, 0)) in tcp_reload_headers()
164 ctx->tcp->doff * 4, IPPROTO_TCP, csum); in tcp_v4_csum()
170 ctx->tcp->doff * 4, IPPROTO_TCP, csum); in tcp_v6_csum()
180 csum = bpf_csum_diff(0, 0, (void *)ctx->tcp, ctx->tcp->doff * 4, 0); in tcp_validate_header()
420 ctx->tcp->doff = ((long)ctx->ptr32 - (long)ctx->tcp) >> 2; in tcp_handle_syn()
426 csum = bpf_csum_diff(0, 0, (void *)ctx->tcp, ctx->tcp->doff * 4, 0); in tcp_handle_syn()
A Dtest_select_reuseport_kern.c119 if ((th->doff << 2) + sizeof(*cmd) > data_check.len) in _select_by_skb_data()
121 if (bpf_skb_load_bytes(reuse_md, th->doff << 2, &cmd_copy, in _select_by_skb_data()
A Dxdp_synproxy_kern.c423 hdr->tcp_len = hdr->tcp->doff * 4; in tcp_dissect()
523 tcp_header->doff = 5; /* doff is part of tcp_flag_word. */ in tcp_gen_synack()
532 tcp_header->doff += tcp_mkoptions(tcp_options, tsopt, mss, wscale); in tcp_gen_synack()
554 hdr->tcp_len = hdr->tcp->doff * 4; in tcpv4_gen_synack()
575 hdr->tcp_len = hdr->tcp->doff * 4; in tcpv6_gen_synack()
717 new_pkt_size = sizeof(*hdr->eth) + ip_len + hdr->tcp->doff * 4; in syncookie_handle_syn()
813 hdr->tcp_len = hdr->tcp->doff * 4; in syncookie_part2()
A Dtest_parse_tcp_hdr_opt_dynptr.c94 tcp_hdr_opt_len = (tcp_hdr->doff * 4) - sizeof(struct tcphdr); in xdp_ingress_v6()
A Dtest_parse_tcp_hdr_opt.c97 tcp_hdr_opt_len = (tcp_hdr->doff * 4) - sizeof(struct tcphdr); in xdp_ingress_v6()
A Dtest_btf_skc_cls_ingress.c33 if (th->doff * 4 != 40) { in test_syncookie_helper()
A Dbpf_flow.c231 if (tcp->doff < 5) in parse_ip_proto()
234 if ((__u8 *)tcp + (tcp->doff << 2) > data_end) in parse_ip_proto()
/tools/include/uapi/linux/
A Dtcp.h32 doff:4, member
42 __u16 doff:4, member
/tools/testing/selftests/bpf/
A Dtest_tcp_hdr_options.h98 return th->doff << 2; in tcp_hdrlen()
A Dnetwork_helpers.c58 .tcp.doff = 5,
66 .tcp.doff = 5,
/tools/testing/selftests/net/
A Dgro.c294 tcph->doff = 5; in fill_transportlayer()
412 tcphdr->doff = tcphdr->doff + (extlen / 4); in recompute_packet()
944 tcp_ext_len = (tcph->doff - 5) * 4; in check_recv_pkts()
/tools/testing/selftests/net/lib/
A Dcsum.c262 th->doff = 5; in build_packet_tcp()

Completed in 33 milliseconds