Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow binding on address with arbitrary zone #32

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

xliuxu
Copy link

@xliuxu xliuxu commented Sep 25, 2024

This patch allows specifying the zone of an IPv6 address when creating a socket, which is useful when the zone ID is already known. Using the interface name as the zone ID may return an outdated value, as the zone ID is cached in https://github.com/golang/go/blob/go1.23.1/src/net/interface.go#L192. This can happen when the interface is renamed and the previous name is assigned to a new network interface.

@xliuxu
Copy link
Author

xliuxu commented Sep 26, 2024

@mdlayher could you help to evaluate this change? thanks a lot!

Signed-off-by: Xu Liu <xu.liu@broadcom.com>
@xliuxu xliuxu force-pushed the xliu2/allow-addr-with-zone branch from 1013127 to 4b1e72c Compare November 7, 2024 02:27
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