Home
last modified time | relevance | path

Searched refs:tcphoff (Results 1 – 4 of 4) sorted by relevance

/linux-4.1.27/net/netfilter/ipvs/
Dip_vs_proto_tcp.c135 unsigned int tcphoff = iph->len; in tcp_snat_handler() local
143 oldlen = skb->len - tcphoff; in tcp_snat_handler()
146 if (!skb_make_writable(skb, tcphoff+sizeof(*tcph))) in tcp_snat_handler()
161 oldlen = skb->len - tcphoff; in tcp_snat_handler()
166 tcph = (void *)skb_network_header(skb) + tcphoff; in tcp_snat_handler()
173 htons(skb->len - tcphoff)); in tcp_snat_handler()
184 skb->csum = skb_checksum(skb, tcphoff, skb->len - tcphoff, 0); in tcp_snat_handler()
189 skb->len - tcphoff, in tcp_snat_handler()
195 skb->len - tcphoff, in tcp_snat_handler()
213 unsigned int tcphoff = iph->len; in tcp_dnat_handler() local
[all …]
/linux-4.1.27/net/netfilter/
Dxt_TCPOPTSTRIP.c34 unsigned int tcphoff, unsigned int minlen) in tcpoptstrip_mangle_packet() argument
50 len = skb->len - tcphoff; in tcpoptstrip_mangle_packet()
54 tcph = (struct tcphdr *)(skb_network_header(skb) + tcphoff); in tcpoptstrip_mangle_packet()
103 int tcphoff; in tcpoptstrip_tg6() local
108 tcphoff = ipv6_skip_exthdr(skb, sizeof(*ipv6h), &nexthdr, &frag_off); in tcpoptstrip_tg6()
109 if (tcphoff < 0) in tcpoptstrip_tg6()
112 return tcpoptstrip_mangle_packet(skb, par, tcphoff, in tcpoptstrip_tg6()
Dxt_TCPMSS.c82 unsigned int tcphoff, in tcpmss_mangle_packet() argument
100 len = skb->len - tcphoff; in tcpmss_mangle_packet()
104 tcph = (struct tcphdr *)(skb_network_header(skb) + tcphoff); in tcpmss_mangle_packet()
167 tcph = (struct tcphdr *)(skb_network_header(skb) + tcphoff); in tcpmss_mangle_packet()
232 int tcphoff; in tcpmss_tg6() local
236 tcphoff = ipv6_skip_exthdr(skb, sizeof(*ipv6h), &nexthdr, &frag_off); in tcpmss_tg6()
237 if (tcphoff < 0) in tcpmss_tg6()
241 tcphoff, in tcpmss_tg6()
/linux-4.1.27/net/ipv6/netfilter/
Dnf_reject_ipv6.c26 int tcphoff; in nf_reject_ip6_tcphdr_get() local
29 tcphoff = ipv6_skip_exthdr(oldskb, ((u8*)(oip6h+1) - oldskb->data), in nf_reject_ip6_tcphdr_get()
32 if ((tcphoff < 0) || (tcphoff > oldskb->len)) { in nf_reject_ip6_tcphdr_get()
37 *otcplen = oldskb->len - tcphoff; in nf_reject_ip6_tcphdr_get()
46 otcph = skb_header_pointer(oldskb, tcphoff, sizeof(struct tcphdr), in nf_reject_ip6_tcphdr_get()
58 if (nf_ip6_checksum(oldskb, hook, tcphoff, IPPROTO_TCP)) { in nf_reject_ip6_tcphdr_get()