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

Documentation

fetchMACs :: IO [MAC]Source

Obtain a list of all available MACs.

i_config :: IO StringSource

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

ipconfig :: Parser [MAC]Source

Parses the output of Windows ipconfig.

ifconfig :: Parser [MAC]Source

Parses the output of Linux or BSD ifconfig.

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