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

Safe HaskellSafe
LanguageHaskell98

Data.MAC

Description

A MAC address datatype, representing the six bytes of a MAC address, also known as an OID, IAB or "...Vendor Address, Vendor ID, NIC Address, Ethernet Address and others.", see http://standards.ieee.org/faqs/OUI.html#q4

Documentation

data MAC Source #

Constructors

MAC !Word8 !Word8 !Word8 !Word8 !Word8 !Word8 
Instances
Bounded MAC Source # 
Instance details

Defined in Data.MAC

Methods

minBound :: MAC

maxBound :: MAC

Eq MAC Source # 
Instance details

Defined in Data.MAC

Methods

(==) :: MAC -> MAC -> Bool

(/=) :: MAC -> MAC -> Bool

Ord MAC Source # 
Instance details

Defined in Data.MAC

Methods

compare :: MAC -> MAC -> Ordering

(<) :: MAC -> MAC -> Bool

(<=) :: MAC -> MAC -> Bool

(>) :: MAC -> MAC -> Bool

(>=) :: MAC -> MAC -> Bool

max :: MAC -> MAC -> MAC

min :: MAC -> MAC -> MAC

Read MAC Source # 
Instance details

Defined in Data.MAC

Methods

readsPrec :: Int -> ReadS MAC

readList :: ReadS [MAC]

readPrec :: ReadPrec MAC

readListPrec :: ReadPrec [MAC]

Show MAC Source # 
Instance details

Defined in Data.MAC

Methods

showsPrec :: Int -> MAC -> ShowS

show :: MAC -> String

showList :: [MAC] -> ShowS

Storable MAC Source # 
Instance details

Defined in Data.MAC

Methods

sizeOf :: MAC -> Int

alignment :: MAC -> Int

peekElemOff :: Ptr MAC -> Int -> IO MAC

pokeElemOff :: Ptr MAC -> Int -> MAC -> IO ()

peekByteOff :: Ptr b -> Int -> IO MAC

pokeByteOff :: Ptr b -> Int -> MAC -> IO ()

peek :: Ptr MAC -> IO MAC

poke :: Ptr MAC -> MAC -> IO ()

Binary MAC Source # 
Instance details

Defined in Data.MAC

Methods

put :: MAC -> Put

get :: Get MAC

putList :: [MAC] -> Put