Lines Matching refs:tcph
87 struct tcphdr *tcph = (struct tcphdr *)((u_int32_t *)iph
90 tcph->check = cheat_check(~redir->core.orig_dstip,
94 tcph->check));
97 tcph->dest = redir->core.new_dport;
127 struct tcphdr *tcph = (struct tcphdr *)((u_int32_t *)iph
130 tcph->check = cheat_check(~redir->core.new_dstip,
134 tcph->check));
138 tcph->source = redir->core.orig_dport;
192 struct tcphdr *tcph = (struct tcphdr *)((u_int32_t *)iph
198 if (skb->len < iph->ihl*4 + sizeof(*tcph))
202 iph->saddr, tcph->source, iph->daddr, tcph->dest,
206 tcph->source, tcph->dest);
224 tcph->source, tcph->dest,
245 struct tcphdr *tcph = (struct tcphdr *)((u_int32_t *)iph
253 if (skb->len < iph->ihl*4 + sizeof(*tcph))
257 redir = find_redir(iph->saddr, iph->daddr, tcph->source, tcph->dest);
273 struct tcphdr *tcph = (struct tcphdr *)((u_int32_t *)iph
281 if (skb->len < iph->ihl*4 + sizeof(*tcph))
285 redir = find_unredir(iph->saddr, iph->daddr, tcph->source, tcph->dest);