Safe Haskell | None |
---|---|
Language | Haskell2010 |
- processArp :: NetworkStack -> Device -> ByteString -> Hans ()
- processIP4 :: NetworkStack -> Device -> ByteString -> Hans ()
- handleIP4 :: NetworkStack -> Device -> Maybe (Int, ByteString) -> IP4Header -> ByteString -> Hans ()
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.