Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

IpRoute – IP Address Types

Lean: Hale.IpRoute | Haskell: iproute

IP addresses (IPv4, IPv6) and CIDR ranges with decidable membership predicate.

Key Types

TypeDescription
IPv432-bit address
IPv6Pair of UInt64
AddrRangeCIDR range with prefix length

API

FunctionSignature
ofOctets(UInt8, UInt8, UInt8, UInt8) → IPv4
toOctetsIPv4 → (UInt8, UInt8, UInt8, UInt8)
isMatchedToDecidable CIDR membership

Files

  • Hale/IpRoute/Data/IP.lean – IPv4, IPv6, CIDR ranges