libbgp
0.6
A C++ BGP Library.
|
The BGP filtering rules set. More...
#include <bgp-filter.h>
Public Member Functions | |
BgpFilterRules () | |
Construct a new BgpFilterRules rules set. More... | |
BgpFilterRules (BgpFilterOP default_op) | |
Construct a new BgpFilterRules rules set. More... | |
template<typename T > | |
void | append (const BgpFilterRule &rule) |
Append a rule to the rule set. More... | |
BgpFilterOP | apply (const Prefix &prefix, const std::vector< std::shared_ptr< BgpPathAttrib >> &attribs) |
Apply the rules set on a route. More... | |
The BGP filtering rules set.
Definition at line 211 of file bgp-filter.h.
libbgp::BgpFilterRules::BgpFilterRules | ( | ) |
Construct a new BgpFilterRules rules set.
Default action is ACCEPT.
Definition at line 131 of file bgp-filter.cc.
References libbgp::ACCEPT.
libbgp::BgpFilterRules::BgpFilterRules | ( | BgpFilterOP | default_op | ) |
Construct a new BgpFilterRules rules set.
default_op | Default action. |
Definition at line 140 of file bgp-filter.cc.
|
inline |
Append a rule to the rule set.
T | Type of this rule. |
rule | The rule to append. |
Definition at line 224 of file bgp-filter.h.
References libbgp::BgpFilterRule::apply().
BgpFilterOP libbgp::BgpFilterRules::apply | ( | const Prefix & | prefix, |
const std::vector< std::shared_ptr< BgpPathAttrib >> & | attribs | ||
) |
Apply the rules set on a route.
prefix | Route prefix. |
attribs | Path attribues. |
Definition at line 151 of file bgp-filter.cc.
References libbgp::NOP.