Safe Haskell | None |
---|---|
Language | Haskell2010 |
- data EthernetHeader = EthernetHeader {}
- getEthernetHeader :: Get EthernetHeader
- putEthernetHeader :: Putter EthernetHeader
- type EtherType = Word16
- data Mac = Mac !Word8 !Word8 !Word8 !Word8 !Word8 !Word8
- getMac :: Get Mac
- putMac :: Putter Mac
- showMac :: Mac -> ShowS
- readMac :: ReadS Mac
- pattern BroadcastMac :: Mac
- pattern ETYPE_IPV4 :: forall a. (Num a, Eq a) => a
- pattern ETYPE_ARP :: forall a. (Num a, Eq a) => a
- pattern ETYPE_IPV6 :: forall a. (Num a, Eq a) => a
Ethernet Headers
data EthernetHeader Source #
MAC addresses
pattern BroadcastMac :: Mac Source #
The broadcast MAC address.
EtherType Patterns
pattern ETYPE_IPV4 :: forall a. (Num a, Eq a) => a Source #
pattern ETYPE_IPV6 :: forall a. (Num a, Eq a) => a Source #