OpenSDN source code
|
#include <acl_entry_match.h>
Public Types | |
enum | AddressType { IP_ADDR = 1, NETWORK_ID = 2, SG = 3, TAGS = 4, ADDRESS_GROUP = 5, UNKNOWN_TYPE = 6 } |
typedef boost::uuids::uuid | uuid |
![]() | |
enum | Type { SOURCE_PORT_MATCH, DESTINATION_PORT_MATCH, PROTOCOL_MATCH, ADDRESS_MATCH, SERVICE_GROUP_MATCH, TAGS_MATCH } |
Public Member Functions | |
AddressMatch () | |
~AddressMatch () | |
void | SetSource (bool src) |
void | SetNetworkID (const uuid id) |
void | SetNetworkIDStr (const std::string id) |
void | SetSGId (const uint32_t id) |
void | SetTags (const TagList &tags) |
void | SetAddressGroup (const std::vector< AclAddressInfo > &list, const TagList &tags) |
const TagList & | tags () const |
void | SetIPAddress (const std::vector< AclAddressInfo > &list) |
bool | Match (const PacketHeader *packet_header, FlowPolicyInfo *info) const |
void | SetAclEntryMatchSandeshData (AclEntrySandeshData &data) |
virtual bool | Compare (const AclEntryMatch &rhs) const |
size_t | ip_list_size () const |
![]() | |
AclEntryMatch (Type type) | |
virtual | ~AclEntryMatch () |
bool | operator== (const AclEntryMatch &rhs) const |
Static Public Member Functions | |
static std::string | BuildIpMaskList (const std::vector< AclAddressInfo > &list) |
static std::string | BuildTags (const TagList &list) |
Static Public Attributes | |
static const int | kAny = -1 |
Private Member Functions | |
bool | SGMatch (const SecurityGroupList &sg_l, int id) const |
bool | SGMatch (const SecurityGroupList *sg_l, int id) const |
bool | TagsMatch (const TagList &tags) const |
bool | TagsMatchAG (const TagList &tags) const |
bool | AddressGroupMatch (const IpAddress &ip, const TagList &tags) const |
Private Attributes | |
AddressType | addr_type_ |
bool | src_ |
std::vector< AclAddressInfo > | ip_list_ |
uuid | policy_id_ |
std::string | policy_id_s_ |
int | sg_id_ |
TagList | tags_ |
Definition at line 198 of file acl_entry_match.h.
typedef boost::uuids::uuid AddressMatch::uuid |
Definition at line 200 of file acl_entry_match.h.
Enumerator | |
---|---|
IP_ADDR | |
NETWORK_ID | |
SG | |
TAGS | |
ADDRESS_GROUP | |
UNKNOWN_TYPE |
Definition at line 203 of file acl_entry_match.h.
|
inline |
Definition at line 212 of file acl_entry_match.h.
|
inline |
Definition at line 213 of file acl_entry_match.h.
|
static |
Definition at line 624 of file acl_entry.cc.
|
static |
Definition at line 641 of file acl_entry.cc.
|
virtual |
Implements AclEntryMatch.
Definition at line 578 of file acl_entry.cc.
|
inline |
Definition at line 242 of file acl_entry_match.h.
|
virtual |
Implements AclEntryMatch.
Definition at line 522 of file acl_entry.cc.
|
virtual |
Implements AclEntryMatch.
Definition at line 660 of file acl_entry.cc.
void AddressMatch::SetAddressGroup | ( | const std::vector< AclAddressInfo > & | list, |
const TagList & | tags | ||
) |
void AddressMatch::SetIPAddress | ( | const std::vector< AclAddressInfo > & | list | ) |
Definition at line 344 of file acl_entry.cc.
void AddressMatch::SetNetworkID | ( | const uuid | id | ) |
Definition at line 357 of file acl_entry.cc.
void AddressMatch::SetNetworkIDStr | ( | const std::string | id | ) |
Definition at line 363 of file acl_entry.cc.
void AddressMatch::SetSGId | ( | const uint32_t | id | ) |
Definition at line 369 of file acl_entry.cc.
void AddressMatch::SetSource | ( | bool | src | ) |
Definition at line 375 of file acl_entry.cc.
|
inline |
|
private |
Definition at line 397 of file acl_entry.cc.
|
private |
Definition at line 380 of file acl_entry.cc.
|
inline |
Definition at line 230 of file acl_entry_match.h.
|
private |
Definition at line 410 of file acl_entry.cc.
|
private |
Definition at line 440 of file acl_entry.cc.
|
private |
Definition at line 246 of file acl_entry_match.h.
|
private |
Definition at line 250 of file acl_entry_match.h.
|
static |
Definition at line 201 of file acl_entry_match.h.
|
private |
Definition at line 252 of file acl_entry_match.h.
|
private |
Definition at line 253 of file acl_entry_match.h.
|
private |
Definition at line 254 of file acl_entry_match.h.
|
private |
Definition at line 247 of file acl_entry_match.h.
|
private |
Definition at line 255 of file acl_entry_match.h.