Safe Haskell | None |
---|---|
Language | Haskell98 |
- type IP4Handle = Channel (IP ())
- runIP4Layer :: IP4Handle -> ArpHandle -> EthernetHandle -> IO ()
- data Rule mask addr
- connectEthernet :: IP4Handle -> EthernetHandle -> IO ()
- withIP4Source :: IP4Handle -> IP4 -> (IP4 -> IO ()) -> IO ()
- sendIP4Packet :: IP4Handle -> IP4Header -> ByteString -> IO ()
- addIP4RoutingRule :: IP4Handle -> Rule IP4Mask IP4 -> IO ()
- addIP4Handler :: IP4Handle -> IP4Protocol -> Handler -> IO ()
- type Handler = IP4Header -> ByteString -> IO ()
- removeIP4Handler :: IP4Handle -> IP4Protocol -> IO ()
- type Mtu = Int
Documentation
runIP4Layer :: IP4Handle -> ArpHandle -> EthernetHandle -> IO () Source
External Interface
connectEthernet :: IP4Handle -> EthernetHandle -> IO () Source
sendIP4Packet :: IP4Handle -> IP4Header -> ByteString -> IO () Source
addIP4Handler :: IP4Handle -> IP4Protocol -> Handler -> IO () Source
type Handler = IP4Header -> ByteString -> IO () Source
removeIP4Handler :: IP4Handle -> IP4Protocol -> IO () Source