Skip to main content

Module addrpolicy

Module addrpolicy 

Source
Expand description

Implements address policies, based on a series of accept/reject rules.

Structs§

AddrPolicy
Sequence of accept and reject rules
AddrPolicyRule 🔒
A single rule in an address policy.
AddrPortPattern
A pattern that may or may not match an address and port.

Enums§

IpPattern
A pattern that matches one or more IP addresses.

Functions§

parse_addr 🔒
Helper: try to parse a plain ipv4 address, or an IPv6 address wrapped in brackets.