Searched refs:thoff (Results 26 - 50 of 54) sorted by last modified time

123

/linux-master/drivers/net/ethernet/mellanox/mlx5/core/
H A Den_rx.c1226 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 -
/linux-master/include/net/netfilter/
H A Dnf_tables_ipv4.h15 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...]
H A Dnf_tproxy.h97 * @thoff: Transport protocol header offset.
114 nf_tproxy_handle_time_wait6(struct sk_buff *skb, int tproto, int thoff,
121 nf_tproxy_get_sock_v6(struct net *net, struct sk_buff *skb, int thoff,
H A Dnf_tables_ipv6.h12 int protohdr, thoff = 0; local
15 protohdr = ipv6_find_hdr(pkt->skb, &thoff, -1, &frag_off, &flags);
16 if (protohdr < 0 || thoff > U16_MAX) {
23 pkt->thoff = thoff;
32 unsigned int thoff = 0; local
49 protohdr = ipv6_find_hdr(pkt->skb, &thoff, -1, &frag_off, &flags);
50 if (protohdr < 0 || thoff > U16_MAX)
55 pkt->thoff = thoff;
75 unsigned int thoff = 0; local
[all...]
/linux-master/net/netfilter/
H A Dnft_exthdr.c417 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,
H A Dnft_payload.c85 unsigned int thoff = nft_thoff(pkt); local
92 pkt->inneroff = thoff + sizeof(struct udphdr);
97 th = skb_header_pointer(pkt->skb, thoff, sizeof(_tcph), &_tcph);
101 pkt->inneroff = thoff + __tcp_hdrlen(th);
109 gre = skb_header_pointer(pkt->skb, thoff, sizeof(_gre), &_gre);
133 pkt->inneroff = thoff + offset;
137 pkt->inneroff = thoff;
697 static bool nft_payload_udp_checksum(struct sk_buff *skb, unsigned int thoff) argument
701 uh = skb_header_pointer(skb, thoff, sizeof(_uh), &_uh);
H A Dnft_inner.c56 u32 nhoff, thoff; local
129 thoff = nhoff + (iph->ihl * 4);
132 ctx->inner_thoff = thoff;
153 thoff = nhoff;
154 l4proto = ipv6_find_hdr(pkt->skb, &thoff, -1, &fragoff, &fh_flags);
155 if (l4proto < 0 || thoff > U16_MAX)
159 thoff = nhoff + sizeof(_ip6h);
161 ctx->inner_thoff = thoff;
178 ctx->inner_tunoff = pkt->thoff;
H A Dxt_sctp.c129 sh = skb_header_pointer(skb, par->thoff, sizeof(_sh), &_sh);
143 SCCHECK(match_packet(skb, par->thoff + sizeof(_sh),
H A Dxt_tcpudp.c90 th = skb_header_pointer(skb, par->thoff, sizeof(_tcph), &_tcph);
115 if (!tcp_find_option(tcpinfo->option, skb, par->thoff,
142 uh = skb_header_pointer(skb, par->thoff, sizeof(_udph), &_udph);
199 ic = skb_header_pointer(skb, par->thoff, sizeof(_icmph), &_icmph);
226 ic = skb_header_pointer(skb, par->thoff, sizeof(_icmph), &_icmph);
H A Dxt_TPROXY.c113 int thoff = 0; local
116 tproto = ipv6_find_hdr(skb, &thoff, -1, NULL, NULL);
120 hp = skb_header_pointer(skb, thoff, sizeof(_hdr), &_hdr);
128 sk = nf_tproxy_get_sock_v6(xt_net(par), skb, thoff, tproto,
140 sk = nf_tproxy_handle_time_wait6(skb, tproto, thoff,
149 sk = nf_tproxy_get_sock_v6(xt_net(par), skb, thoff,
H A Dxt_hashlimit.c735 if (hashlimit_init_dst(hinfo, &dst, skb, par->thoff) < 0)
H A Dxt_tcpmss.c36 th = skb_header_pointer(skb, par->thoff, sizeof(_tcph), &_tcph);
49 op = skb_header_pointer(skb, par->thoff + sizeof(*th), optlen, _opt);
H A Dxt_multiport.c95 pptr = skb_header_pointer(skb, par->thoff, sizeof(_ports), _ports);
H A Dxt_l2tp.c79 static bool l2tp_udp_mt(const struct sk_buff *skb, struct xt_action_param *par, u16 thoff) argument
83 int offs = thoff + uhlen;
139 static bool l2tp_ip_mt(const struct sk_buff *skb, struct xt_action_param *par, u16 thoff) argument
147 lh = skb_header_pointer(skb, thoff, sizeof(lhbuf), &lhbuf);
155 lh = skb_header_pointer(skb, thoff + 8, sizeof(lhbuf),
178 return l2tp_udp_mt(skb, par, par->thoff);
180 return l2tp_ip_mt(skb, par, par->thoff);
189 unsigned int thoff = 0; local
193 ipproto = ipv6_find_hdr(skb, &thoff, -1, &fragoff, NULL);
200 return l2tp_udp_mt(skb, par, thoff);
[all...]
H A Dxt_esp.c46 eh = skb_header_pointer(skb, par->thoff, sizeof(_esp), &_esp);
H A Dxt_ecn.c36 th = skb_header_pointer(skb, par->thoff, sizeof(_tcph), &_tcph);
/linux-master/net/ipv6/
H A Dseg6_local.c630 int thoff = -1; local
658 thoff = nhlen;
661 thoff = nhlen - srhlen;
684 if (likely(thoff >= 0))
685 skb_set_transport_header(skb, thoff);
/linux-master/tools/testing/selftests/bpf/progs/
H A Dbpf_flow.c98 __u16 thoff = skb->flow_keys->thoff; local
102 if (thoff > (USHRT_MAX - hdr_size))
105 hdr = data + thoff;
109 if (bpf_skb_load_bytes(skb, thoff, buffer, hdr_size))
202 keys->thoff += sizeof(*gre); /* Step over GRE Flags and Proto */
204 keys->thoff += 4; /* Step over chksum and Padding */
206 keys->thoff += 4; /* Step over key */
208 keys->thoff += 4; /* Step over sequence number */
220 keys->thoff
[all...]
/linux-master/net/ipv6/netfilter/
H A Dnf_tproxy_ipv6.c39 nf_tproxy_handle_time_wait6(struct sk_buff *skb, int tproto, int thoff, argument
48 hp = skb_header_pointer(skb, thoff, sizeof(_hdr), &_hdr);
59 sk2 = nf_tproxy_get_sock_v6(net, skb, thoff, tproto,
76 nf_tproxy_get_sock_v6(struct net *net, struct sk_buff *skb, int thoff, argument
90 hp = skb_header_pointer(skb, thoff,
98 thoff + __tcp_hdrlen(hp),
H A Dnf_socket_ipv6.c105 int thoff = 0, tproto; local
107 tproto = ipv6_find_hdr(skb, &thoff, -1, NULL, NULL);
117 hp = skb_header_pointer(skb, thoff, tproto == IPPROTO_UDP ?
128 thoff + __tcp_hdrlen((struct tcphdr *)hp) :
129 thoff + sizeof(*hp);
132 if (extract_icmp6_fields(skb, thoff, &tproto, &saddr, &daddr,
H A Dip6t_SYNPROXY.c21 if (nf_ip6_checksum(skb, xt_hooknum(par), par->thoff, IPPROTO_TCP))
24 th = skb_header_pointer(skb, par->thoff, sizeof(_th), &_th);
28 if (!synproxy_parse_options(skb, par->thoff, th, &opts))
/linux-master/include/linux/netfilter/
H A Dx_tables.h24 * @thoff: position of transport header relative to skb->data
39 unsigned int thoff; member in struct:xt_action_param
/linux-master/net/sched/
H A Dem_ipset.c67 acpar.thoff = ip_hdrlen(skb);
73 /* doesn't call ipv6_find_hdr() because ipset doesn't use thoff, yet */
74 acpar.thoff = sizeof(struct ipv6hdr);
/linux-master/net/ipv4/netfilter/
H A Dipt_SYNPROXY.c21 if (nf_ip_checksum(skb, xt_hooknum(par), par->thoff, IPPROTO_TCP))
24 th = skb_header_pointer(skb, par->thoff, sizeof(_th), &_th);
28 if (!synproxy_parse_options(skb, par->thoff, th, &opts))
/linux-master/samples/bpf/
H A Dsockex2_kern.c25 __u16 thoff; member in struct:flow_key_record
183 flow->thoff = (__u16) nhoff;

Completed in 306 milliseconds

123