Lines Matching defs:tcp_offset
87 static int tcp_offset = -1;
104 const int dport_off = tcp_offset + offsetof(struct tcphdr, dest);
290 fill_transportlayer(buf + tcp_offset, seq_offset, ack_offset,
311 tcph = (struct tcphdr *)(flag_buf + tcp_offset);
378 struct tcphdr *tcphdr = (struct tcphdr *)(buf + tcp_offset);
472 struct tcphdr *tcph = (struct tcphdr *)(buf + tcp_offset);
487 struct tcphdr *tcph = (struct tcphdr *)(buf + tcp_offset);
556 struct ip_timestamp *ts = (struct ip_timestamp *)(optpkt + tcp_offset);
568 memcpy(optpkt, buf, tcp_offset);
569 memcpy(optpkt + tcp_offset + optlen, buf + tcp_offset,
613 fill_transportlayer(buf + tcp_offset, PAYLOAD_LEN, 0, PAYLOAD_LEN * 2, 0);
690 struct ip6_frag *frag = (void *)(extpkt + tcp_offset);
708 memcpy(extpkt, buf, tcp_offset);
709 memcpy(extpkt + tcp_offset + extlen, buf + tcp_offset,
772 tcph = (struct tcphdr *)(buffer + tcp_offset + ip_ext_len);
1087 tcp_offset = ETH_HLEN + sizeof(struct iphdr);
1088 total_hdr_len = tcp_offset + sizeof(struct tcphdr);
1090 tcp_offset = ETH_HLEN + sizeof(struct ipv6hdr);