maccatcher-2.1.5: 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

Documentation

fetchNICs :: IO [(String, MAC)]Source

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

i_config :: IO StringSource

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

ifconfig :: Parser [(String, MAC)]Source

Parses the output of Linux or BSD ifconfig.

ipconfig :: Parser [(String, MAC)]Source

Parses the output of Windows ipconfig.

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