Searched refs:tuplen (Results 1 – 2 of 2) sorted by relevance
| /linux-6.15/tools/testing/selftests/bpf/progs/ |
| H A D | test_cls_redirect_dynptr.c | 541 uint64_t tuplen, void *iph, struct tcphdr *tcp) in classify_tcp() argument 544 bpf_skc_lookup_tcp(skb, tuple, tuplen, BPF_F_CURRENT_NETNS, 0); in classify_tcp() 558 if (tuplen == sizeof(tuple->ipv6)) in classify_tcp() 575 bpf_sk_lookup_udp(skb, tuple, tuplen, BPF_F_CURRENT_NETNS, 0); in classify_udp() 590 uint64_t tuplen, metrics_t *metrics) in classify_icmp() argument 594 return classify_tcp(skb, tuple, tuplen, NULL, NULL); in classify_icmp() 597 return classify_udp(skb, tuple, tuplen); in classify_icmp() 711 uint64_t tuplen; in process_tcp() local 726 return classify_tcp(skb, &tuple, tuplen, info->hdr, &tcp); in process_tcp() 734 uint64_t tuplen; in process_udp() local [all …]
|
| H A D | test_cls_redirect.c | 651 struct bpf_sock_tuple *tuple, uint64_t tuplen, in classify_tcp() argument 668 if (tuplen == sizeof(tuple->ipv6)) { in classify_tcp() 684 struct bpf_sock_tuple *tuple, uint64_t tuplen) in classify_udp() argument 687 bpf_sk_lookup_udp(skb, tuple, tuplen, BPF_F_CURRENT_NETNS, 0); in classify_udp() 702 struct bpf_sock_tuple *tuple, uint64_t tuplen, in classify_icmp() argument 707 return classify_tcp(skb, tuple, tuplen, NULL, NULL); in classify_icmp() 710 return classify_udp(skb, tuple, tuplen); in classify_icmp() 834 uint64_t tuplen = in process_tcp() local 836 return classify_tcp(pkt->skb, &tuple, tuplen, iph, tcp); in process_tcp() 852 uint64_t tuplen = in process_udp() local [all …]
|