libbgp  0.6
A C++ BGP Library.
Public Member Functions | List of all members
libbgp::BgpFilterRuleRoute4 Class Reference

The IPv4 route filtering rule. More...

#include <bgp-filter.h>

Inheritance diagram for libbgp::BgpFilterRuleRoute4:
Inheritance graph
[legend]
Collaboration diagram for libbgp::BgpFilterRuleRoute4:
Collaboration graph
[legend]

Public Member Functions

 BgpFilterRuleRoute4 (BgpFilterOP op, BgpFilterRuleRouteMatchType type, const Prefix4 &prefix)
 Construct a new IPv4 route filtering object. More...
 
- Public Member Functions inherited from libbgp::BgpFilterRuleRoute< Prefix4 >
 BgpFilterRuleRoute ()
 Construct a new BgpFilterRuleRoute object.
 
BgpFilterOP apply (const Prefix &prefix, __attribute__((unused)) const std::vector< std::shared_ptr< BgpPathAttrib >> &attribs)
 
virtual ~BgpFilterRuleRoute ()
 Destroy the BgpFilterRuleRoute object.
 
- Public Member Functions inherited from libbgp::BgpFilterRule
virtual BgpFilterOP apply (const Prefix &prefix, const std::vector< std::shared_ptr< BgpPathAttrib >> &attribs)=0
 Apply the rule on a route. More...
 

Additional Inherited Members

- Public Attributes inherited from libbgp::BgpFilterRuleRoute< Prefix4 >
Prefix4 prefix
 The route prefix.
 
- Public Attributes inherited from libbgp::BgpFilterRule
uint8_t filter_type
 
uint8_t match_type
 
BgpFilterOP op
 

Detailed Description

The IPv4 route filtering rule.

Examples:
route-filter.cc.

Definition at line 148 of file bgp-filter.h.

Constructor & Destructor Documentation

◆ BgpFilterRuleRoute4()

libbgp::BgpFilterRuleRoute4::BgpFilterRuleRoute4 ( BgpFilterOP  op,
BgpFilterRuleRouteMatchType  type,
const Prefix4 prefix 
)

Construct a new IPv4 route filtering object.

Parameters
opAction to take if the prefix matched.
typeType of matching.
prefixPrefix to match.

Definition at line 26 of file bgp-filter.cc.


The documentation for this class was generated from the following files: