maccatcher-2.0.0: Obtain the host MAC address on *NIX and Windows.
System.Info.MAC.Fetch
Description
System specific routines for determing the MAC address and macros to help sort things out at compile time.
Synopsis
fetchMACs :: IO [MAC]Source
Obtain a list of all available MACs.
i_config :: IO StringSource
Run ifconfig or ipconfig, as appropriate, capturing its output.
ifconfig
ipconfig
ipconfig :: Parser [MAC]Source
Parses the output of Windows ipconfig.
ifconfig :: Parser [MAC]Source
Parses the output of Linux or BSD ifconfig.
parseMAC :: Parser t -> Parser t' -> Char -> Parser (Maybe MAC)Source
parseMACs :: Parser t -> Parser t' -> Char -> Parser [MAC]Source
parse' :: String -> Parser [t] -> String -> [t]Source
maybeMAC :: String -> Maybe MACSource