Instance Methodswift-ip 0.3.0Firewalls->IP
lookup(v6:)
IP.Firewall.swift:72func lookup(v6 ip: IP.V6) -> (IP.AS?, IP.Claimant?)
func lookup(v6 ip: IP.V6) -> (IP.AS?, IP.Claimant?)
s2IPAAO9FirewallsE8FirewallV6lookup2v6AbCE2ASVSg_AbCE8ClaimantOSgtAB2V6V_tF
What are these?3OT4I
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 V6
An IPv6 address, which is 128 bits wide.
@frozen struct AS
Describes an Autonomous System (AS).
@frozen enum Claimant
static func load(from image: Image, loopback: IP.Claimant? = nil) -> IP.Firewall
let asn: Table<ASN>
let country: Table<ISO.Country>
func lookup(v4 ip: IP.V4) -> (IP.AS?, IP.Claimant?)
@frozen struct Image
The data used to construct IP.Firewall
.