Documentation ¶
Index ¶
- func AggregatePrefixes(prefixes []netip.Prefix) []netip.Prefix
- func AreAddressesFromSameFamily(addresses []netip.Addr) bool
- func ArePrefixesFromSameFamily(prefixes []netip.Prefix) bool
- func GroupAddressesByFamily(vs []netip.Addr) ([]netip.Addr, []netip.Addr)
- func GroupPrefixesByFamily(vs []netip.Prefix) ([]netip.Prefix, []netip.Prefix)
- func IsPrefixesAllowAll(prefixes []netip.Prefix) bool
- func ParseAddresses(vs []string) ([]netip.Addr, error)
- func ParsePrefix(v string) (netip.Prefix, error)
- type Family
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AggregatePrefixes ¶ added in v1.29.11
AggregatePrefixes aggregates prefixes. Overlapping prefixes are merged.
func GroupAddressesByFamily ¶
func GroupPrefixesByFamily ¶ added in v1.29.11
GroupPrefixesByFamily groups prefixes by IP family.
func IsPrefixesAllowAll ¶
IsPrefixesAllowAll returns true if one of the prefixes allows all addresses. FIXME: it should return true if the aggregated prefix allows all addresses. Now it only checks one by one.
Types ¶
Click to show internal directories.
Click to hide internal directories.