Lines Matching refs:thoff

24 			       struct sk_buff *skb, unsigned int thoff)  in nf_flow_state_check()  argument
31 tcph = (void *)(skb_network_header(skb) + thoff); in nf_flow_state_check()
40 static void nf_flow_nat_ip_tcp(struct sk_buff *skb, unsigned int thoff, in nf_flow_nat_ip_tcp() argument
45 tcph = (void *)(skb_network_header(skb) + thoff); in nf_flow_nat_ip_tcp()
49 static void nf_flow_nat_ip_udp(struct sk_buff *skb, unsigned int thoff, in nf_flow_nat_ip_udp() argument
54 udph = (void *)(skb_network_header(skb) + thoff); in nf_flow_nat_ip_udp()
64 unsigned int thoff, __be32 addr, in nf_flow_nat_ip_l4proto() argument
69 nf_flow_nat_ip_tcp(skb, thoff, addr, new_addr); in nf_flow_nat_ip_l4proto()
72 nf_flow_nat_ip_udp(skb, thoff, addr, new_addr); in nf_flow_nat_ip_l4proto()
79 unsigned int thoff, enum flow_offload_tuple_dir dir) in nf_flow_snat_ip() argument
97 nf_flow_nat_ip_l4proto(skb, iph, thoff, addr, new_addr); in nf_flow_snat_ip()
102 unsigned int thoff, enum flow_offload_tuple_dir dir) in nf_flow_dnat_ip() argument
120 nf_flow_nat_ip_l4proto(skb, iph, thoff, addr, new_addr); in nf_flow_dnat_ip()
124 unsigned int thoff, enum flow_offload_tuple_dir dir, in nf_flow_nat_ip() argument
128 nf_flow_snat_port(flow, skb, thoff, iph->protocol, dir); in nf_flow_nat_ip()
129 nf_flow_snat_ip(flow, skb, iph, thoff, dir); in nf_flow_nat_ip()
132 nf_flow_dnat_port(flow, skb, thoff, iph->protocol, dir); in nf_flow_nat_ip()
133 nf_flow_dnat_ip(flow, skb, iph, thoff, dir); in nf_flow_nat_ip()
137 static bool ip_has_options(unsigned int thoff) in ip_has_options() argument
139 return thoff != sizeof(struct iphdr); in ip_has_options()
173 unsigned int thoff; in nf_flow_tuple_ip() local
180 thoff = (iph->ihl * 4); in nf_flow_tuple_ip()
183 unlikely(ip_has_options(thoff))) in nf_flow_tuple_ip()
186 thoff += offset; in nf_flow_tuple_ip()
202 if (!pskb_may_pull(skb, thoff + *hdrsize)) in nf_flow_tuple_ip()
206 ports = (struct flow_ports *)(skb_network_header(skb) + thoff); in nf_flow_tuple_ip()
338 unsigned int thoff, mtu; in nf_flow_offload_ip_hook() local
363 thoff = (iph->ihl * 4) + offset; in nf_flow_offload_ip_hook()
364 if (nf_flow_state_check(flow, iph->protocol, skb, thoff)) in nf_flow_offload_ip_hook()
367 if (skb_try_make_writable(skb, thoff + hdrsize)) in nf_flow_offload_ip_hook()
373 thoff -= offset; in nf_flow_offload_ip_hook()
376 nf_flow_nat_ip(flow, skb, thoff, dir, iph); in nf_flow_offload_ip_hook()
413 static void nf_flow_nat_ipv6_tcp(struct sk_buff *skb, unsigned int thoff, in nf_flow_nat_ipv6_tcp() argument
420 tcph = (void *)(skb_network_header(skb) + thoff); in nf_flow_nat_ipv6_tcp()
425 static void nf_flow_nat_ipv6_udp(struct sk_buff *skb, unsigned int thoff, in nf_flow_nat_ipv6_udp() argument
431 udph = (void *)(skb_network_header(skb) + thoff); in nf_flow_nat_ipv6_udp()
441 unsigned int thoff, struct in6_addr *addr, in nf_flow_nat_ipv6_l4proto() argument
446 nf_flow_nat_ipv6_tcp(skb, thoff, addr, new_addr, ip6h); in nf_flow_nat_ipv6_l4proto()
449 nf_flow_nat_ipv6_udp(skb, thoff, addr, new_addr); in nf_flow_nat_ipv6_l4proto()
456 unsigned int thoff, in nf_flow_snat_ipv6() argument
474 nf_flow_nat_ipv6_l4proto(skb, ip6h, thoff, &addr, &new_addr); in nf_flow_snat_ipv6()
479 unsigned int thoff, in nf_flow_dnat_ipv6() argument
497 nf_flow_nat_ipv6_l4proto(skb, ip6h, thoff, &addr, &new_addr); in nf_flow_dnat_ipv6()
505 unsigned int thoff = sizeof(*ip6h); in nf_flow_nat_ipv6() local
508 nf_flow_snat_port(flow, skb, thoff, ip6h->nexthdr, dir); in nf_flow_nat_ipv6()
509 nf_flow_snat_ipv6(flow, skb, ip6h, thoff, dir); in nf_flow_nat_ipv6()
512 nf_flow_dnat_port(flow, skb, thoff, ip6h->nexthdr, dir); in nf_flow_nat_ipv6()
513 nf_flow_dnat_ipv6(flow, skb, ip6h, thoff, dir); in nf_flow_nat_ipv6()
523 unsigned int thoff; in nf_flow_tuple_ipv6() local
525 thoff = sizeof(*ip6h) + offset; in nf_flow_tuple_ipv6()
526 if (!pskb_may_pull(skb, thoff)) in nf_flow_tuple_ipv6()
545 if (!pskb_may_pull(skb, thoff + *hdrsize)) in nf_flow_tuple_ipv6()
549 ports = (struct flow_ports *)(skb_network_header(skb) + thoff); in nf_flow_tuple_ipv6()
574 unsigned int thoff, mtu; in nf_flow_offload_ipv6_hook() local
599 thoff = sizeof(*ip6h) + offset; in nf_flow_offload_ipv6_hook()
600 if (nf_flow_state_check(flow, ip6h->nexthdr, skb, thoff)) in nf_flow_offload_ipv6_hook()
603 if (skb_try_make_writable(skb, thoff + hdrsize)) in nf_flow_offload_ipv6_hook()