Instance Propertyswift-ip 0.3.0Firewalls->IP
asn
IP.Firewall.swift:15let asn: Table<ASN>
let asn: Table<ASN>
s2IPAAO9FirewallsE8FirewallV3asnAbCE5TableVy_AbCE3ASNVGvp
What are these?3S1QV
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 Table<Color> where Color : BSON.BinaryPackable
A data structure for efficient IP address lookups.
@frozen struct ASN
An Autonomous System Number (ASN).
static func load(from image: Image, loopback: IP.Claimant? = nil) -> IP.Firewall
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?)
@frozen struct Image
The data used to construct IP.Firewall
.