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


Public Member Functions | |
| BgpRib6Entry (Prefix6 r, uint32_t src, const uint8_t nexthop_global[16], const uint8_t nexthop_linklocal[16], const std::vector< std::shared_ptr< BgpPathAttrib >> attribs) | |
| Construct a new BgpRib6Entry. More... | |
Public Member Functions inherited from libbgp::BgpRibEntry< BgpRib6Entry > | |
| BgpRibEntry () | |
| Construct a new BgpRibEntry. More... | |
| bool | operator> (const BgpRib6Entry &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 | |
| Prefix6 | route |
| The prefix of this entry. | |
| uint8_t | nexthop_global [16] |
| Global IPv6 address of the next hop in network btyes order. | |
| uint8_t | nexthop_linklocal [16] |
| Link local IPv6 address of the next hop in network btyes order. (all 0 if not avaliable) | |
Public Attributes inherited from libbgp::BgpRibEntry< BgpRib6Entry > | |
| 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... | |
The BgpRib6Entry class.
Definition at line 66 of file bgp-rib6.h.
| libbgp::BgpRib6Entry::BgpRib6Entry | ( | Prefix6 | r, |
| uint32_t | src, | ||
| const uint8_t | nexthop_global[16], | ||
| const uint8_t | nexthop_linklocal[16], | ||
| const std::vector< std::shared_ptr< BgpPathAttrib >> | attribs | ||
| ) |
Construct a new BgpRib6Entry.
| r | Route of this entry. |
| src | Originating BGP speaker's ID in network bytes order. |
| nexthop_global | Global IPv6 address of nexthop. |
| nexthop_linklocal | Link local IPv6 address of nexthop. (if none, use NULL) |
| attribs | Path attributes for this entry. |
Definition at line 27 of file bgp-rib6.cc.
References libbgp::BgpRibEntry< BgpRib6Entry >::attribs, libbgp::BgpRibEntry< BgpRib6Entry >::src, and libbgp::BgpRibEntry< BgpRib6Entry >::src_router_id.
1.8.13