hans-2.4.0.0: IPv4 Network Stack

Safe HaskellNone
LanguageHaskell98

Hans.Layer.Icmp4

Synopsis

Documentation

type Icmp4Handle = Channel (Icmp4 ()) Source

addIcmp4Handler :: Icmp4Handle -> Handler -> IO () Source

Add a handler for Icmp4 messages that match the provided predicate.

destUnreachable :: Icmp4Handle -> DestinationUnreachableCode -> IP4Header -> Int -> ByteString -> IO () Source

Send a destination unreachable message to a host, with the given bytes as its body. Don't send the message, if the message was broadcast.