Home
last modified time | relevance | path

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

/openbmc/linux/net/netfilter/
H A Dxt_TCPOPTSTRIP.c31 unsigned int tcphoff) in tcpoptstrip_mangle_packet() argument
44 tcph = skb_header_pointer(skb, tcphoff, sizeof(_th), &_th); in tcpoptstrip_mangle_packet()
52 if (skb_ensure_writable(skb, tcphoff + tcp_hdrlen)) in tcpoptstrip_mangle_packet()
56 tcph = (struct tcphdr *)(skb_network_header(skb) + tcphoff); in tcpoptstrip_mangle_packet()
99 int tcphoff; in tcpoptstrip_tg6() local
104 tcphoff = ipv6_skip_exthdr(skb, sizeof(*ipv6h), &nexthdr, &frag_off); in tcpoptstrip_tg6()
105 if (tcphoff < 0) in tcpoptstrip_tg6()
108 return tcpoptstrip_mangle_packet(skb, par, tcphoff); in tcpoptstrip_tg6()
H A Dxt_TCPMSS.c74 unsigned int tcphoff, in tcpmss_mangle_packet() argument
92 len = skb->len - tcphoff; in tcpmss_mangle_packet()
96 tcph = (struct tcphdr *)(skb_network_header(skb) + tcphoff); in tcpmss_mangle_packet()
159 tcph = (struct tcphdr *)(skb_network_header(skb) + tcphoff); in tcpmss_mangle_packet()
224 int tcphoff; in tcpmss_tg6() local
228 tcphoff = ipv6_skip_exthdr(skb, sizeof(*ipv6h), &nexthdr, &frag_off); in tcpmss_tg6()
229 if (tcphoff < 0) in tcpmss_tg6()
233 tcphoff, in tcpmss_tg6()
/openbmc/linux/net/netfilter/ipvs/
H A Dip_vs_proto_tcp.c159 oldlen = skb->len - tcphoff; in tcp_snat_handler()
177 oldlen = skb->len - tcphoff; in tcp_snat_handler()
200 skb->csum = skb_checksum(skb, tcphoff, skb->len - tcphoff, 0); in tcp_snat_handler()
211 skb->len - tcphoff, in tcp_snat_handler()
237 oldlen = skb->len - tcphoff; in tcp_dnat_handler()
283 skb->csum = skb_checksum(skb, tcphoff, skb->len - tcphoff, 0); in tcp_dnat_handler()
294 skb->len - tcphoff, in tcp_dnat_handler()
306 unsigned int tcphoff; in tcp_csum_check() local
313 tcphoff = ip_hdrlen(skb); in tcp_csum_check()
317 skb->csum = skb_checksum(skb, tcphoff, skb->len - tcphoff, 0); in tcp_csum_check()
[all …]
/openbmc/linux/net/ipv6/netfilter/
H A Dnf_reject_ipv6.c156 int tcphoff; in nf_reject_ip6_tcphdr_get() local
159 tcphoff = ipv6_skip_exthdr(oldskb, ((u8 *)(oip6h + 1) - oldskb->data), in nf_reject_ip6_tcphdr_get()
162 if ((tcphoff < 0) || (tcphoff > oldskb->len)) { in nf_reject_ip6_tcphdr_get()
167 *otcplen = oldskb->len - tcphoff; in nf_reject_ip6_tcphdr_get()
176 otcph = skb_header_pointer(oldskb, tcphoff, sizeof(struct tcphdr), in nf_reject_ip6_tcphdr_get()
188 if (nf_ip6_checksum(oldskb, hook, tcphoff, IPPROTO_TCP)) { in nf_reject_ip6_tcphdr_get()