xorp

NexthopRewriteFilter< A > Class Template Reference

BGPRouteFilter that changes the nexthop attribute in a route. More...

#include <route_table_filter.hh>

Inheritance diagram for NexthopRewriteFilter< A >:
BGPRouteFilter< A >

List of all members.

Public Member Functions

 NexthopRewriteFilter (const A &local_nexthop, bool directly_connected, const IPNet< A > &subnet)
bool filter (InternalMessage< A > &rtmsg) const

Private Attributes

_local_nexthop
bool _directly_connected
IPNet< A > _subnet

Detailed Description

template<class A>
class NexthopRewriteFilter< A >

BGPRouteFilter that changes the nexthop attribute in a route.

NexthopRewriteFilter is a BGPRouteFilter that changes the nexthop attribute in a route passing though the filter. A typicaly use is when passing a route to an EBGP peer, we change the nexthop attribute to be our own IP address on the appropriate interface to that peer. If the EBGP peer is on the the same subnet as the router and the NEXT_HOP is on the same subnet the NEXT_HOP should not be rewritten.


The documentation for this class was generated from the following files:
 All Classes Namespaces Functions Variables Typedefs Enumerations