static func load(from image: Image, loopback: IP.Claimant? = nil) -> IP.Firewall
s2IPAAO9FirewallsE8FirewallV4load4from8loopbackA2E5ImageV_AbCE8ClaimantOSgtFZ
I1VS
import Firewalls
import IP
This Foundation-free module provides tools for parsing and formatting IP addresses, and data structures for performing efficient IP address lookups.
@frozen struct Firewall
@frozen enum IP
The namespace for IP types.
@frozen struct Image
The data used to construct IP.Firewall.
IP.Firewall
@frozen enum Claimant
let asn: Table<ASN>
let country: Table<ISO.Country>
func lookup(v4 ip: IP.V4) -> (IP.AS?, IP.Claimant?)
func lookup(v6 ip: IP.V6) -> (IP.AS?, IP.Claimant?)