network-data-0.2.1: Library for network data structures (ex: ip/udp/tcp headers and helper functions)

Safe HaskellSafe-Infered

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

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

module Data.IPv6