Lines Matching defs:thoff

23 			       struct sk_buff *skb, unsigned int thoff)
30 tcph = (void *)(skb_network_header(skb) + thoff);
39 static void nf_flow_nat_ip_tcp(struct sk_buff *skb, unsigned int thoff,
44 tcph = (void *)(skb_network_header(skb) + thoff);
48 static void nf_flow_nat_ip_udp(struct sk_buff *skb, unsigned int thoff,
53 udph = (void *)(skb_network_header(skb) + thoff);
63 unsigned int thoff, __be32 addr,
68 nf_flow_nat_ip_tcp(skb, thoff, addr, new_addr);
71 nf_flow_nat_ip_udp(skb, thoff, addr, new_addr);
78 unsigned int thoff, enum flow_offload_tuple_dir dir)
96 nf_flow_nat_ip_l4proto(skb, iph, thoff, addr, new_addr);
101 unsigned int thoff, enum flow_offload_tuple_dir dir)
119 nf_flow_nat_ip_l4proto(skb, iph, thoff, addr, new_addr);
123 unsigned int thoff, enum flow_offload_tuple_dir dir,
127 nf_flow_snat_port(flow, skb, thoff, iph->protocol, dir);
128 nf_flow_snat_ip(flow, skb, iph, thoff, dir);
131 nf_flow_dnat_port(flow, skb, thoff, iph->protocol, dir);
132 nf_flow_dnat_ip(flow, skb, iph, thoff, dir);
136 static bool ip_has_options(unsigned int thoff)
138 return thoff != sizeof(struct iphdr);
177 unsigned int thoff;
185 thoff = (iph->ihl * 4);
188 unlikely(ip_has_options(thoff)))
191 thoff += ctx->offset;
213 if (!pskb_may_pull(skb, thoff + ctx->hdrsize))
219 ports = (struct flow_ports *)(skb_network_header(skb) + thoff);
226 greh = (struct gre_base_hdr *)(skb_network_header(skb) + thoff);
370 unsigned int thoff, mtu;
381 thoff = (iph->ihl * 4) + ctx->offset;
382 if (nf_flow_state_check(flow, iph->protocol, skb, thoff))
390 if (skb_try_make_writable(skb, thoff + ctx->hdrsize))
396 thoff -= ctx->offset;
399 nf_flow_nat_ip(flow, skb, thoff, dir, iph);
472 static void nf_flow_nat_ipv6_tcp(struct sk_buff *skb, unsigned int thoff,
479 tcph = (void *)(skb_network_header(skb) + thoff);
484 static void nf_flow_nat_ipv6_udp(struct sk_buff *skb, unsigned int thoff,
490 udph = (void *)(skb_network_header(skb) + thoff);
500 unsigned int thoff, struct in6_addr *addr,
505 nf_flow_nat_ipv6_tcp(skb, thoff, addr, new_addr, ip6h);
508 nf_flow_nat_ipv6_udp(skb, thoff, addr, new_addr);
515 unsigned int thoff,
533 nf_flow_nat_ipv6_l4proto(skb, ip6h, thoff, &addr, &new_addr);
538 unsigned int thoff,
556 nf_flow_nat_ipv6_l4proto(skb, ip6h, thoff, &addr, &new_addr);
564 unsigned int thoff = sizeof(*ip6h);
567 nf_flow_snat_port(flow, skb, thoff, ip6h->nexthdr, dir);
568 nf_flow_snat_ipv6(flow, skb, ip6h, thoff, dir);
571 nf_flow_dnat_port(flow, skb, thoff, ip6h->nexthdr, dir);
572 nf_flow_dnat_ipv6(flow, skb, ip6h, thoff, dir);
581 unsigned int thoff;
584 thoff = sizeof(*ip6h) + ctx->offset;
585 if (!pskb_may_pull(skb, thoff))
610 if (!pskb_may_pull(skb, thoff + ctx->hdrsize))
616 ports = (struct flow_ports *)(skb_network_header(skb) + thoff);
623 greh = (struct gre_base_hdr *)(skb_network_header(skb) + thoff);
649 unsigned int thoff, mtu;
660 thoff = sizeof(*ip6h) + ctx->offset;
661 if (nf_flow_state_check(flow, ip6h->nexthdr, skb, thoff))
669 if (skb_try_make_writable(skb, thoff + ctx->hdrsize))