libbgp  0.6
A C++ BGP Library.
Public Member Functions | Public Attributes | List of all members
libbgp::BgpRib6Entry Class Reference

The BgpRib6Entry class. More...

#include <bgp-rib6.h>

Inheritance diagram for libbgp::BgpRib6Entry:
Inheritance graph
[legend]
Collaboration diagram for libbgp::BgpRib6Entry:
Collaboration graph
[legend]

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...
 

Detailed Description

The BgpRib6Entry class.

Definition at line 66 of file bgp-rib6.h.

Constructor & Destructor Documentation

◆ BgpRib6Entry()

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.

Parameters
rRoute of this entry.
srcOriginating BGP speaker's ID in network bytes order.
nexthop_globalGlobal IPv6 address of nexthop.
nexthop_linklocalLink local IPv6 address of nexthop. (if none, use NULL)
attribsPath 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.


The documentation for this class was generated from the following files: