Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bpf: drop packets not redirected from wan/lan
skb->mark will be reset when going across netns (skb_scrub_packet), so this commit sets a special value in cb[0] which can survive bpf_redirect and netns crossing. This solves issues like: level=warning msg="No AddrPort presented: reading map: key [[::ffff:0.0.0.0]:68, 17, 255.255.255.255:67]: lookup: key does not exist"
- Loading branch information