maccatcher-2.1.5: Obtain the host MAC address on *NIX and Windows.

Safe HaskellSafe-Infered

System.Info.MAC.Fetch

Description

System specific routines for determing the MAC address and macros to help sort things out at compile time.

Synopsis

Documentation

fetchNICs :: IO [(String, MAC)]

Obtain a list containing the name and MAC of all NICs.

i_config :: IO String

Run ifconfig or ipconfig, as appropriate, capturing its output.

parser :: String -> [(String, MAC)]

ifconfig :: Parser [(String, MAC)]

Parses the output of Linux or BSD ifconfig.

ipconfig :: Parser [(String, MAC)]

Parses the output of Windows ipconfig.

parse' :: String -> Parser [t] -> String -> [t]