xorp

PacketDecoder Class Reference

Packet byte streams are decoded through this class. More...

#include <packet.hh>

List of all members.

Public Member Functions

void register_decoder (Packet *packet)
 Register the packet/decode routines.
Packetdecode (uint8_t *ptr, size_t len) throw (InvalidPacket)
 Decode byte stream.

Private Attributes

map< OspfTypes::Type, Packet * > _ospfv2
map< OspfTypes::Type, Packet * > _ospfv3

Detailed Description

Packet byte streams are decoded through this class.


Member Function Documentation

Packet * PacketDecoder::decode ( uint8_t *  ptr,
size_t  len 
) throw (InvalidPacket)

Decode byte stream.

Parameters:
ptrto data packet
lengthof data packet
Returns:
a packet structure, which must be free'd
void PacketDecoder::register_decoder ( Packet packet)

Register the packet/decode routines.

Parameters:
packetdecoder

The documentation for this class was generated from the following files:
 All Classes Namespaces Functions Variables Typedefs Enumerations