OpenSDN source code
BgpAttrNextHop Struct Reference

#include <bgp_attr.h>

Inheritance diagram for BgpAttrNextHop:
Collaboration diagram for BgpAttrNextHop:

Public Member Functions

 BgpAttrNextHop ()
 
 BgpAttrNextHop (const BgpAttribute &rhs)
 
 BgpAttrNextHop (uint32_t nexthop)
 
 BgpAttrNextHop (Ip4Address v4_nexthop)
 
 BgpAttrNextHop (Ip6Address v6_nexthop)
 
 BgpAttrNextHop (IpAddress ip_nexthop)
 
virtual int CompareTo (const BgpAttribute &rhs_attr) const
 
virtual void ToCanonical (BgpAttr *attr)
 
virtual std::string ToString () const
 
- Public Member Functions inherited from BgpAttribute
 BgpAttribute ()
 
 BgpAttribute (uint8_t code, uint8_t flags)
 
 BgpAttribute (uint8_t code, uint8_t subcode, uint8_t flags)
 
virtual size_t EncodeLength () const
 
uint8_t GetEncodeFlags () const
 
- Public Member Functions inherited from ParseObject
virtual ~ParseObject ()
 

Public Attributes

uint32_t nexthop
 
Ip6Address v6_nexthop
 
- Public Attributes inherited from BgpAttribute
uint8_t code
 
uint8_t subcode
 
uint8_t flags
 

Static Public Attributes

static const int kSize = 4
 
static const uint8_t kFlags = Transitive
 
- Static Public Attributes inherited from BgpAttribute
static const uint8_t FLAG_MASK = Optional|Transitive
 

Additional Inherited Members

- Public Types inherited from BgpAttribute
enum  Flag { Optional = 1 << 7 , Transitive = 1 << 6 , Partial = 1 << 5 , ExtendedLength = 1 << 4 }
 
enum  Code {
  Reserved = 0 , Origin = 1 , AsPath = 2 , NextHop = 3 ,
  MultiExitDisc = 4 , LocalPref = 5 , AtomicAggregate = 6 , Aggregator = 7 ,
  Communities = 8 , OriginatorId = 9 , ClusterList = 10 , MPReachNlri = 14 ,
  MPUnreachNlri = 15 , ExtendedCommunities = 16 , As4Path = 17 , As4Aggregator = 18 ,
  PmsiTunnel = 22 , McastEdgeDiscovery = 241 , McastEdgeForwarding = 242 , OriginVnPath = 243
}
 
enum  Subcode {
  OList = 1 , LabelBlock = 2 , SourceRd = 3 , Esi = 4 ,
  Params = 5 , LeafOList = 6 , SubProtocol = 7
}
 

Detailed Description

Definition at line 61 of file bgp_attr.h.

Constructor & Destructor Documentation

◆ BgpAttrNextHop() [1/6]

BgpAttrNextHop::BgpAttrNextHop ( )
inline

Definition at line 64 of file bgp_attr.h.

◆ BgpAttrNextHop() [2/6]

BgpAttrNextHop::BgpAttrNextHop ( const BgpAttribute rhs)
inlineexplicit

Definition at line 65 of file bgp_attr.h.

◆ BgpAttrNextHop() [3/6]

BgpAttrNextHop::BgpAttrNextHop ( uint32_t  nexthop)
inlineexplicit

Definition at line 68 of file bgp_attr.h.

◆ BgpAttrNextHop() [4/6]

BgpAttrNextHop::BgpAttrNextHop ( Ip4Address  v4_nexthop)
inlineexplicit

Definition at line 70 of file bgp_attr.h.

◆ BgpAttrNextHop() [5/6]

BgpAttrNextHop::BgpAttrNextHop ( Ip6Address  v6_nexthop)
inlineexplicit

Definition at line 72 of file bgp_attr.h.

◆ BgpAttrNextHop() [6/6]

BgpAttrNextHop::BgpAttrNextHop ( IpAddress  ip_nexthop)
inlineexplicit

Definition at line 74 of file bgp_attr.h.

Member Function Documentation

◆ CompareTo()

int BgpAttrNextHop::CompareTo ( const BgpAttribute rhs_attr) const
virtual

Reimplemented from BgpAttribute.

Definition at line 39 of file bgp_attr.cc.

Here is the call graph for this function:

◆ ToCanonical()

void BgpAttrNextHop::ToCanonical ( BgpAttr attr)
virtual

Reimplemented from BgpAttribute.

Definition at line 47 of file bgp_attr.cc.

Here is the call graph for this function:

◆ ToString()

string BgpAttrNextHop::ToString ( ) const
virtual

Reimplemented from BgpAttribute.

Definition at line 55 of file bgp_attr.cc.

Member Data Documentation

◆ kFlags

const uint8_t BgpAttrNextHop::kFlags = Transitive
static

Definition at line 63 of file bgp_attr.h.

◆ kSize

const int BgpAttrNextHop::kSize = 4
static

Definition at line 62 of file bgp_attr.h.

◆ nexthop

uint32_t BgpAttrNextHop::nexthop

Definition at line 82 of file bgp_attr.h.

◆ v6_nexthop

Ip6Address BgpAttrNextHop::v6_nexthop

Definition at line 83 of file bgp_attr.h.


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