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