ns3-bgp  0.2
BGP module for ns-3.
Public Member Functions | Static Public Member Functions | List of all members
ns3::Bgp Class Reference

The Bgp Application. More...

#include <bgp.h>

Inheritance diagram for ns3::Bgp:
Inheritance graph
[legend]
Collaboration diagram for ns3::Bgp:
Collaboration graph
[legend]

Public Member Functions

void StartApplication (void)
 
void StopApplication (void)
 
void AddPeer (const Peer &peer)
 Add a peer to the BGP application. More...
 
void AddRoute (libbgp::Prefix4 route, uint32_t nexthop)
 Add a route to BGP routing table. More...
 
void AddRoute (uint32_t prefix, uint8_t mask, uint32_t nexthop)
 Add a route to BGP routing table. More...
 
void AddRoute (const Ipv4Address &prefix, const Ipv4Mask &mask, const Ipv4Address &nexthop)
 Add a route to BGP routing table. More...
 
void SetLibbgpLogLevel (libbgp::LogLevel log_level)
 Set libbgp log level. More...
 
void SetBgpId (Ipv4Address bgp_id)
 Set local router ID. More...
 
void SetHoldTimer (Time hold_timer)
 Set local hold timer. More...
 
void SetClockInterval (Time interval)
 Set Tick() interval. More...
 

Static Public Member Functions

static TypeId GetTypeId (void)
 

Detailed Description

The Bgp Application.

Definition at line 77 of file bgp.h.

Member Function Documentation

◆ AddPeer()

void ns3::Bgp::AddPeer ( const Peer peer)

Add a peer to the BGP application.

Parameters
peerPeer to add.

Definition at line 385 of file bgp.cc.

◆ AddRoute() [1/3]

void ns3::Bgp::AddRoute ( libbgp::Prefix4  route,
uint32_t  nexthop 
)

Add a route to BGP routing table.

Parameters
routeThe route.
nexthopNexthop.

Definition at line 396 of file bgp.cc.

◆ AddRoute() [2/3]

void ns3::Bgp::AddRoute ( uint32_t  prefix,
uint8_t  mask,
uint32_t  nexthop 
)

Add a route to BGP routing table.

Parameters
prefixThe prefix of the route in network byte order.
maskThe netmask of the route in CIDR notation.
nexthopNexthop.

Definition at line 408 of file bgp.cc.

◆ AddRoute() [3/3]

void ns3::Bgp::AddRoute ( const Ipv4Address &  prefix,
const Ipv4Mask &  mask,
const Ipv4Address &  nexthop 
)

Add a route to BGP routing table.

Parameters
prefixPrefix of the route.
maskNetmask of the route.
nexthopNexthop of the route.

Definition at line 420 of file bgp.cc.

◆ SetBgpId()

void ns3::Bgp::SetBgpId ( Ipv4Address  bgp_id)

Set local router ID.

Parameters
bgp_idRouter ID.

Definition at line 440 of file bgp.cc.

◆ SetClockInterval()

void ns3::Bgp::SetClockInterval ( Time  interval)

Set Tick() interval.

Parameters
intervalTick interval.

Definition at line 460 of file bgp.cc.

◆ SetHoldTimer()

void ns3::Bgp::SetHoldTimer ( Time  hold_timer)

Set local hold timer.

Parameters
hold_timerHold timer.

Definition at line 450 of file bgp.cc.

◆ SetLibbgpLogLevel()

void ns3::Bgp::SetLibbgpLogLevel ( libbgp::LogLevel  log_level)

Set libbgp log level.

Parameters
log_levelLog level.

Definition at line 430 of file bgp.cc.


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