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))
104 const int dport_off = tcp_offset + offsetof(struct tcphdr, dest);
187 ph6.payload_len = htons(sizeof(struct tcphdr) + payload_len);
196 ph4.payload_len = htons(sizeof(struct tcphdr) + payload_len);
201 return checksum_fold(buf, sizeof(struct tcphdr) + payload_len, sum);
230 ip6h->payload_len = htons(sizeof(struct tcphdr) + payload_len);
244 iph->tot_len = htons(sizeof(struct tcphdr) +
258 struct tcphdr *tcph = buf;
303 struct tcphdr *tcph;
311 tcph = (struct tcphdr *)(flag_buf + tcp_offset);
378 struct tcphdr *tcphdr = (struct tcphdr *)(buf + tcp_offset);
386 tcphdr->doff = tcphdr->doff + (extlen / 4);
387 tcphdr->check = 0;
388 tcphdr->check = tcp_checksum(tcphdr, PAYLOAD_LEN + extlen);
472 struct tcphdr *tcph = (struct tcphdr *)(buf + tcp_offset);
487 struct tcphdr *tcph = (struct tcphdr *)(buf + tcp_offset);
570 sizeof(struct tcphdr) + PAYLOAD_LEN);
710 sizeof(struct tcphdr) + PAYLOAD_LEN);
748 struct tcphdr *tcph;
772 tcph = (struct tcphdr *)(buffer + tcp_offset + ip_ext_len);
785 - sizeof(struct tcphdr) - sizeof(struct iphdr);
1088 total_hdr_len = tcp_offset + sizeof(struct tcphdr);