Lines Matching refs:tup
414 struct bpf_sock_tuple tup = {}; in tcp_lookup() local
425 tup.ipv4.saddr = hdr->ipv4->saddr; in tcp_lookup()
426 tup.ipv4.daddr = hdr->ipv4->daddr; in tcp_lookup()
427 tup.ipv4.sport = hdr->tcp->source; in tcp_lookup()
428 tup.ipv4.dport = hdr->tcp->dest; in tcp_lookup()
429 tup_size = sizeof(tup.ipv4); in tcp_lookup()
431 __builtin_memcpy(tup.ipv6.saddr, &hdr->ipv6->saddr, sizeof(tup.ipv6.saddr)); in tcp_lookup()
432 __builtin_memcpy(tup.ipv6.daddr, &hdr->ipv6->daddr, sizeof(tup.ipv6.daddr)); in tcp_lookup()
433 tup.ipv6.sport = hdr->tcp->source; in tcp_lookup()
434 tup.ipv6.dport = hdr->tcp->dest; in tcp_lookup()
435 tup_size = sizeof(tup.ipv6); in tcp_lookup()
443 ct = bpf_xdp_ct_lookup(ctx, &tup, tup_size, &ct_lookup_opts, sizeof(ct_lookup_opts)); in tcp_lookup()
445 ct = bpf_skb_ct_lookup(ctx, &tup, tup_size, &ct_lookup_opts, sizeof(ct_lookup_opts)); in tcp_lookup()