From a858aba9281b80b723a1e7c232044b9965d33fcf Mon Sep 17 00:00:00 2001 From: Gray Liang Date: Mon, 25 Mar 2024 01:52:45 +0800 Subject: [PATCH] bpf: revert using bpf_redirect_peer --- 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 ceb587f04..6695fb0f7 100644 --- a/control/kern/tproxy.c +++ b/control/kern/tproxy.c @@ -1060,7 +1060,7 @@ int tproxy_lan_ingress(struct __sk_buff *skb) // Assign to control plane. control_plane: prep_redirect_to_control_plane(skb, link_h_len, &tuples, l4proto, ðh, 0, &tcph); - return bpf_redirect_peer(PARAM.dae0_ifindex, 0); + return bpf_redirect(PARAM.dae0_ifindex, 0); direct: return TC_ACT_OK;