Instance Methodswift-ip 0.3.0Firewalls->IP
lookup(v4:)
IP.Firewall.swift:63func lookup(v4 ip: IP.V4) -> (IP.AS?, IP.Claimant?)
func lookup(v4 ip: IP.V4) -> (IP.AS?, IP.Claimant?)
s2IPAAO9FirewallsE8FirewallV6lookup2v4AbCE2ASVSg_AbCE8ClaimantOSgtAB2V4V_tF
What are these?5919U
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 V4
An IPv4 address, which is 32 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(v6 ip: IP.V6) -> (IP.AS?, IP.Claimant?)
@frozen struct Image
The data used to construct IP.Firewall
.