class RipPacket
|
RIP Packet class.
More... |
|
|
Public Types
Public Methods
Protected Methods
Protected Members
A container for RIP packet, provides easy to use accessors and modifiers.
[protected]
[protected]
vector<uint8_t> _data
| _data |
[protected]
uint32_t _max_entries
| _max_entries |
[protected]
const uint8_t* base_ptr ()
| base_ptr |
[protected const]
uint8_t* base_ptr ()
| base_ptr |
[protected]
inline const Addr& address ()
| address |
[const]
Returns: destination address of packet.
inline uint16_t port ()
| port |
[const]
Returns: destination port of packet.
inline uint32_t max_entries ()
| max_entries |
[const]
Returns: the maximum number of route entries packet may have.
inline void set_max_entries (uint32_t max_entries)
| set_max_entries |
Set the maximum number of route entries a packet may have.
This method should be called before using append_data
methods as it resizes the internal storage and will cause
appended data to be lost.
RipPacket (const Addr& addr,
uint16_t port,
uint32_t max_entries = RIPv2_ROUTES_PER_PACKET)
| RipPacket |
[const]
Returns: const pointer to RipPacketHeader.
Returns: pointer to RipPacketHeader.
[const]
Route entry accessor.
Parameters:
entry_no | index of route entry to retrive
|
Returns: const pointer to route entry, or 0 if entry_no is greater than
the maximum route entries associated with packet.
Route entry accessor.
Parameters:
entry_no | index of route entry to retrive
|
Returns: const pointer to route entry, or 0 if entry_no is greater than
the maximum route entries associated with packet.
void append_data (const uint8_t* data, uint32_t data_bytes)
| append_data |
void append_data (const vector<uint8_t>& data)
| append_data |
inline vector<uint8_t>& data ()
| data |
inline const vector<uint8_t>& data ()
| data |
[const]
inline uint32_t data_bytes ()
| data_bytes |
[const]
inline const uint8_t* data_ptr ()
| data_ptr |
[const]
inline uint8_t* data_ptr ()
| data_ptr |
[const]
template <typename A>
const PacketRouteEntry<A>*
route_entry (uint32_t entry_no)
| route_entry |
[const]
template <typename A>
PacketRouteEntry<A>*
route_entry (uint32_t entry_no)
| route_entry |
template <typename A>
void
append_data (const uint8_t* data, uint32_t data_bytes)
| append_data |
template <typename A>
void
append_data (const vector<uint8_t>& data)
| append_data |
template <typename A>
void
set_max_entries (uint32_t max_entries)
| set_max_entries |
Generated by: pavlin on possum.icir.org on Thu Aug 28 12:52:20 2003, using kdoc 2.0a54+XORP. |