hans-2.4.0.0: IPv4 Network Stack

Safe HaskellNone
LanguageHaskell98

Hans.Layer.Arp.Table

Synopsis

Documentation

data ArpEntry Source

Constructors

ArpEntry 
ArpPending 

Instances

addPending :: POSIXTime -> IP4 -> ArpTable -> ArpTable Source

Assumption: there is not already a pending ARP query recorded in the ARP table for the given IP address.

lookupArpEntry :: IP4 -> ArpTable -> ArpResult Source

If the ARP table has a fully realized entry for the given IP address, then return it. Otherwise return Pending if we're waiting for this info, or Unknown if nothing is currently known about it.