|
| dict | parse (self, bool is_backward=False, str initiator="src") |
| |
| None | add_field (self, str field, dict template_rules, bool is_backward=False, func=lambda x:x, backward_func=lambda x:x) |
| |
| 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) |
| |
|
|
int | layer = 4 |
| |
|
string | protocol_name = "igmp" |
| |
|
int | l4proto = 2 |
| |
|
bool | custom_parser = True |
| |
| list | supported_keys |
| |
| dictionary | groups |
| |
|
bool | custom_parser = True |
| |
|
| dict | build_nfq_list_match (list l, dict template_rules, bool is_backward=False, func=lambda x:x, backward_func=lambda x:x) |
| |
| Union[str, int] | convert_value (str value) |
| |
|
| protocol_data |
| |
|
| device |
| |
|
| rules |
| |
◆ parse()
| dict protocols.igmp.igmp.parse |
( |
|
self, |
|
|
bool |
is_backward = False, |
|
|
str |
initiator = "src" |
|
) |
| |
Parse the IGMP 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.igmp.igmp.groups |
|
static |
Initial value:= {
"all": "224.0.0.2",
"mdns": "224.0.0.251",
"ssdp": "239.255.255.250",
"coap": "224.0.1.187"
}
◆ supported_keys
| list protocols.igmp.igmp.supported_keys |
|
static |
Initial value:= [
"version",
'type',
'group'
]
The documentation for this class was generated from the following file:
- src/translator/protocols/igmp.py