Skip to content

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