Expand description
The host a remote peer counts as.
A listener that bounds what one peer may hold has to decide what “one peer”
is, and the socket address is the wrong answer: an IPv6 host is routed a
whole /64 and picks the rest of the address itself, and a dual-stack
listener sees an IPv4 client under two spellings. Every transport crate that
keeps such a ceiling asks this module, so that they bound the same threat the
same way and the rule has one place to be wrong in.
Structs§
- HostKey
- How a per-host ceiling counts the peer at one address.
Functions§
- host_
key - The key a per-host ceiling counts the peer at
ipunder, and whether that peer is local. A listener takesipfrom the accepted connection’sSocketAddr::ip.