Searched refs:tcp_offset (Results 1 – 6 of 6) sorted by relevance
/linux-6.6.21/tools/testing/selftests/bpf/progs/ |
D | test_parse_tcp_hdr_opt.c | 89 __u64 tcp_offset = 0; in xdp_ingress_v6() local 92 tcp_offset = sizeof(struct ethhdr) + sizeof(struct ipv6hdr); in xdp_ingress_v6() 93 tcp_hdr = (struct tcphdr *)(data + tcp_offset); in xdp_ingress_v6() 102 opt_state.byte_offset = sizeof(struct tcphdr) + tcp_offset; in xdp_ingress_v6()
|
/linux-6.6.21/tools/testing/selftests/net/ |
D | gro.c | 87 static int tcp_offset = -1; variable 104 const int dport_off = tcp_offset + offsetof(struct tcphdr, dest); in setup_sock_filter() 290 fill_transportlayer(buf + tcp_offset, seq_offset, ack_offset, in create_packet() 311 tcph = (struct tcphdr *)(flag_buf + tcp_offset); in send_flags() 378 struct tcphdr *tcphdr = (struct tcphdr *)(buf + tcp_offset); in recompute_packet() 472 struct tcphdr *tcph = (struct tcphdr *)(buf + tcp_offset); in send_changed_checksum() 487 struct tcphdr *tcph = (struct tcphdr *)(buf + tcp_offset); in send_changed_seq() 556 struct ip_timestamp *ts = (struct ip_timestamp *)(optpkt + tcp_offset); in add_ipv4_ts_option() 568 memcpy(optpkt, buf, tcp_offset); in add_ipv4_ts_option() 569 memcpy(optpkt + tcp_offset + optlen, buf + tcp_offset, in add_ipv4_ts_option() [all …]
|
/linux-6.6.21/drivers/net/ethernet/sfc/ |
D | ef100_tx.c | 191 unsigned int len, ip_offset, tcp_offset, payload_segs; in ef100_make_tso_desc() local 215 tcp_offset = skb_inner_transport_offset(skb); in ef100_make_tso_desc() 221 tcp_offset = skb_transport_offset(skb); in ef100_make_tso_desc() 227 tcp = (void *)skb->data + tcp_offset; in ef100_make_tso_desc() 228 paylen = skb->len - tcp_offset; in ef100_make_tso_desc() 241 ESF_GZ_TX_TSO_INNER_L4_OFF_W, tcp_offset >> 1, in ef100_make_tso_desc()
|
/linux-6.6.21/net/netfilter/ipvs/ |
D | ip_vs_app.c | 365 const unsigned int tcp_offset = ip_hdrlen(skb); in app_tcp_pkt_out() local 369 if (skb_ensure_writable(skb, tcp_offset + sizeof(*th))) in app_tcp_pkt_out() 372 th = (struct tcphdr *)(skb_network_header(skb) + tcp_offset); in app_tcp_pkt_out() 442 const unsigned int tcp_offset = ip_hdrlen(skb); in app_tcp_pkt_in() local 446 if (skb_ensure_writable(skb, tcp_offset + sizeof(*th))) in app_tcp_pkt_in() 449 th = (struct tcphdr *)(skb_network_header(skb) + tcp_offset); in app_tcp_pkt_in()
|
/linux-6.6.21/drivers/net/ethernet/ibm/ehea/ |
D | ehea_qmr.h | 94 u8 tcp_offset; member
|
D | ehea_main.c | 1975 swqe->tcp_offset = swqe->ip_end + 1 + in xmit_common() 1983 swqe->tcp_offset = swqe->ip_end + 1 + in xmit_common()
|