Data structures to express IPv4, IPv6 and IP range.
Documentation
IP data
IP range data
Address class
makeAddrRange :: Addr a => a -> Int -> AddrRange aSource
The makeAddrRange
functions takes an Addr
address and a mask
length. It creates a bit mask from the mask length and masks
the Addr
address, then returns AddrRange
made of them.