hans-3.0.2: Network Stack

Safe HaskellNone
LanguageHaskell2010

Hans.Ethernet.Types

Contents

Synopsis

Ethernet Headers

MAC addresses

data Mac Source #

Constructors

Mac !Word8 !Word8 !Word8 !Word8 !Word8 !Word8 

Instances

Eq Mac Source # 

Methods

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

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

Ord Mac Source # 

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 # 
Show Mac Source # 

Methods

showsPrec :: Int -> Mac -> ShowS #

show :: Mac -> String #

showList :: [Mac] -> ShowS #

Serialize Mac Source # 

Methods

put :: Putter Mac #

get :: Get Mac #

CodecAtom Mac Source # 

pattern BroadcastMac :: Mac Source #

The broadcast MAC address.

EtherType Patterns

pattern ETYPE_IPV4 :: forall a. (Num a, Eq a) => a Source #

pattern ETYPE_ARP :: forall a. (Num a, Eq a) => a Source #

pattern ETYPE_IPV6 :: forall a. (Num a, Eq a) => a Source #