#include <BGPUpdate.h>
inet::bgp::BGPUpdateMessage::BGPUpdateMessage |
( |
const char * |
name = nullptr , |
|
|
int |
kind = 0 |
|
) |
| |
|
inline |
BGPUpdateMessage_Base(const char *name=nullptr, short kind=0)
Referenced by setPathAttributeList().
35 unsigned short nb_path_attr = 2 + pathAttrs.getAsPathArraySize()
36 + pathAttrs.getLocalPrefArraySize()
37 + pathAttrs.getAtomicAggregateArraySize();
40 unsigned short contentBytes = nb_path_attr * 4;
44 for (
unsigned int i = 0; i < pathAttrs.getAsPathArraySize(); i++)
45 contentBytes += 2 + pathAttrs.getAsPath(i).getLength();
49 contentBytes = 4 * pathAttrs.getLocalPrefArraySize();
void inet::bgp::BGPUpdateMessage::setNLRI |
( |
const BGPUpdateNLRI & |
NLRI_var | ) |
|
|
overridevirtual |
Referenced by inet::bgp::BGPRouting::updateSendProcess().
61 setByteLength(getByteLength() + delta_bytes);
virtual void setPathAttributeListArraySize(unsigned int size)
virtual unsigned int getPathAttributeListArraySize() const
virtual void setPathAttributeList(unsigned int k, const BGPUpdatePathAttributeList &pathAttributeList)
virtual BGPUpdatePathAttributeList & getPathAttributeList(unsigned int k)
unsigned short computePathAttributesBytes(const BGPUpdatePathAttributeList &pathAttrs)
Definition: BGPUpdate.cc:33
void inet::bgp::BGPUpdateMessage::setWithdrawnRoutesArraySize |
( |
unsigned int |
size | ) |
|
|
overridevirtual |
The documentation for this class was generated from the following files: