|
| dict | parse (self, bool is_backward=False, str initiator="src") |
| |
| None | __init__ (self, dict protocol_data, dict device) |
| |
| Protocol | init_protocol (c, str protocol_name, dict protocol_data, dict device) |
| |
| str | format_list (self, list l, func=lambda x:x) |
| |
| None | add_field (self, str field, dict template_rules, bool is_backward=False, func=lambda x:x, backward_func=lambda x:x) |
| |
|
|
int | layer = 4 |
| |
|
string | protocol_name = "icmp" |
| |
|
int | l4proto = 1 |
| |
|
bool | custom_parser = False |
| |
| list | supported_keys |
| |
|
| Union[str, int] | convert_value (str value) |
| |
|
| protocol_data |
| |
|
| device |
| |
|
| rules |
| |
◆ parse()
| dict protocols.icmp.icmp.parse |
( |
|
self, |
|
|
bool |
is_backward = False, |
|
|
str |
initiator = "src" |
|
) |
| |
Parse the ICMP protocol.
:param is_backward (optional): Whether the protocol must be parsed for a backward rule.
Optional, default is `False`.
:param initiator (optional): Connection initiator (src or dst).
Optional, default is "src".
:return: Dictionary containing the (forward and backward) nftables and nfqueue rules for this policy.
Reimplemented from protocols.Protocol.Protocol.
◆ supported_keys
| list protocols.icmp.icmp.supported_keys |
|
static |
The documentation for this class was generated from the following file:
- src/translator/protocols/icmp.py