maccatcher-0.1.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

nixen :: IO (Maybe MAC)Source

Obtain the appropriate hardware MAC fetcher for the host operating system. - This could be inlined, but in practice it is run only once. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

Obtain the hardware address on *NIX of any kind, using a command line - utility. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

win32 :: IO (Maybe MAC)Source

Obtain the hardware address on Windows, using a command line utility. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

maybeMAC :: String -> Maybe MACSource

Parses the output of Windows ipconfig, yielding a Maybe MAC on - succesful parse. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

Parses the output of Linux or BSD ifconfig, yielding a Maybe MAC on - succesful parse. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -