Skip to content

serviceability/client: allow 198.18.0.0/15 IP space#3082

Merged
snormore merged 2 commits intomainfrom
snor/allow-198-18-ip-space
Feb 23, 2026
Merged

serviceability/client: allow 198.18.0.0/15 IP space#3082
snormore merged 2 commits intomainfrom
snor/allow-198-18-ip-space

Conversation

@snormore
Copy link
Contributor

Summary of Changes

  • Remove 198.18.0.0/15 (benchmarking, RFC 2544) from BGP martian rejection lists across all three validation points: onchain program, client CLI, and controller
  • Addresses in the 198.18.0.0/15 range are now accepted as valid IPs

Diff Breakdown

Category Files Lines (+/-) Net
Core logic 3 +3 / -8 -5
Tests 2 +4 / -8 -4

Straightforward removal of a single martian range check across three components.

Key files (click to expand)
  • smartcontract/programs/doublezero-serviceability/src/helper.rs — removed 198.18.0.0/15 rejection from is_global(), updated test assertions
  • client/doublezero/src/command/helpers.rs — removed 198.18.0.0/15 rejection from is_bgp_martian(), updated test assertions
  • controlplane/controller/internal/controller/models.go — added comment noting 198.18.0.0/15 is intentionally excluded from bgpMartianNets

Testing Verification

  • Onchain test_is_global — passes, 198.18.x and 198.19.x now accepted
  • Client test_is_bgp_martian — passes, 198.18.x and 198.19.x now non-martian
  • Controller TestIsBgpMartian — passes (range was already absent from Go list)

Remove the 198.18.0.0/15 (benchmarking, RFC 2544) range from BGP
martian validation in the onchain program, client CLI, and controller
so that addresses in this space are accepted.
@snormore snormore marked this pull request as ready for review February 23, 2026 22:03
@snormore snormore enabled auto-merge (squash) February 23, 2026 22:03
@snormore snormore merged commit ec05d0d into main Feb 23, 2026
30 checks passed
@snormore snormore deleted the snor/allow-198-18-ip-space branch February 23, 2026 22:07
nikw9944 pushed a commit that referenced this pull request Feb 23, 2026
## Summary of Changes
- Remove `198.18.0.0/15` (benchmarking, RFC 2544) from BGP martian
rejection lists across all three validation points: onchain program,
client CLI, and controller
- Addresses in the 198.18.0.0/15 range are now accepted as valid IPs

## Diff Breakdown
| Category     | Files | Lines (+/-) | Net  |
|--------------|-------|-------------|------|
| Core logic   |     3 | +3 / -8     |  -5  |
| Tests        |     2 | +4 / -8     |  -4  |

Straightforward removal of a single martian range check across three
components.

<details>
<summary>Key files (click to expand)</summary>

- `smartcontract/programs/doublezero-serviceability/src/helper.rs` —
removed 198.18.0.0/15 rejection from `is_global()`, updated test
assertions
- `client/doublezero/src/command/helpers.rs` — removed 198.18.0.0/15
rejection from `is_bgp_martian()`, updated test assertions
- `controlplane/controller/internal/controller/models.go` — added
comment noting 198.18.0.0/15 is intentionally excluded from
`bgpMartianNets`

</details>

## Testing Verification
- Onchain `test_is_global` — passes, 198.18.x and 198.19.x now accepted
- Client `test_is_bgp_martian` — passes, 198.18.x and 198.19.x now
non-martian
- Controller `TestIsBgpMartian` — passes (range was already absent from
Go list)
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.

2 participants