pub fn canonical_socket_addr(socket_addr: impl Into<SocketAddr>) -> SocketAddr
Expand description
Transform a SocketAddr
into a canonical Zebra SocketAddr
, converting
IPv6-mapped IPv4 addresses, and removing IPv6 scope IDs and flow information.
Use canonical_peer_addr()
and PeerSocketAddr
for remote peer addresses,
so that Zebra doesn’t log sensitive information about peers.
See canonical_ip_addr
for detailed info on IPv6-mapped IPv4 addresses.