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 #

Constructors

MAC !Word8 !Word8 !Word8 !Word8 !Word8 !Word8 

Instances

Bounded MAC # 

Methods

minBound :: MAC #

maxBound :: MAC #

Eq MAC # 

Methods

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

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

Ord 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 # 
Show MAC # 

Methods

showsPrec :: Int -> MAC -> ShowS #

show :: MAC -> String #

showList :: [MAC] -> ShowS #

Storable 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 # 

Methods

put :: MAC -> Put #

get :: Get MAC #

putList :: [MAC] -> Put #