bpf: Don't clear checksum on wan_egress (#393)

This commit is contained in:
/gray
2024-01-01 20:40:23 +08:00
committed by GitHub
parent 3a8f2d642c
commit 5360893c3d
2 changed files with 2 additions and 9 deletions

View File

@ -1797,8 +1797,6 @@ int tproxy_wan_egress(struct __sk_buff *skb) {
// }
// }
disable_l4_checksum(skb, link_h_len, l4proto, ihl);
// Redirect from egress to ingress.
if ((ret = bpf_redirect(skb->ifindex, BPF_F_INGRESS)) == TC_ACT_SHOT) {
bpf_printk("Shot bpf_redirect: %d", ret);