Skip to content

Reject out-of-range ports in the TCP benchmark proxy - #16543

Closed
copybara-service[bot] wants to merge 1 commit into
masterfrom
test/cl1008492291
Closed

copybara-service[bot] wants to merge 1 commit into
masterfrom
test/cl1008492291

Conversation

@copybara-service

Copy link
Copy Markdown

Reject out-of-range ports in the TCP benchmark proxy

A netstack listen or forwarding port of 65537 wraps to port 1. A bad
native forwarding port also makes the proxy retry a connection that
cannot succeed.

Parse the listen port at its 16-bit width and the netstack destination
as a numeric address and port before opening network devices. Check the
native forwarding port at startup so permanent errors cannot enter the
retry loop. Leave host resolution to each connection attempt.

FUTURE_COPYBARA_INTEGRATE_REVIEW=#16345 from tamird:tcp-proxy-port-bounds 641a5c3

A netstack listen or forwarding port of 65537 wraps to port 1. A bad
native forwarding port also makes the proxy retry a connection that
cannot succeed.

Parse the listen port at its 16-bit width and the netstack destination
as a numeric address and port before opening network devices. Check the
native forwarding port at startup so permanent errors cannot enter the
retry loop. Leave host resolution to each connection attempt.

FUTURE_COPYBARA_INTEGRATE_REVIEW=#16345 from tamird:tcp-proxy-port-bounds 641a5c3
PiperOrigin-RevId: 1008492291
@copybara-service copybara-service Bot added the exported Issue was exported automatically label Oct 28, 2026
@copybara-service copybara-service Bot closed this Nov 3, 2026
@copybara-service
copybara-service Bot deleted the test/cl1008492291 branch November 3, 2026 01:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

exported Issue was exported automatically

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant