Lines Matching refs:tcp_offset
94 static int tcp_offset = -1; variable
113 const int dport_off = tcp_offset + offsetof(struct tcphdr, dest); in setup_sock_filter()
321 fill_transportlayer(buf + tcp_offset, seq_offset, ack_offset, in create_packet()
351 tcph = (struct tcphdr *)(flag_buf + tcp_offset); in send_flags()
418 struct tcphdr *tcphdr = (struct tcphdr *)(buf + tcp_offset); in recompute_packet()
519 struct tcphdr *tcph = (struct tcphdr *)(buf + tcp_offset); in send_changed_checksum()
534 struct tcphdr *tcph = (struct tcphdr *)(buf + tcp_offset); in send_changed_seq()
603 struct ip_timestamp *ts = (struct ip_timestamp *)(optpkt + tcp_offset); in add_ipv4_ts_option()
615 memcpy(optpkt, buf, tcp_offset); in add_ipv4_ts_option()
616 memcpy(optpkt + tcp_offset + optlen, buf + tcp_offset, in add_ipv4_ts_option()
628 struct ipv6_opt_hdr *exthdr = (struct ipv6_opt_hdr *)(optpkt + tcp_offset); in add_ipv6_exthdr()
637 memcpy(optpkt, buf, tcp_offset); in add_ipv6_exthdr()
638 memcpy(optpkt + tcp_offset + MIN_EXTHDR_SIZE, buf + tcp_offset, in add_ipv6_exthdr()
800 fill_transportlayer(buf + tcp_offset, PAYLOAD_LEN, 0, PAYLOAD_LEN * 2, 0); in send_fragment4()
877 struct ip6_frag *frag = (void *)(extpkt + tcp_offset); in send_fragment6()
895 memcpy(extpkt, buf, tcp_offset); in send_fragment6()
896 memcpy(extpkt + tcp_offset + extlen, buf + tcp_offset, in send_fragment6()
960 tcph = (struct tcphdr *)(buffer + tcp_offset + ip_ext_len); in check_recv_pkts()
1345 tcp_offset = ETH_HLEN + sizeof(struct iphdr) * 2; in main()
1346 total_hdr_len = tcp_offset + sizeof(struct tcphdr); in main()
1348 tcp_offset = ETH_HLEN + sizeof(struct iphdr); in main()
1349 total_hdr_len = tcp_offset + sizeof(struct tcphdr); in main()
1351 tcp_offset = ETH_HLEN + sizeof(struct ipv6hdr); in main()