Lines Matching refs:flow
63 struct flow_key_record *flow) in parse_ip() argument
73 flow->src = load_word(skb, nhoff + offsetof(struct iphdr, saddr)); in parse_ip()
74 flow->dst = load_word(skb, nhoff + offsetof(struct iphdr, daddr)); in parse_ip()
87 struct flow_key_record *flow) in parse_ipv6() argument
91 flow->src = ipv6_addr_hash(skb, in parse_ipv6()
93 flow->dst = ipv6_addr_hash(skb, in parse_ipv6()
101 struct flow_key_record *flow) in flow_dissector() argument
121 nhoff = parse_ip(skb, nhoff, &ip_proto, flow); in flow_dissector()
123 nhoff = parse_ipv6(skb, nhoff, &ip_proto, flow); in flow_dissector()
159 nhoff = parse_ip(skb, nhoff, &ip_proto, flow); in flow_dissector()
161 nhoff = parse_ipv6(skb, nhoff, &ip_proto, flow); in flow_dissector()
167 nhoff = parse_ip(skb, nhoff, &ip_proto, flow); in flow_dissector()
170 nhoff = parse_ipv6(skb, nhoff, &ip_proto, flow); in flow_dissector()
176 flow->ip_proto = ip_proto; in flow_dissector()
180 flow->ports = load_word(skb, nhoff); in flow_dissector()
183 flow->thoff = (__u16) nhoff; in flow_dissector()
203 struct flow_key_record flow = {}; in bpf_prog2() local
207 if (!flow_dissector(skb, &flow)) in bpf_prog2()
210 key = flow.dst; in bpf_prog2()