|
libbgp
0.6
A C++ BGP Library.
|
The BgpRib4Entry class. More...
#include <bgp-rib4.h>


Public Member Functions | |
| BgpRib4Entry (Prefix4 r, uint32_t src, const std::vector< std::shared_ptr< BgpPathAttrib >> attribs) | |
| Construct a new Bgp Rib Entry:: Bgp Rib Entry object. More... | |
| uint32_t | getNexthop () const |
| Get nexthop for this entry. More... | |
Public Member Functions inherited from libbgp::BgpRibEntry< BgpRib4Entry > | |
| BgpRibEntry () | |
| Construct a new BgpRibEntry. More... | |
| bool | operator> (const BgpRib4Entry &other) const |
| Test if this entry has greater weight then anoter entry. Please note that weight are only calculated based on path attribues. (i.e., you need to compare route prefix first) More... | |
Public Attributes | |
| Prefix4 | route |
| The prefix of this entry. | |
Public Attributes inherited from libbgp::BgpRibEntry< BgpRib4Entry > | |
| uint32_t | src_router_id |
| The originating BGP speaker's ID of this entry. (network bytes order) | |
| uint64_t | update_id |
| The update ID. More... | |
| int32_t | weight |
| Weight of this entry. More... | |
| std::vector< std::shared_ptr< BgpPathAttrib > > | attribs |
| Path attributes for this entry. | |
| BgpRouteSource | src |
| Source of this entry. More... | |
| BgpRouteStatus | status |
| Status of this entry. More... | |
| uint32_t | ibgp_peer_asn |
| ASN of the IBGP peer. (Valid iff src == SRC_IBGP) More... | |
| libbgp::BgpRib4Entry::BgpRib4Entry | ( | Prefix4 | r, |
| uint32_t | src, | ||
| const std::vector< std::shared_ptr< BgpPathAttrib >> | as | ||
| ) |
Construct a new Bgp Rib Entry:: Bgp Rib Entry object.
| r | Prefix of the entry. |
| src | Originating BGP speaker's ID in network bytes order. |
| as | Path attributes for this entry. |
Definition at line 28 of file bgp-rib4.cc.
References libbgp::BgpRibEntry< BgpRib4Entry >::attribs, libbgp::BgpRibEntry< BgpRib4Entry >::src, and libbgp::BgpRibEntry< BgpRib4Entry >::src_router_id.
| uint32_t libbgp::BgpRib4Entry::getNexthop | ( | ) | const |
Get nexthop for this entry.
| no_nexthop | nexthop attribute does not exist. |
Definition at line 39 of file bgp-rib4.cc.
References libbgp::BgpRibEntry< BgpRib4Entry >::attribs.
1.8.13