Safe Haskell | None |
---|---|
Language | Haskell98 |
- data ArpPacket hw p = ArpPacket {}
- parseArpPacket :: Get hw -> Get p -> ByteString -> Either String (ArpPacket hw p)
- renderArpPacket :: (Address hw, Address p) => Putter hw -> Putter p -> ArpPacket hw p -> ByteString
- data ArpOper
- parseArpOper :: Get ArpOper
- renderArpOper :: Putter ArpOper
Documentation
parseArpPacket :: Get hw -> Get p -> ByteString -> Either String (ArpPacket hw p) Source
Parse an Arp packet, given a way to parse hardware and protocol addresses.
renderArpPacket :: (Address hw, Address p) => Putter hw -> Putter p -> ArpPacket hw p -> ByteString Source
Render an Arp packet, given a way to render hardware and protocol addresses.
parseArpOper :: Get ArpOper Source
Parse an Arp operation.
renderArpOper :: Putter ArpOper Source
Render an Arp operation.