class Peer

RIP Peer. More...

 
LOGO
 Annotated List  Files  Globals  Hierarchy  Index  Top

Public Types

Public Methods

Protected Methods

Protected Members


Detailed Description

A RIP peer is a host that sent RIP packets, originating routes, to the local RIP Port (Port<A>) that have originated routes. Most of a Peer's work is conducted by the Port associated with the Peer instance. The Peer class just acts as a container of information about the Peer host, such as the number of packets sent, the time of last update, etc. It also contains the original routes as received from the Peer host. Those routes are used to push them whenever the routing policy is modified.

typedef A Addr

Addr

typedef Port<A> RipPort

RipPort

typedef RouteEntry<A> Route

Route

 Peer (RipPort& p, const Addr& addr)

Peer

 ~Peer ()

~Peer

const Addr&  address ()

address

[const]

Get address of Peer.

PeerCounters&  counters ()

counters

Get counters associated with Peer.

const PeerCounters&  counters ()

counters

[const]

Get counters associated with Peer.

RipPort&  port ()

port

Get port associated with Peer.

const RipPort&  port ()

port

[const]

Get port associated with Peer.

void  set_last_active (const TimeVal& t)

set_last_active

Set last active time.

const TimeVal&  last_active ()

last_active

[const]

Get last active time.

bool  update_route (const IPNet<A>& net, const A& nexthop, uint32_t cost, uint32_t tag, const PolicyTags& policytags)

update_route

Update Route Entry in database for specified route.

Parameters:

netthe network route being updated.
nexthopthe corresponding nexthop address.
costthe corresponding metric value as received from the route originator.
tagthe corresponding route tag.
policytagsthe policytags of this route.

Returns: true if an update occurs, false otherwise.

void  push_routes ()

push_routes

Push routes through the system.

This is needed to apply the policy filters for re-filtering.

uint32_t  expiry_secs ()

expiry_secs

[const]

Reimplemented from RouteEntryOrigin.

uint32_t  deletion_secs ()

deletion_secs

[const]

Reimplemented from RouteEntryOrigin.

void  set_expiry_timer (Route* route)

set_expiry_timer

[protected]

void  expire_route (Route* route)

expire_route

[protected]

RipPort& _port

_port

[protected]

Addr _addr

_addr

[protected]

PeerCounters _counters

_counters

[protected]

TimeVal _last_active

_last_active

[protected]

PeerRoutes<A> _peer_routes

_peer_routes

[protected]


Generated by: bms on anglepoise.lon.incunabulum.net on Wed Jul 23 10:06:09 2008, using kdoc 2.0a54+XORP.