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

Safe HaskellNone
LanguageHaskell98

Data.IP

Description

The Data.IP library exports IPv4 address and header structures.

FIXME: There is currently no support for options fields of the IP header.

Synopsis

Documentation

data IPv4Header Source

This IPv4 header structure lacks support for options. Ints are used for most integral data types and the binary instance hands the bit packing.

No warning is provided if a value is trunkated when packed!

Constructors

IPv4Hdr 

data IPv4Flag Source

Don't fragment, more fragment and reserved flags

Constructors

DF 
MF 
Res 

dummyIPv4Header :: IPv4Header Source

A dummy header with zeroed fields except version, header length and TTL (255).