Lines Matching full:tuple
71 struct bpf_fib_lookup tuple = { in xdp_flowtable_do_lookup() local
98 tuple.family = AF_INET; in xdp_flowtable_do_lookup()
99 tuple.tos = iph->tos; in xdp_flowtable_do_lookup()
100 tuple.l4_protocol = iph->protocol; in xdp_flowtable_do_lookup()
101 tuple.tot_len = bpf_ntohs(iph->tot_len); in xdp_flowtable_do_lookup()
102 tuple.ipv4_src = iph->saddr; in xdp_flowtable_do_lookup()
103 tuple.ipv4_dst = iph->daddr; in xdp_flowtable_do_lookup()
104 tuple.sport = ports->source; in xdp_flowtable_do_lookup()
105 tuple.dport = ports->dest; in xdp_flowtable_do_lookup()
109 struct in6_addr *src = (struct in6_addr *)tuple.ipv6_src; in xdp_flowtable_do_lookup()
110 struct in6_addr *dst = (struct in6_addr *)tuple.ipv6_dst; in xdp_flowtable_do_lookup()
124 tuple.family = AF_INET6; in xdp_flowtable_do_lookup()
125 tuple.l4_protocol = ip6h->nexthdr; in xdp_flowtable_do_lookup()
126 tuple.tot_len = bpf_ntohs(ip6h->payload_len); in xdp_flowtable_do_lookup()
129 tuple.sport = ports->source; in xdp_flowtable_do_lookup()
130 tuple.dport = ports->dest; in xdp_flowtable_do_lookup()
137 tuplehash = bpf_xdp_flow_lookup(ctx, &tuple, &opts, sizeof(opts)); in xdp_flowtable_do_lookup()