System specific routines for determing the MAC address and macros to help - sort things out at compile time. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Documentation
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.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
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.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -