Home
last modified time | relevance | path

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

/linux-4.1.27/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 …]
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.c414 tproxy_handle_time_wait6(struct sk_buff *skb, int tproto, int thoff, in tproxy_handle_time_wait6() argument
422 hp = skb_header_pointer(skb, thoff, sizeof(_hdr), &_hdr); in tproxy_handle_time_wait6()
458 int thoff = 0; in tproxy_tg6_v1() local
461 tproto = ipv6_find_hdr(skb, &thoff, -1, NULL, NULL); in tproxy_tg6_v1()
467 hp = skb_header_pointer(skb, thoff, sizeof(_hdr), &_hdr); in tproxy_tg6_v1()
488 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_socket.c339 int thoff = 0, tproto; in xt_socket_lookup_slow_v6() local
341 tproto = ipv6_find_hdr(skb, &thoff, -1, NULL, NULL); in xt_socket_lookup_slow_v6()
350 hp = skb_header_pointer(skb, thoff, sizeof(_hdr), &_hdr); in xt_socket_lookup_slow_v6()
362 if (extract_icmp6_fields(skb, thoff, &tproto, &saddr, &daddr, in xt_socket_lookup_slow_v6()
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_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.c39 offset = pkt->xt.thoff; in nft_payload_eval()
Dnf_tables_core.c90 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.1.27/include/net/netfilter/
Dnf_tables_ipv6.h13 int protohdr, thoff = 0; in nft_set_pktinfo_ipv6() local
18 protohdr = ipv6_find_hdr(pkt->skb, &thoff, -1, &frag_off, NULL); in nft_set_pktinfo_ipv6()
24 pkt->xt.thoff = thoff; in nft_set_pktinfo_ipv6()
Dnf_tables_ipv4.h19 pkt->xt.thoff = ip_hdrlen(pkt->skb); in nft_set_pktinfo_ipv4()
Dnf_tables.h21 u8 thoff; member
/linux-4.1.27/include/net/
Dflow_keys.h25 u16 thoff; member
36 __be32 __skb_flow_get_ports(const struct sk_buff *skb, int thoff, u8 ip_proto,
38 static inline __be32 skb_flow_get_ports(const struct sk_buff *skb, int thoff, u8 ip_proto) in skb_flow_get_ports() argument
40 return __skb_flow_get_ports(skb, thoff, ip_proto, NULL, 0); in skb_flow_get_ports()
/linux-4.1.27/net/ipv6/netfilter/
Dip6t_SYNPROXY.c279 if (nf_ip6_checksum(skb, par->hooknum, par->thoff, IPPROTO_TCP)) in synproxy_tg6()
282 th = skb_header_pointer(skb, par->thoff, sizeof(_th), &_th); in synproxy_tg6()
286 if (!synproxy_parse_options(skb, par->thoff, th, &opts)) in synproxy_tg6()
329 int thoff; in ipv6_synproxy_hook() local
343 thoff = ipv6_skip_exthdr(skb, sizeof(struct ipv6hdr), &nexthdr, in ipv6_synproxy_hook()
345 if (thoff < 0) in ipv6_synproxy_hook()
348 th = skb_header_pointer(skb, thoff, sizeof(_th), &_th); in ipv6_synproxy_hook()
375 if (!synproxy_parse_options(skb, thoff, th, &opts)) in ipv6_synproxy_hook()
399 if (!synproxy_parse_options(skb, thoff, th, &opts)) in ipv6_synproxy_hook()
423 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.c372 acpar.thoff = 0; in ip6t_do_table()
374 &acpar.thoff, &acpar.fragoff, &acpar.hotdrop)) { in ip6t_do_table()
2159 ic = skb_header_pointer(skb, par->thoff, sizeof(_icmph), &_icmph); in icmp6_match()
/linux-4.1.27/net/core/
Dflow_dissector.c40 __be32 __skb_flow_get_ports(const struct sk_buff *skb, int thoff, u8 ip_proto, in __skb_flow_get_ports() argument
53 ports = __skb_header_pointer(skb, thoff + poff, in __skb_flow_get_ports()
142 flow->thoff = (u16)nhoff; in __skb_flow_dissect()
192 flow->thoff = (u16)nhoff; in __skb_flow_dissect()
196 flow->thoff = (u16)(nhoff + FCOE_HEADER_LEN); in __skb_flow_dissect()
260 flow->thoff = (u16) nhoff; in __skb_flow_dissect()
363 u32 poff = keys->thoff; in __skb_get_poff()
/linux-4.1.27/net/ipv4/netfilter/
Dipt_SYNPROXY.c264 if (nf_ip_checksum(skb, par->hooknum, par->thoff, IPPROTO_TCP)) in synproxy_tg4()
267 th = skb_header_pointer(skb, par->thoff, sizeof(_th), &_th); in synproxy_tg4()
271 if (!synproxy_parse_options(skb, par->thoff, th, &opts)) in synproxy_tg4()
312 unsigned int thoff; in ipv4_synproxy_hook() local
325 thoff = ip_hdrlen(skb); in ipv4_synproxy_hook()
326 th = skb_header_pointer(skb, thoff, sizeof(_th), &_th); in ipv4_synproxy_hook()
353 if (!synproxy_parse_options(skb, thoff, th, &opts)) in ipv4_synproxy_hook()
377 if (!synproxy_parse_options(skb, thoff, th, &opts)) in ipv4_synproxy_hook()
401 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.c317 acpar.thoff = ip_hdrlen(skb); in ipt_do_table()
2148 ic = skb_header_pointer(skb, par->thoff, sizeof(_icmph), &_icmph); in icmp_match()
/linux-4.1.27/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.1.27/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.1.27/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.1.27/samples/bpf/
Dsockex2_kern.c24 __u16 thoff; member
181 flow->thoff = (__u16) nhoff; in flow_dissector()
/linux-4.1.27/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.1.27/include/linux/netfilter/
Dx_tables.h38 unsigned int thoff; member
/linux-4.1.27/net/ethernet/
Deth.c135 return max_t(u32, keys.thoff, sizeof(*eth)); in eth_get_headlen()
/linux-4.1.27/include/linux/
Dskbuff.h1936 skb_set_transport_header(skb, keys.thoff); in skb_probe_transport_header()