From 406291dd84467431f325276b37055eb9f6555194 Mon Sep 17 00:00:00 2001 From: Integral Date: Fri, 18 Oct 2024 01:13:43 +0800 Subject: [PATCH] Fix BPF test Co-authored-by: ./gray --- control/kern/tproxy.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/control/kern/tproxy.c b/control/kern/tproxy.c index 5e51e9002..00a64a2cf 100644 --- a/control/kern/tproxy.c +++ b/control/kern/tproxy.c @@ -656,7 +656,7 @@ route(const __u32 flag[8], const void *l4hdr, const __be32 saddr[4], .trie_key = { IPV6_BYTE_LENGTH * 8, {} }, }; - const enum MatchType keys[] = { MatchType_L4Proto, + const __u32 keys[] = { MatchType_L4Proto, MatchType_IpVersion }; for (__u32 i = 0; i < ARRAY_SIZE(keys); i++) {