hans-3.0.2: Network Stack

Safe HaskellNone
LanguageHaskell2010

Hans.IP4.Input

Synopsis

Documentation

processArp :: NetworkStack -> Device -> ByteString -> Hans () Source #

Handle incoming Arp packets.

processIP4 :: NetworkStack -> Device -> ByteString -> Hans () Source #

Process a packet that has arrived from a device.

handleIP4 :: NetworkStack -> Device -> Maybe (Int, ByteString) -> IP4Header -> ByteString -> Hans () Source #

The processing stage after the packet has been decoded and validated. It's exposed here so that routing to an address that's managed by the network stack can skip the device layer.