We want to be able to specify a set of allowed ip addresses in the resource manager. These addresses will get some special treatment. We want to be able to specify a cidr range of ip addresses, and it's convenient to include this range directly in the multiaddr rather than a separate parameter.
Other use cases:
Go multiaddr dns includes a potential example of resolving a dnsaddr and filtering with ipcidr.
A node may be listening on a range of addresses (1.2.3.4/31) and can thus compress its multiaddr to a single multiaddr instead of two.
Adds ipcidr to multiaddr. See https://github.com/multiformats/go-multiaddr/pull/177 for the Go implementation.
Why
We want to be able to specify a set of allowed ip addresses in the resource manager. These addresses will get some special treatment. We want to be able to specify a cidr range of ip addresses, and it's convenient to include this range directly in the multiaddr rather than a separate parameter.
Other use cases: