/linux-4.1.27/net/netfilter/ |
D | xt_l2tp.c | 82 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 …]
|
D | xt_tcpmss.c | 39 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()
|
D | xt_tcpudp.c | 88 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()
|
D | xt_TPROXY.c | 414 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()
|
D | xt_dccp.c | 108 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()
|
D | xt_socket.c | 339 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()
|
D | xt_sctp.c | 129 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()
|
D | xt_ipcomp.c | 52 chdr = skb_header_pointer(skb, par->thoff, sizeof(_comphdr), &_comphdr); in comp_mt()
|
D | xt_esp.c | 49 eh = skb_header_pointer(skb, par->thoff, sizeof(_esp), &_esp); in esp_mt()
|
D | xt_ecn.c | 39 th = skb_header_pointer(skb, par->thoff, sizeof(_tcph), &_tcph); in match_tcp()
|
D | xt_multiport.c | 84 pptr = skb_header_pointer(skb, par->thoff, sizeof(_ports), _ports); in multiport_mt()
|
D | nft_payload.c | 39 offset = pkt->xt.thoff; in nft_payload_eval()
|
D | nf_tables_core.c | 90 ptr = skb_network_header(skb) + pkt->xt.thoff; in nft_payload_fast_eval()
|
D | xt_hashlimit.c | 616 if (hashlimit_init_dst(hinfo, &dst, skb, par->thoff) < 0) in hashlimit_mt()
|
/linux-4.1.27/include/net/netfilter/ |
D | nf_tables_ipv6.h | 13 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()
|
D | nf_tables_ipv4.h | 19 pkt->xt.thoff = ip_hdrlen(pkt->skb); in nft_set_pktinfo_ipv4()
|
D | nf_tables.h | 21 u8 thoff; member
|
/linux-4.1.27/include/net/ |
D | flow_keys.h | 25 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/ |
D | ip6t_SYNPROXY.c | 279 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()
|
D | nf_reject_ipv6.c | 216 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()
|
D | ip6t_mh.c | 45 mh = skb_header_pointer(skb, par->thoff, sizeof(_mh), &_mh); in mh_mt6()
|
D | ip6_tables.c | 372 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/ |
D | flow_dissector.c | 40 __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/ |
D | ipt_SYNPROXY.c | 264 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()
|
D | ipt_ah.c | 43 ah = skb_header_pointer(skb, par->thoff, sizeof(_ahdr), &_ahdr); in ah_mt()
|
D | ip_tables.c | 317 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/ |
D | tcpv6_offload.c | 32 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/ |
D | nft_reject_bridge.c | 181 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/ |
D | em_ipset.c | 67 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/ |
D | sockex2_kern.c | 24 __u16 thoff; member 181 flow->thoff = (__u16) nhoff; in flow_dissector()
|
/linux-4.1.27/net/ipv4/ |
D | tcp_offload.c | 304 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/ |
D | x_tables.h | 38 unsigned int thoff; member
|
/linux-4.1.27/net/ethernet/ |
D | eth.c | 135 return max_t(u32, keys.thoff, sizeof(*eth)); in eth_get_headlen()
|
/linux-4.1.27/include/linux/ |
D | skbuff.h | 1936 skb_set_transport_header(skb, keys.thoff); in skb_probe_transport_header()
|