Lines Matching full:keys
93 struct bpf_flow_keys *keys = skb->flow_keys; in parse_eth_proto() local
95 keys->n_proto = proto; in parse_eth_proto()
131 struct bpf_flow_keys *keys = skb->flow_keys; in parse_ip_proto() local
139 keys->ip_proto = proto; in parse_ip_proto()
147 keys->is_encap = true; in parse_ip_proto()
150 keys->is_encap = true; in parse_ip_proto()
161 keys->thoff += sizeof(*gre); /* Step over GRE Flags and Proto */ in parse_ip_proto()
163 keys->thoff += 4; /* Step over chksum and Padding */ in parse_ip_proto()
165 keys->thoff += 4; /* Step over key */ in parse_ip_proto()
167 keys->thoff += 4; /* Step over sequence number */ in parse_ip_proto()
169 keys->is_encap = true; in parse_ip_proto()
177 keys->thoff += sizeof(*eth); in parse_ip_proto()
194 keys->sport = tcp->source; in parse_ip_proto()
195 keys->dport = tcp->dest; in parse_ip_proto()
203 keys->sport = udp->source; in parse_ip_proto()
204 keys->dport = udp->dest; in parse_ip_proto()
215 struct bpf_flow_keys *keys = skb->flow_keys; in parse_ipv6_proto() local
217 keys->ip_proto = nexthdr; in parse_ipv6_proto()
236 struct bpf_flow_keys *keys = skb->flow_keys; in PROG() local
249 keys->addr_proto = ETH_P_IP; in PROG()
250 keys->ipv4_src = iph->saddr; in PROG()
251 keys->ipv4_dst = iph->daddr; in PROG()
253 keys->thoff += iph->ihl << 2; in PROG()
254 if (data + keys->thoff > data_end) in PROG()
258 keys->is_frag = true; in PROG()
265 keys->is_first_frag = true; in PROG()
276 struct bpf_flow_keys *keys = skb->flow_keys; in PROG() local
283 keys->addr_proto = ETH_P_IPV6; in PROG()
284 memcpy(&keys->ipv6_src, &ip6h->saddr, 2*sizeof(ip6h->saddr)); in PROG()
286 keys->thoff += sizeof(struct ipv6hdr); in PROG()
309 struct bpf_flow_keys *keys = skb->flow_keys; in PROG() local
316 keys->thoff += sizeof(*fragh); in PROG()
317 keys->is_frag = true; in PROG()
319 keys->is_first_frag = true; in PROG()
337 struct bpf_flow_keys *keys = skb->flow_keys; in PROG() local
342 if (bpf_skb_load_bytes(skb, keys->thoff - sizeof(proto), &proto, in PROG()
355 keys->thoff += sizeof(*vlan); in PROG()
362 keys->thoff += sizeof(*vlan); in PROG()