Home
last modified time | relevance | path

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

/linux/tools/testing/selftests/bpf/progs/
H A Dtest_parse_tcp_hdr_opt.c89 __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/tools/testing/selftests/drivers/net/
H A Dgro.c122 static int tcp_offset = -1; in setup_sock_filter()
140 const int dport_off = tcp_offset + offsetof(struct tcphdr, dest); in setup_sock_filter()
348 fill_transportlayer(buf + tcp_offset, seq_offset, ack_offset, in send_flags()
404 tcph = (struct tcphdr *)(flag_buf[i] + tcp_offset);
471 struct tcphdr *tcphdr = (struct tcphdr *)(buf + tcp_offset); in tcp_write_options()
572 struct tcphdr *tcph = (struct tcphdr *)(buf + tcp_offset); in send_changed_ts()
587 struct tcphdr *tcph = (struct tcphdr *)(buf + tcp_offset); in send_diff_opt()
656 struct ip_timestamp *ts = (struct ip_timestamp *)(optpkt + tcp_offset); in send_flush_id_case()
668 memcpy(optpkt, buf, tcp_offset); in send_flush_id_case()
669 memcpy(optpkt + tcp_offset in send_flush_id_case()
94 static int tcp_offset = -1; global() variable
[all...]
/linux/net/netfilter/ipvs/
H A Dip_vs_app.c364 const unsigned int tcp_offset = ip_hdrlen(skb); in app_tcp_pkt_out()
368 if (skb_ensure_writable(skb, tcp_offset + sizeof(*th))) in app_tcp_pkt_out()
371 th = (struct tcphdr *)(skb_network_header(skb) + tcp_offset); in app_tcp_pkt_out()
441 const unsigned int tcp_offset = ip_hdrlen(skb); in app_tcp_pkt_in()
445 if (skb_ensure_writable(skb, tcp_offset + sizeof(*th))) in app_tcp_pkt_in()
448 th = (struct tcphdr *)(skb_network_header(skb) + tcp_offset); in app_tcp_pkt_in()
365 const unsigned int tcp_offset = ip_hdrlen(skb); app_tcp_pkt_out() local
442 const unsigned int tcp_offset = ip_hdrlen(skb); app_tcp_pkt_in() local
/linux/drivers/net/ethernet/ibm/ehea/
H A Dehea_qmr.h94 u8 tcp_offset; member
H A Dehea_main.c1975 swqe->tcp_offset = swqe->ip_end + 1 + in xmit_common()
1983 swqe->tcp_offset = swqe->ip_end + 1 + in xmit_common()