Skip to content

fix(router): stop merging separately advertised prefixes - #172

Closed
encodeous wants to merge 1 commit into
mainfrom
ac/no-merge-prefixes
Closed

encodeous wants to merge 1 commit into
mainfrom
ac/no-merge-prefixes

Conversation

@encodeous

Copy link
Copy Markdown
Owner

ComputeSysRouteTable built one IPSet from every advertised prefix, which coalesced adjacent prefixes (10.0.0.2/32 and 10.0.0.3/32 became 10.0.0.2/31). Windows treats the last address of an on-link prefix as broadcast, so the merged route made that address unreachable.

Apply the excludes to each advertised prefix on its own and only drop exact duplicates left by overlapping prefixes.

ComputeSysRouteTable built one IPSet from every advertised prefix, which
coalesced adjacent prefixes (10.0.0.2/32 and 10.0.0.3/32 became
10.0.0.2/31). Windows treats the last address of an on-link prefix as
broadcast, so the merged route made that address unreachable.

Apply the excludes to each advertised prefix on its own and only drop
exact duplicates left by overlapping prefixes.
@encodeous encodeous closed this Nov 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant