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

Safe HaskellNone

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 :: Word16Source

Two bytes of ethertype if 802.1Q tag is present.