diff options
author | Toni Uhlig <matzeton@googlemail.com> | 2021-03-20 14:40:23 +0100 |
---|---|---|
committer | Toni Uhlig <matzeton@googlemail.com> | 2021-03-20 14:40:23 +0100 |
commit | 6f279690573200f1cc6d7e518dd301f163845806 (patch) | |
tree | e09fc4a6cf5969b8bf625c5b7cda3d3c9b95ffb0 /python/ndpi.py | |
parent | ce971e354e62aee65ab268020a505e03619cf6be (diff) |
Removed master protocol as it was only used for STUN and via also removed API function ndpi_get_protocol_id_master_protofix/ndpi-subprotocol-detection-and-refactoring
* Adjusted Python code to conform to the changes made during the refactoring process.
Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
Diffstat (limited to 'python/ndpi.py')
-rw-r--r-- | python/ndpi.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/python/ndpi.py b/python/ndpi.py index c545e7998..f8b2c0a6a 100644 --- a/python/ndpi.py +++ b/python/ndpi.py @@ -716,7 +716,6 @@ struct ndpi_packet_struct { uint64_t current_time_ms; uint16_t detected_protocol_stack[2]; - uint8_t detected_subprotocol_stack[2]; uint16_t protocol_stack_info; struct ndpi_int_one_line_struct line[64]; @@ -870,9 +869,9 @@ typedef enum { typedef struct ndpi_proto_defaults { char *protoName; ndpi_protocol_category_t protoCategory; - uint8_t can_have_a_subprotocol; + u_int16_t * subprotocols; + size_t subprotocol_count; uint16_t protoId, protoIdx; - uint16_t master_tcp_protoId[2], master_udp_protoId[2]; /* The main protocols on which this sub-protocol sits on */ uint16_t tcp_default_ports[5], udp_default_ports[5]; ndpi_protocol_breed_t protoBreed; void (*func) (struct ndpi_detection_module_struct *, struct ndpi_flow_struct *flow); |