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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 9 deletions

View File

@ -208,13 +208,8 @@ jobs:
cmd: |
set -ex
if docker exec dae dig @2606:4700:4700::1111 one.one.one.one; then
echo "Shouldn't succeed until https://github.com/daeuniverse/dae/issues/387 is resolved"
false
else
echo "Ingore failure until https://github.com/daeuniverse/dae/issues/387 is resolved"
true
fi
docker exec dae dig @2606:4700:4700::1111 one.one.one.one
cat /host/dae.log | grep -F -- '-> [2606:4700:4700::1111]:53'
- name: Setup LAN
uses: cilium/little-vm-helper@908ab1ff8a596a03cd5221a1f8602dc44c3f906d # v0.0.12

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);