libbgp
0.6
A C++ BGP Library.
|
The COMMUNITY filtering rule. More...
#include <bgp-filter.h>
Public Member Functions | |
BgpFilterRuleCommunity (BgpFilterOP op, BgpFilterRuleCommunityMatchType type, uint16_t asn, uint16_t keyword) | |
Construct a new COMMUNITY filtering object. More... | |
BgpFilterRuleCommunity (BgpFilterOP op, BgpFilterRuleCommunityMatchType type, uint32_t community) | |
Construct a new COMMUNITY 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 | community |
community for this entry. | |
Public Attributes inherited from libbgp::BgpFilterRule | |
uint8_t | filter_type |
uint8_t | match_type |
BgpFilterOP | op |
The COMMUNITY filtering rule.
Definition at line 193 of file bgp-filter.h.
libbgp::BgpFilterRuleCommunity::BgpFilterRuleCommunity | ( | BgpFilterOP | op, |
BgpFilterRuleCommunityMatchType | type, | ||
uint16_t | asn, | ||
uint16_t | keyword | ||
) |
Construct a new COMMUNITY filtering object.
op | Action to take if community matched. |
type | Type of matching. |
asn | ASN part of the community. 'AAAA' in (AAAA:BBBB) |
keyword | keyword part of the community. 'BBBB' in (AAAA:BBBB) |
Definition at line 89 of file bgp-filter.cc.
libbgp::BgpFilterRuleCommunity::BgpFilterRuleCommunity | ( | BgpFilterOP | op, |
BgpFilterRuleCommunityMatchType | type, | ||
uint32_t | community | ||
) |
Construct a new COMMUNITY filtering object.
op | Action to take if community matched. |
type | Type of matching. |
community | Raw community value in host-byte order. |
Definition at line 104 of file bgp-filter.cc.
|
virtual |
Apply the rule on a route.
prefix | Route prefix. |
attribs | Path attribues. |
Implements libbgp::BgpFilterRule.
Definition at line 110 of file bgp-filter.cc.