hans-2.4.0.0: IPv4 Network Stack

Safe HaskellNone
LanguageHaskell98

Hans.Layer.Arp

Synopsis

Documentation

type ArpHandle = Channel (Arp ()) Source

A handle to a running arp layer.

runArpLayer :: ArpHandle -> EthernetHandle -> IO () Source

Start an arp layer.

arpWhoHas :: BaseM m IO => ArpHandle -> IP4 -> m (Maybe Mac) Source

Lookup the hardware address associated with an IP address.

arpIP4Packet :: ArpHandle -> IP4 -> IP4 -> ByteString -> IO () Source

Send an IP packet via the arp layer, to resolve the underlying hardware addresses.

addLocalAddress :: ArpHandle -> IP4 -> Mac -> IO () Source

Associate an address with a mac in the Arp layer.