|
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 = "icmpv6" |
|
int | l4proto = 58 |
|
bool | custom_parser = False |
|
dictionary | groups |
|
list | supported_keys = [] |
|
|
Union[str, int] | convert_value (str value) |
|
| protocol_data |
|
| device |
|
| rules |
|
◆ parse()
dict protocols.icmpv6.icmpv6.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.
◆ groups
dictionary protocols.icmpv6.icmpv6.groups |
|
static |
Initial value:= {
"multicast": "ff02::/16",
"all-nodes": "ff02::1",
"all-routers": "ff02::2",
"all-mldv2-routers": "ff02::16",
"mdns": "ff02::fb",
"coap": "ff02::158"
}
The documentation for this class was generated from the following file:
- src/translator/protocols/icmpv6.py