network-data-0.5.3: Library for network data structures and their serialization.

Safe HaskellNone
LanguageHaskell98

Data.Ethernet

Contents

Description

The Data.Ethernet module exports Ethernet header structures.

Synopsis

Types

data Ethernet Source

An Ethernet hardware address or MAC address.

Constructors

Ethernet !Word8 !Word8 !Word8 !Word8 !Word8 !Word8 

Constants

vlanEthertype :: Word16 Source

Two bytes of ethertype if 802.1Q tag is present.