Safe Haskell | None |
---|---|
Language | Haskell98 |
- type ArpHandle = Channel (Arp ())
- runArpLayer :: ArpHandle -> EthernetHandle -> IO ()
- arpWhoHas :: BaseM m IO => ArpHandle -> IP4 -> m (Maybe Mac)
- arpIP4Packet :: ArpHandle -> IP4 -> IP4 -> ByteString -> IO ()
- addLocalAddress :: ArpHandle -> IP4 -> Mac -> IO ()
Documentation
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.