OpenSDN source code
PortMatch Class Referenceabstract

#include <acl_entry_match.h>

Inheritance diagram for PortMatch:
Collaboration diagram for PortMatch:

Public Member Functions

 PortMatch (Type type)
 
 ~PortMatch ()
 
void SetPortRange (const uint16_t min_port, const uint16_t max_port)
 
void SetAclEntryMatchSandeshData (AclEntrySandeshData &data)=0
 
virtual bool Match (const PacketHeader *packet_header, FlowPolicyInfo *info) const =0
 
virtual bool Compare (const AclEntryMatch &rhs) const
 
bool CheckPortRanges (const uint16_t min_port, const uint16_t max_port) const
 
- Public Member Functions inherited from AclEntryMatch
 AclEntryMatch (Type type)
 
virtual ~AclEntryMatch ()
 
bool operator== (const AclEntryMatch &rhs) const
 

Protected Attributes

RangeSList port_ranges_
 

Additional Inherited Members

- Public Types inherited from AclEntryMatch
enum  Type {
  SOURCE_PORT_MATCH , DESTINATION_PORT_MATCH , PROTOCOL_MATCH , ADDRESS_MATCH ,
  SERVICE_GROUP_MATCH , TAGS_MATCH
}
 

Detailed Description

Definition at line 89 of file acl_entry_match.h.

Constructor & Destructor Documentation

◆ PortMatch()

PortMatch::PortMatch ( Type  type)
inline

Definition at line 91 of file acl_entry_match.h.

◆ ~PortMatch()

PortMatch::~PortMatch ( )
inline

Definition at line 92 of file acl_entry_match.h.

Member Function Documentation

◆ CheckPortRanges()

bool PortMatch::CheckPortRanges ( const uint16_t  min_port,
const uint16_t  max_port 
) const

Definition at line 913 of file acl_entry.cc.

◆ Compare()

bool PortMatch::Compare ( const AclEntryMatch rhs) const
virtual

Implements AclEntryMatch.

Definition at line 925 of file acl_entry.cc.

◆ Match()

virtual bool PortMatch::Match ( const PacketHeader packet_header,
FlowPolicyInfo info 
) const
pure virtual

Implements AclEntryMatch.

Implemented in DstPortMatch, and SrcPortMatch.

◆ SetAclEntryMatchSandeshData()

void PortMatch::SetAclEntryMatchSandeshData ( AclEntrySandeshData &  data)
pure virtual

Implements AclEntryMatch.

Implemented in DstPortMatch, and SrcPortMatch.

◆ SetPortRange()

void PortMatch::SetPortRange ( const uint16_t  min_port,
const uint16_t  max_port 
)

Definition at line 907 of file acl_entry.cc.

Member Data Documentation

◆ port_ranges_

RangeSList PortMatch::port_ranges_
protected

Definition at line 101 of file acl_entry_match.h.


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