Stability | provisional |
---|---|
Maintainer | michel.boucey@gmail.com |
Dealing with IPv6 address's text representation, canonization and manipulations.
- module Text.IPv6Addr.Internal
- sixteenBitsArbToken :: String -> IO (Maybe IPv6AddrToken)
- macAddrToIPv6AddrTokens :: Text -> [IPv6AddrToken]
- getTokIPv6AddrOf :: String -> IO (Maybe [IPv6AddrToken])
- getTokMacAddrOf :: String -> IO (Maybe [IPv6AddrToken])
Documentation
module Text.IPv6Addr.Internal
sixteenBitsArbToken :: String -> IO (Maybe IPv6AddrToken)Source
Returns an arbitrary SixteenBits
token based on a mask "____", each
underscore being replaced by a random hexadecimal digit.
sixteenBitsArbToken "_f__" == Just (SixteenBits "bfd4")
macAddrToIPv6AddrTokens :: Text -> [IPv6AddrToken]Source
Given a MAC address, returns the corresponding IPv6AddrToken
list, or an empty list.
macAddrToIPv6AddrTokens "fa:1d:58:cc:95:16" == [SixteenBits "fa1d",Colon,SixteenBits "58cc",Colon,SixteenBits "9516"]
getTokIPv6AddrOf :: String -> IO (Maybe [IPv6AddrToken])Source
Given a valid name of a local network interface, returns Just the list of tokens of the interface's IPv6 address.
getTokMacAddrOf :: String -> IO (Maybe [IPv6AddrToken])Source
Given the valid name of a local network interface,
returns the corresponding list of IPv6AddrToken
of the interface's MAC Address.