Replace exclusion routes with scoped default + IP_BOUND_IF on macOS

This commit is contained in:
Viktor Liu
2026-04-18 13:01:50 +02:00
parent 8ae8f2098f
commit 514934e8ff
10 changed files with 546 additions and 60 deletions

View File

@@ -0,0 +1,10 @@
//go:build (dragonfly || freebsd || netbsd || openbsd) && !darwin
package systemops
// Non-darwin BSDs don't support the IP_BOUND_IF + scoped default model. They
// always fall through to the ref-counter exclusion-route path; these stubs
// exist only so systemops_unix.go compiles.
func (r *SysOps) setupAdvancedRouting() error { return nil }
func (r *SysOps) cleanupAdvancedRouting() error { return nil }
func (r *SysOps) flushPlatformExtras() error { return nil }