Lines Matching defs:tcphdr
69 #define TOTAL_HDR_LEN (ETH_HLEN + sizeof(struct ipv6hdr) + sizeof(struct tcphdr))
70 #define MSS (4096 - sizeof(struct tcphdr) - sizeof(struct ipv6hdr))
71 #define MAX_PAYLOAD (IP_MAXPACKET - sizeof(struct tcphdr) - sizeof(struct ipv6hdr))
73 #define MAX_HDR_LEN (ETH_HLEN + sizeof(struct ipv6hdr) + sizeof(struct tcphdr))
110 const int dport_off = tcp_offset + offsetof(struct tcphdr, dest);
209 ph6.payload_len = htons(sizeof(struct tcphdr) + payload_len);
218 ph4.payload_len = htons(sizeof(struct tcphdr) + payload_len);
223 return checksum_fold(buf, sizeof(struct tcphdr) + payload_len, sum);
252 ip6h->payload_len = htons(sizeof(struct tcphdr) + payload_len);
266 iph->tot_len = htons(sizeof(struct tcphdr) +
280 struct tcphdr *tcph = buf;
325 struct tcphdr *tcph;
333 tcph = (struct tcphdr *)(flag_buf + tcp_offset);
400 struct tcphdr *tcphdr = (struct tcphdr *)(buf + tcp_offset);
408 tcphdr->doff = tcphdr->doff + (extlen / 4);
409 tcphdr->check = 0;
410 tcphdr->check = tcp_checksum(tcphdr, PAYLOAD_LEN + extlen);
494 struct tcphdr *tcph = (struct tcphdr *)(buf + tcp_offset);
509 struct tcphdr *tcph = (struct tcphdr *)(buf + tcp_offset);
592 sizeof(struct tcphdr) + PAYLOAD_LEN);
614 sizeof(struct tcphdr) + PAYLOAD_LEN);
765 sizeof(struct tcphdr) + PAYLOAD_LEN);
803 struct tcphdr *tcph;
828 tcph = (struct tcphdr *)(buffer + tcp_offset + ip_ext_len);
841 - sizeof(struct tcphdr) - sizeof(struct iphdr);
1169 total_hdr_len = tcp_offset + sizeof(struct tcphdr);