xorp

TrieData Class Reference

A BGP update packet can have many NLRIs. More...

#include <trie_payload.hh>

List of all members.

Public Member Functions

 TrieData (const TimeVal &tv, const uint8_t *buf, size_t len, const BGPPeerData *peerdata, TrieData *&first, TrieData *&last)
void incr_refcnt ()
bool decr_refcnt ()
const UpdatePacketdata () const
const TimeValtv () const
const TrieDatanext () const

Private Attributes

TimeVal _tv
TrieData *& _first
TrieData *& _last
int _refcnt
UpdatePacket_packet
TrieData_next
TrieData_prev

Detailed Description

A BGP update packet can have many NLRIs.

Each NLRI is stored in a trie node. Rather than keep multiple copies of a BGP update packet. A single reference counted copy is kept in TrieData. A TriePayload is stored in the trie and holds a pointer to the TrieData.


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