|
libbgp
0.6
A C++ BGP Library.
|
The AS_PATH filtering rule. More...
#include <bgp-filter.h>


Public Member Functions | |
| BgpFilterRuleAsPath (BgpFilterOP op, BgpFilterRuleAsPathMatchType type, uint32_t asn) | |
| Construct a new AS_PATH filtering object. More... | |
| BgpFilterOP | apply (const Prefix &prefix, const std::vector< std::shared_ptr< BgpPathAttrib >> &attribs) |
| Apply the rule on a route. More... | |
Public Attributes | |
| uint32_t | asn |
| The ASN of this entry. | |
Public Attributes inherited from libbgp::BgpFilterRule | |
| uint8_t | filter_type |
| uint8_t | match_type |
| BgpFilterOP | op |
The AS_PATH filtering rule.
Definition at line 166 of file bgp-filter.h.
| libbgp::BgpFilterRuleAsPath::BgpFilterRuleAsPath | ( | BgpFilterOP | op, |
| BgpFilterRuleAsPathMatchType | type, | ||
| uint32_t | asn | ||
| ) |
Construct a new AS_PATH filtering object.
| op | Action to take if the asn matched. |
| type | Type of matching. |
| asn | ASN to match. |
Definition at line 52 of file bgp-filter.cc.
|
virtual |
Apply the rule on a route.
| prefix | Route prefix. |
| attribs | Path attribues. |
Implements libbgp::BgpFilterRule.
Definition at line 58 of file bgp-filter.cc.
1.8.13