Skip to content

refactor(bpf): Introduce route_decision struct#836

Open
jschwinger233 wants to merge 3 commits intodaeuniverse:mainfrom
jschwinger233:gray/route_decision
Open

refactor(bpf): Introduce route_decision struct#836
jschwinger233 wants to merge 3 commits intodaeuniverse:mainfrom
jschwinger233:gray/route_decision

Conversation

@jschwinger233
Copy link
Copy Markdown
Member

@jschwinger233 jschwinger233 commented Jun 12, 2025

Background

之前 route() 返回一个 s64 承载 outbound | mark << 8 | must << 40,不好读,不好扩展。为了实现 #818 必须在 route() 结果里带上 redirect_ifindex 和 redirect_dir,之前的 64 bits 无法扩展,这个 pr 作为预备工作引入了 route_decision 结构体方便之后扩展,无业务逻辑改动。

(建议按照 commit review,有个调整缩进的改动让 diff 变得不堪入目,我单独扔到一个 patch)

Checklist

Full Changelogs

  • [Implement ...]

Issue Reference

Closes #[issue number]

Test Result

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant