Home
last modified time | relevance | path

Searched refs:thoff (Results 1 – 35 of 35) sorted by relevance

/linux-4.4.14/net/netfilter/
Dxt_l2tp.c82 static bool l2tp_udp_mt(const struct sk_buff *skb, struct xt_action_param *par, u16 thoff) in l2tp_udp_mt() argument
86 int offs = thoff + uhlen; in l2tp_udp_mt()
142 static bool l2tp_ip_mt(const struct sk_buff *skb, struct xt_action_param *par, u16 thoff) in l2tp_ip_mt() argument
150 lh = skb_header_pointer(skb, thoff, sizeof(lhbuf), &lhbuf); in l2tp_ip_mt()
158 lh = skb_header_pointer(skb, thoff + 8, sizeof(lhbuf), in l2tp_ip_mt()
181 return l2tp_udp_mt(skb, par, par->thoff); in l2tp_mt4()
183 return l2tp_ip_mt(skb, par, par->thoff); in l2tp_mt4()
192 unsigned int thoff = 0; in l2tp_mt6() local
196 ipproto = ipv6_find_hdr(skb, &thoff, -1, &fragoff, NULL); in l2tp_mt6()
203 return l2tp_udp_mt(skb, par, thoff); in l2tp_mt6()
[all …]
Dnf_tables_netdev.c24 u32 len, thoff; in nft_netdev_set_pktinfo_ipv4() local
38 thoff = iph->ihl * 4; in nft_netdev_set_pktinfo_ipv4()
41 else if (len < thoff) in nft_netdev_set_pktinfo_ipv4()
45 pkt->xt.thoff = thoff; in nft_netdev_set_pktinfo_ipv4()
56 unsigned int thoff = 0; in __nft_netdev_set_pktinfo_ipv6() local
73 protohdr = ipv6_find_hdr(pkt->skb, &thoff, -1, &frag_off, NULL); in __nft_netdev_set_pktinfo_ipv6()
78 pkt->xt.thoff = thoff; in __nft_netdev_set_pktinfo_ipv6()
Dxt_tcpmss.c39 th = skb_header_pointer(skb, par->thoff, sizeof(_tcph), &_tcph); in tcpmss_mt()
52 op = skb_header_pointer(skb, par->thoff + sizeof(*th), optlen, _opt); in tcpmss_mt()
Dxt_tcpudp.c88 th = skb_header_pointer(skb, par->thoff, sizeof(_tcph), &_tcph); in tcp_mt()
114 if (!tcp_find_option(tcpinfo->option, skb, par->thoff, in tcp_mt()
141 uh = skb_header_pointer(skb, par->thoff, sizeof(_udph), &_udph); in udp_mt()
Dxt_TPROXY.c413 tproxy_handle_time_wait6(struct sk_buff *skb, int tproto, int thoff, in tproxy_handle_time_wait6() argument
421 hp = skb_header_pointer(skb, thoff, sizeof(_hdr), &_hdr); in tproxy_handle_time_wait6()
456 int thoff = 0; in tproxy_tg6_v1() local
459 tproto = ipv6_find_hdr(skb, &thoff, -1, NULL, NULL); in tproxy_tg6_v1()
465 hp = skb_header_pointer(skb, thoff, sizeof(_hdr), &_hdr); in tproxy_tg6_v1()
486 sk = tproxy_handle_time_wait6(skb, tproto, thoff, par, sk); in tproxy_tg6_v1()
Dxt_dccp.c108 dh = skb_header_pointer(skb, par->thoff, sizeof(_dh), &_dh); in dccp_mt()
122 && DCCHECK(match_option(info->option, skb, par->thoff, dh, in dccp_mt()
Dxt_sctp.c129 sh = skb_header_pointer(skb, par->thoff, sizeof(_sh), &_sh); in sctp_mt()
143 && SCCHECK(match_packet(skb, par->thoff + sizeof(sctp_sctphdr_t), in sctp_mt()
Dxt_socket.c346 int thoff = 0, tproto; in xt_socket_lookup_slow_v6() local
348 tproto = ipv6_find_hdr(skb, &thoff, -1, NULL, NULL); in xt_socket_lookup_slow_v6()
357 hp = skb_header_pointer(skb, thoff, sizeof(_hdr), &_hdr); in xt_socket_lookup_slow_v6()
369 if (extract_icmp6_fields(skb, thoff, &tproto, &saddr, &daddr, in xt_socket_lookup_slow_v6()
Dxt_ipcomp.c52 chdr = skb_header_pointer(skb, par->thoff, sizeof(_comphdr), &_comphdr); in comp_mt()
Dxt_esp.c49 eh = skb_header_pointer(skb, par->thoff, sizeof(_esp), &_esp); in esp_mt()
Dxt_ecn.c39 th = skb_header_pointer(skb, par->thoff, sizeof(_tcph), &_tcph); in match_tcp()
Dxt_multiport.c84 pptr = skb_header_pointer(skb, par->thoff, sizeof(_ports), _ports); in multiport_mt()
Dnft_payload.c95 offset = pkt->xt.thoff; in nft_payload_eval()
Dnf_tables_core.c88 ptr = skb_network_header(skb) + pkt->xt.thoff; in nft_payload_fast_eval()
Dxt_hashlimit.c616 if (hashlimit_init_dst(hinfo, &dst, skb, par->thoff) < 0) in hashlimit_mt()
/linux-4.4.14/include/net/netfilter/
Dnf_tables_ipv6.h12 int protohdr, thoff = 0; in nft_set_pktinfo_ipv6() local
17 protohdr = ipv6_find_hdr(pkt->skb, &thoff, -1, &frag_off, NULL); in nft_set_pktinfo_ipv6()
23 pkt->xt.thoff = thoff; in nft_set_pktinfo_ipv6()
Dnf_tables_ipv4.h18 pkt->xt.thoff = ip_hdrlen(pkt->skb); in nft_set_pktinfo_ipv4()
Dnf_tables.h23 u8 thoff; member
/linux-4.4.14/net/ipv6/netfilter/
Dip6t_SYNPROXY.c282 if (nf_ip6_checksum(skb, par->hooknum, par->thoff, IPPROTO_TCP)) in synproxy_tg6()
285 th = skb_header_pointer(skb, par->thoff, sizeof(_th), &_th); in synproxy_tg6()
289 if (!synproxy_parse_options(skb, par->thoff, th, &opts)) in synproxy_tg6()
332 int thoff; in ipv6_synproxy_hook() local
346 thoff = ipv6_skip_exthdr(skb, sizeof(struct ipv6hdr), &nexthdr, in ipv6_synproxy_hook()
348 if (thoff < 0) in ipv6_synproxy_hook()
351 th = skb_header_pointer(skb, thoff, sizeof(_th), &_th); in ipv6_synproxy_hook()
378 if (!synproxy_parse_options(skb, thoff, th, &opts)) in ipv6_synproxy_hook()
402 if (!synproxy_parse_options(skb, thoff, th, &opts)) in ipv6_synproxy_hook()
426 synproxy_tstamp_adjust(skb, thoff, th, ct, ctinfo, synproxy); in ipv6_synproxy_hook()
Dnf_reject_ipv6.c216 int thoff; in reject6_csum_ok() local
227 thoff = ipv6_skip_exthdr(skb, ((u8 *)(ip6h + 1) - skb->data), &proto, &fo); in reject6_csum_ok()
229 if (thoff < 0 || thoff >= skb->len || (fo & htons(~0x7)) != 0) in reject6_csum_ok()
232 return nf_ip6_checksum(skb, hook, thoff, proto) == 0; in reject6_csum_ok()
Dip6t_mh.c45 mh = skb_header_pointer(skb, par->thoff, sizeof(_mh), &_mh); in mh_mt6()
Dip6_tables.c381 acpar.thoff = 0; in ip6t_do_table()
383 &acpar.thoff, &acpar.fragoff, &acpar.hotdrop)) { in ip6t_do_table()
1996 ic = skb_header_pointer(skb, par->thoff, sizeof(_icmph), &_icmph); in icmp6_match()
/linux-4.4.14/net/ipv4/netfilter/
Dipt_SYNPROXY.c269 if (nf_ip_checksum(skb, par->hooknum, par->thoff, IPPROTO_TCP)) in synproxy_tg4()
272 th = skb_header_pointer(skb, par->thoff, sizeof(_th), &_th); in synproxy_tg4()
276 if (!synproxy_parse_options(skb, par->thoff, th, &opts)) in synproxy_tg4()
317 unsigned int thoff; in ipv4_synproxy_hook() local
330 thoff = ip_hdrlen(skb); in ipv4_synproxy_hook()
331 th = skb_header_pointer(skb, thoff, sizeof(_th), &_th); in ipv4_synproxy_hook()
358 if (!synproxy_parse_options(skb, thoff, th, &opts)) in ipv4_synproxy_hook()
382 if (!synproxy_parse_options(skb, thoff, th, &opts)) in ipv4_synproxy_hook()
406 synproxy_tstamp_adjust(skb, thoff, th, ct, ctinfo, synproxy); in ipv4_synproxy_hook()
Dipt_ah.c43 ah = skb_header_pointer(skb, par->thoff, sizeof(_ahdr), &_ahdr); in ah_mt()
Dip_tables.c316 acpar.thoff = ip_hdrlen(skb); in ipt_do_table()
1996 ic = skb_header_pointer(skb, par->thoff, sizeof(_icmph), &_icmph); in icmp_match()
/linux-4.4.14/net/ipv6/
Dtcpv6_offload.c32 static int tcp6_gro_complete(struct sk_buff *skb, int thoff) in tcp6_gro_complete() argument
37 th->check = ~tcp_v6_check(skb->len - thoff, &iph->saddr, in tcp6_gro_complete()
/linux-4.4.14/net/bridge/netfilter/
Dnft_reject_bridge.c181 int thoff; in reject6_br_csum_ok() local
195 thoff = ipv6_skip_exthdr(skb, ((u8*)(ip6h+1) - skb->data), &proto, &fo); in reject6_br_csum_ok()
196 if (thoff < 0 || thoff >= skb->len || (fo & htons(~0x7)) != 0) in reject6_br_csum_ok()
199 return nf_ip6_checksum(skb, hook, thoff, proto) == 0; in reject6_br_csum_ok()
/linux-4.4.14/net/sched/
Dem_ipset.c67 acpar.thoff = ip_hdrlen(skb); in em_ipset_match()
74 acpar.thoff = sizeof(struct ipv6hdr); in em_ipset_match()
/linux-4.4.14/samples/bpf/
Dsockex2_kern.c24 __u16 thoff; member
181 flow->thoff = (__u16) nhoff; in flow_dissector()
/linux-4.4.14/net/core/
Dflow_dissector.c82 __be32 __skb_flow_get_ports(const struct sk_buff *skb, int thoff, u8 ip_proto, in __skb_flow_get_ports() argument
95 ports = __skb_header_pointer(skb, thoff + poff, in __skb_flow_get_ports()
342 key_control->thoff = (u16)(nhoff + FCOE_HEADER_LEN); in __skb_flow_dissect()
498 key_control->thoff = (u16)nhoff; in __skb_flow_dissect()
741 u32 poff = keys->control.thoff; in __skb_get_poff()
/linux-4.4.14/include/net/
Dflow_dissector.h13 u16 thoff; member
/linux-4.4.14/net/ipv4/
Dtcp_offload.c304 static int tcp4_gro_complete(struct sk_buff *skb, int thoff) in tcp4_gro_complete() argument
309 th->check = ~tcp_v4_check(skb->len - thoff, iph->saddr, in tcp4_gro_complete()
/linux-4.4.14/include/linux/netfilter/
Dx_tables.h40 unsigned int thoff; member
/linux-4.4.14/net/ethernet/
Deth.c136 return max_t(u32, keys.control.thoff, sizeof(*eth)); in eth_get_headlen()
/linux-4.4.14/include/linux/
Dskbuff.h988 __be32 __skb_flow_get_ports(const struct sk_buff *skb, int thoff, u8 ip_proto,
992 int thoff, u8 ip_proto) in skb_flow_get_ports() argument
994 return __skb_flow_get_ports(skb, thoff, ip_proto, NULL, 0); in skb_flow_get_ports()
2087 skb_set_transport_header(skb, keys.control.thoff); in skb_probe_transport_header()