docs: add private to direct

This commit is contained in:
mzz2017
2023-01-30 20:34:07 +08:00
parent f3c651daf7
commit c2175a4095
2 changed files with 2 additions and 1 deletions

View File

@ -1571,7 +1571,7 @@ int tproxy_wan_egress(struct __sk_buff *skb) {
encap_after_udp_hdr(skb, ipv6h, ihl, ipv4_tot_len, &new_hdr,
sizeof(new_hdr));
// Redirect.
// Redirect from egress to ingress.
if ((ret = bpf_redirect(skb->ifindex, BPF_F_INGRESS)) == TC_ACT_SHOT) {
bpf_printk("Shot bpf_redirect: %d", ret);
return TC_ACT_SHOT;