Skip to main content

Module addrpolicy

Module addrpolicy 

Source
Expand description

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

Structsยง

AddrPolicy
A sequence of rules that are applied to an address:port until one matches.
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.