/linux-master/net/ethernet/ |
H A D | eth.c | 139 return max_t(u32, keys.control.thoff, sizeof(*eth));
|
/linux-master/net/netfilter/ |
H A D | nf_flow_table_ip.c | 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, argument 44 tcph = (void *)(skb_network_header(skb) + thoff); 48 static void nf_flow_nat_ip_udp(struct sk_buff *skb, unsigned int thoff, argument 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, enu 22 nf_flow_state_check(struct flow_offload *flow, int proto, struct sk_buff *skb, unsigned int thoff) argument 62 nf_flow_nat_ip_l4proto(struct sk_buff *skb, struct iphdr *iph, unsigned int thoff, __be32 addr, __be32 new_addr) argument 76 nf_flow_snat_ip(const struct flow_offload *flow, struct sk_buff *skb, struct iphdr *iph, unsigned int thoff, enum flow_offload_tuple_dir dir) argument 99 nf_flow_dnat_ip(const struct flow_offload *flow, struct sk_buff *skb, struct iphdr *iph, unsigned int thoff, enum flow_offload_tuple_dir dir) argument 122 nf_flow_nat_ip(const struct flow_offload *flow, struct sk_buff *skb, unsigned int thoff, enum flow_offload_tuple_dir dir, struct iphdr *iph) argument 136 ip_has_options(unsigned int thoff) argument 177 unsigned int thoff; local 370 unsigned int thoff, mtu; local 472 nf_flow_nat_ipv6_tcp(struct sk_buff *skb, unsigned int thoff, struct in6_addr *addr, struct in6_addr *new_addr, struct ipv6hdr *ip6h) argument 484 nf_flow_nat_ipv6_udp(struct sk_buff *skb, unsigned int thoff, struct in6_addr *addr, struct in6_addr *new_addr) argument 499 nf_flow_nat_ipv6_l4proto(struct sk_buff *skb, struct ipv6hdr *ip6h, unsigned int thoff, struct in6_addr *addr, struct in6_addr *new_addr) argument 513 nf_flow_snat_ipv6(const struct flow_offload *flow, struct sk_buff *skb, struct ipv6hdr *ip6h, unsigned int thoff, enum flow_offload_tuple_dir dir) argument 536 nf_flow_dnat_ipv6(const struct flow_offload *flow, struct sk_buff *skb, struct ipv6hdr *ip6h, unsigned int thoff, enum flow_offload_tuple_dir dir) argument 564 unsigned int thoff = sizeof(*ip6h); local 581 unsigned int thoff; local 649 unsigned int thoff, mtu; local [all...] |
H A D | nf_synproxy_core.c | 650 unsigned int thoff; local 664 thoff = ip_hdrlen(skb); 665 th = skb_header_pointer(skb, thoff, sizeof(_th), &_th); 691 if (!synproxy_parse_options(skb, thoff, th, &opts)) 720 if (!synproxy_parse_options(skb, thoff, th, &opts)) 747 synproxy_tstamp_adjust(skb, thoff, th, ct, ctinfo, synproxy); 1069 int thoff; local 1083 thoff = ipv6_skip_exthdr(skb, sizeof(struct ipv6hdr), &nexthdr, 1085 if (thoff < 0 || nexthdr != IPPROTO_TCP) 1088 th = skb_header_pointer(skb, thoff, sizeo [all...] |
H A D | nft_compat.c | 66 par->thoff = nft_thoff(pkt);
|
H A D | nf_flow_table_core.c | 457 static void nf_flow_nat_port_tcp(struct sk_buff *skb, unsigned int thoff, argument 462 tcph = (void *)(skb_network_header(skb) + thoff); 466 static void nf_flow_nat_port_udp(struct sk_buff *skb, unsigned int thoff, argument 471 udph = (void *)(skb_network_header(skb) + thoff); 480 static void nf_flow_nat_port(struct sk_buff *skb, unsigned int thoff, argument 485 nf_flow_nat_port_tcp(skb, thoff, port, new_port); 488 nf_flow_nat_port_udp(skb, thoff, port, new_port); 494 struct sk_buff *skb, unsigned int thoff, 500 hdr = (void *)(skb_network_header(skb) + thoff); 515 nf_flow_nat_port(skb, thoff, protoco 493 nf_flow_snat_port(const struct flow_offload *flow, struct sk_buff *skb, unsigned int thoff, u8 protocol, enum flow_offload_tuple_dir dir) argument 519 nf_flow_dnat_port(const struct flow_offload *flow, struct sk_buff *skb, unsigned int thoff, u8 protocol, enum flow_offload_tuple_dir dir) argument [all...] |
H A D | nft_tproxy.c | 91 int thoff = nft_thoff(pkt); local 107 hp = skb_header_pointer(skb, thoff, sizeof(_hdr), &_hdr); 117 sk = nf_tproxy_get_sock_v6(nft_net(pkt), skb, thoff, l4proto, 134 sk = nf_tproxy_handle_time_wait6(skb, l4proto, thoff, 143 sk = nf_tproxy_get_sock_v6(nft_net(pkt), skb, thoff,
|
H A D | nft_synproxy.c | 112 int thoff = nft_thoff(pkt); local 121 if (nf_ip_checksum(skb, nft_hook(pkt), thoff, IPPROTO_TCP)) { 126 tcp = skb_header_pointer(skb, thoff, 134 if (!synproxy_parse_options(skb, thoff, tcp, &opts)) {
|
H A D | nft_exthdr.c | 417 unsigned int thoff, dataoff, optoff, optlen, i; local 425 thoff = nft_thoff(pkt); 427 dh = skb_header_pointer(pkt->skb, thoff, sizeof(_dh), &_dh); 456 bufp = skb_header_pointer(pkt->skb, thoff + optoff + i, buflen,
|
/linux-master/include/net/netfilter/ |
H A D | nf_tables.h | 36 u16 thoff; member in struct:nft_pktinfo 47 return pkt->thoff; 87 pkt->thoff = 0;
|
H A D | nf_flow_table.h | 298 struct sk_buff *skb, unsigned int thoff, 301 struct sk_buff *skb, unsigned int thoff,
|
H A D | nf_tables_ipv4.h | 15 pkt->thoff = ip_hdrlen(pkt->skb); 22 u32 len, thoff; local 33 thoff = skb_network_offset(pkt->skb) + (iph->ihl * 4); 36 else if (len < thoff) 38 else if (thoff < sizeof(*iph)) 43 pkt->thoff = thoff; 58 u32 len, thoff; local 68 thoff = iph->ihl * 4; 72 } else if (len < thoff) { [all...] |
/linux-master/net/ipv6/netfilter/ |
H A D | ip6_tables.c | 305 acpar.thoff = 0; 307 &acpar.thoff, &acpar.fragoff, &acpar.hotdrop)) {
|
H A D | nf_reject_ipv6.c | 18 int thoff; local 30 thoff = ipv6_skip_exthdr(skb, ((u8*)(ip6h+1) - skb->data), &proto, &fo); 31 if (thoff < 0 || thoff >= skb->len || (fo & htons(~0x7)) != 0) 34 if (!nf_reject_verify_csum(skb, thoff, proto)) 37 return nf_ip6_checksum(skb, hook, thoff, proto) == 0; 384 int thoff; local 392 thoff = ipv6_skip_exthdr(skb, ((u8 *)(ip6h + 1) - skb->data), &proto, &fo); 394 if (thoff < 0 || thoff > [all...] |
/linux-master/net/ipv4/netfilter/ |
H A D | ip_tables.c | 253 acpar.thoff = ip_hdrlen(skb);
|
/linux-master/net/ipv6/ |
H A D | ip6_gre.c | 972 int thoff; local 975 thoff = skb_transport_offset(skb); 977 thoff = nhoff + sizeof(struct ipv6hdr); 978 if (ntohs(ipv6_hdr(skb)->payload_len) > skb->len - thoff)
|
H A D | tcpv6_offload.c | 30 INDIRECT_CALLABLE_SCOPE int tcp6_gro_complete(struct sk_buff *skb, int thoff) argument 35 th->check = ~tcp_v6_check(skb->len - thoff, &iph->saddr,
|
/linux-master/net/ipv4/ |
H A D | ip_gre.c | 567 int thoff; local 570 thoff = skb_transport_offset(skb); 572 thoff = nhoff + sizeof(struct ipv6hdr); 573 if (ntohs(ipv6_hdr(skb)->payload_len) > skb->len - thoff)
|
H A D | tcp_offload.c | 333 INDIRECT_CALLABLE_SCOPE int tcp4_gro_complete(struct sk_buff *skb, int thoff) argument 338 th->check = ~tcp_v4_check(skb->len - thoff, iph->saddr,
|
/linux-master/include/linux/ |
H A D | skbuff.h | 1505 __be32 __skb_flow_get_ports(const struct sk_buff *skb, int thoff, u8 ip_proto, 1509 int thoff, u8 ip_proto) 1511 return __skb_flow_get_ports(skb, thoff, ip_proto, NULL, 0); 3021 skb_set_transport_header(skb, keys.control.thoff); 1508 skb_flow_get_ports(const struct sk_buff *skb, int thoff, u8 ip_proto) argument
|
H A D | virtio_net.h | 141 p_off = keys.control.thoff + thlen; 146 skb_set_transport_header(skb, keys.control.thoff);
|
/linux-master/tools/include/uapi/linux/ |
H A D | bpf.h | 7240 __u16 thoff; member in struct:bpf_flow_keys
|
/linux-master/net/sched/ |
H A D | act_ct.c | 510 unsigned int thoff; local 519 thoff = iph->ihl * 4; 522 unlikely(thoff != sizeof(struct iphdr))) 545 if (!pskb_network_may_pull(skb, thoff + hdrsize)) 550 *tcph = (void *)(skb_network_header(skb) + thoff); 553 ports = (struct flow_ports *)(skb_network_header(skb) + thoff); 560 greh = (struct gre_base_hdr *)(skb_network_header(skb) + thoff); 584 unsigned int thoff; local 592 thoff = sizeof(*ip6h); 614 if (!pskb_network_may_pull(skb, thoff [all...] |
/linux-master/include/uapi/linux/ |
H A D | bpf.h | 7240 __u16 thoff; member in struct:bpf_flow_keys
|
/linux-master/include/net/ |
H A D | tcp.h | 2199 INDIRECT_CALLABLE_DECLARE(int tcp4_gro_complete(struct sk_buff *skb, int thoff)); 2201 INDIRECT_CALLABLE_DECLARE(int tcp6_gro_complete(struct sk_buff *skb, int thoff));
|
/linux-master/drivers/net/ethernet/mellanox/mlx5/core/ |
H A D | en_rx.c | 1226 int udp_off = rq->hw_gro_data->fk.control.thoff; 1245 int udp_off = rq->hw_gro_data->fk.control.thoff; 1270 last_tcp_hd = last_hd_addr + ETH_HLEN + rq->hw_gro_data->fk.control.thoff; 1277 int tcp_off = rq->hw_gro_data->fk.control.thoff; 1301 int tcp_off = rq->hw_gro_data->fk.control.thoff; 1328 int nhoff = rq->hw_gro_data->fk.control.thoff - sizeof(struct iphdr); 1340 int nhoff = rq->hw_gro_data->fk.control.thoff - sizeof(struct ipv6hdr); 2353 int nhoff = ETH_HLEN + rq->hw_gro_data->fk.control.thoff -
|