|
EpcTools
An event based multi-threaded C++ development framework.
|
Represents an IPFilterRule as defined by RFC 6733. More...
#include <eip.h>
Classes | |
| class | Established |
| Represents an IPFilterRule "established" option. More... | |
| class | Fragment |
| Represents an IPFilterRule "frag" option. More... | |
| class | IcmpTypes |
| Represents an IPFilterRule "icmptypes" option. More... | |
| class | IpOptions |
| Represents an IPFilterRule "ipoptions" option. More... | |
| class | Option |
| The base class for IPFilterRule options. More... | |
| class | Port |
| Represents a single port or a range of ports. More... | |
| class | Setup |
| Represents an IPFilterRule "setup" option. More... | |
| class | TcpFlags |
| Represents an IPFilterRule "tcpflags" option. More... | |
| class | TcpOptions |
| Represents an IPFilterRule "tcpoptions" option. More... | |
Public Member Functions | |
| EIpFilterRule () | |
| Default constructor. More... | |
| EIpFilterRule (cpChar raw) | |
| Class constructor. More... | |
| EIpFilterRule (const EIpFilterRule &r) | |
| Copy constructor. More... | |
| EIpFilterRule & | operator= (const EIpFilterRule &r) |
| Assignment operator. More... | |
| EIpFilterRule & | operator= (const std::string &r) |
| Assignment operator. More... | |
| EIpFilterRule & | operator= (cpStr r) |
| Assignment operator. More... | |
| const EString & | original () const |
| The original IPFilterRule string. More... | |
| const Action | action () const |
| Returns the action for this IPFilterRule. More... | |
| const Direction | direction () const |
| Returns the direction for this IPFilterRule. More... | |
| const Protocol | protocol () const |
| Returns the protocol for this IPFilterRule. More... | |
| const EIpAddress & | source () const |
| Returns the source IP address. More... | |
| const PortVec & | sourcePorts () const |
| Returns the collection of source ports. More... | |
| const EIpAddress & | destination () const |
| Returns the destination IP address. More... | |
| const PortVec & | destinationPorts () const |
| Returns the collection of destination ports. More... | |
| const OptionPtrVec & | options () const |
| Returns a collection of options. More... | |
| EIpFilterRule & | setAction (Action action) |
| Sets the action for this IPFilterRule. More... | |
| EIpFilterRule & | setDirection (Direction dir) |
| Sets the direction for this IPFilterRule. More... | |
| EIpFilterRule & | setProtocol (Protocol proto) |
| Sets the protocol for this IPFilterRule. More... | |
| EIpFilterRule & | setSource (const EIpAddress &src) |
| Sets the source IP address for this IPFilterRule. More... | |
| EIpFilterRule & | setDestination (const EIpAddress &dst) |
| Sets the destination IP address for this IPFilterRule. More... | |
| EIpFilterRule & | addSourcePort (UShort first=0, UShort last=0) |
| Sets the source port for this IPFilterRule. More... | |
| EIpFilterRule & | addSourcePort (const Port &p) |
| Sets the source port for this IPFilterRule. More... | |
| EIpFilterRule & | addDestinationPort (UShort first=0, UShort last=0) |
| Sets the destination port for this IPFilterRule. More... | |
| EIpFilterRule & | addDestinationPort (const Port &p) |
| Sets the destination port for this IPFilterRule. More... | |
| EIpFilterRule & | parse (cpChar raw) |
| Parses the IPFilterRule definition. More... | |
| EIpFilterRule & | parse (const std::string &raw) |
| Parses the IPFilterRule definition. More... | |
| Void | dump (cpStr padding="") |
| Prints the contents of the current EIpFilterRule object to stdout. More... | |
| EString | final () |
| Reconstructs the string version of the IPFilterRule based on the parsed data. More... | |
| EIpFilterRule & | setOriginal (cpChar orig) |
| Sets the original string value. More... | |
| EIpFilterRule & | setOriginal (const EString &orig) |
| EIpFilterRule & | setOriginal (const std::string &orig) |
Represents an IPFilterRule as defined by RFC 6733.
| typedef std::shared_ptr<Option> EIpFilterRule::OptionPtr |
| typedef std::vector<OptionPtr> EIpFilterRule::OptionPtrVec |
| typedef std::vector<Port> EIpFilterRule::PortVec |
|
strong |
|
strong |
|
strong |
|
strong |
|
inline |
Default constructor.
|
inline |
Class constructor.
| raw | a null terminated string of the IPFilterRule definition. |
|
inline |
Copy constructor.
| r | the EIpFilterRule object to copy. |
|
inline |
Returns the action for this IPFilterRule.
|
inline |
Sets the destination port for this IPFilterRule.
| first | the starting destination port for this IPFilterRule. |
| last | the ending destination port for this IPFilterRule. |
|
inline |
Sets the destination port for this IPFilterRule.
| p | the destination Port object to copy. |
|
inline |
Sets the source port for this IPFilterRule.
| first | the starting source port for this IPFilterRule. |
| last | the ending source port for this IPFilterRule. |
|
inline |
Sets the source port for this IPFilterRule.
| p | the source Port object to copy. |
|
inline |
Returns the destination IP address.
|
inline |
Returns the collection of destination ports.
|
inline |
Returns the direction for this IPFilterRule.
| Void EIpFilterRule::dump | ( | cpStr | padding = "" | ) |
Prints the contents of the current EIpFilterRule object to stdout.
| padding | prepends the "padding" string to each line output. |
| EString EIpFilterRule::final | ( | ) |
Reconstructs the string version of the IPFilterRule based on the parsed data.
|
inline |
Assignment operator.
| r | the EIpFilterRule object to copy. |
|
inline |
Assignment operator.
| r | a string object containing the IPFilterRule definition to parse. |
|
inline |
Assignment operator.
| r | a NULL terminated string containing the IPFilterRule definition to parse. |
|
inline |
Returns a collection of options.
|
inline |
The original IPFilterRule string.
|
inline |
Parses the IPFilterRule definition.
| raw | the NULL terminated string to parse. |
| EIpFilterRule & EIpFilterRule::parse | ( | const std::string & | raw | ) |
Parses the IPFilterRule definition.
| raw | the string object containing the IPFilterRule definition. |
|
inline |
Returns the protocol for this IPFilterRule.
|
inline |
Sets the action for this IPFilterRule.
| action | the action for this IPFilterRule. |
|
inline |
Sets the destination IP address for this IPFilterRule.
| dst | the destination IP address for this IPFilterRule. |
|
inline |
Sets the direction for this IPFilterRule.
| dir | the direction for this IPFilterRule. |
|
inline |
Sets the original string value.
| orig | the original string value. |
|
inline |
|
inline |
|
inline |
Sets the protocol for this IPFilterRule.
| proto | the protocol for this IPFilterRule. |
|
inline |
Sets the source IP address for this IPFilterRule.
| src | the source IP address for this IPFilterRule. |
|
inline |
Returns the source IP address.
|
inline |
Returns the collection of source ports.
1.8.11