|
|
Packet byte streams are decoded through this class.
~PacketDecoder ()
| ~PacketDecoder |
void register_decoder (Packet *packet)
| register_decoder |
Register the packet/decode routines
Parameters:
packet | decoder |
void register_decoder (Packet *packet,
OspfTypes::Version version,
OspfTypes::Type type)
| register_decoder |
Register the packet/decode routines
Parameters:
packet | decoder |
version | OSPF version of the decoder |
type | of decoder |
Packet * decode (uint8_t *ptr, size_t len)
throw(BadPacket) | decode |
Decode byte stream.
Parameters:
ptr | to data packet |
length | of data packet |
Returns: a packet structure, which must be free'd