Added Pragmatic General Multicast (PGM) protocol detection
This commit is contained in:
@@ -73,6 +73,10 @@ void ndpi_search_in_non_tcp_udp(struct ndpi_detection_module_struct
|
||||
set_protocol_and_bmask(NDPI_PROTOCOL_IP_SCTP);
|
||||
break;
|
||||
|
||||
case NDPI_PGM_PROTOCOL_TYPE:
|
||||
set_protocol_and_bmask(NDPI_PROTOCOL_IP_PGM);
|
||||
break;
|
||||
|
||||
case NDPI_OSPF_PROTOCOL_TYPE:
|
||||
set_protocol_and_bmask(NDPI_PROTOCOL_IP_OSPF);
|
||||
break;
|
||||
@@ -146,6 +150,14 @@ void init_non_tcp_udp_dissector(struct ndpi_detection_module_struct *ndpi_struct
|
||||
ADD_TO_DETECTION_BITMASK);
|
||||
*id += 1;
|
||||
|
||||
ndpi_set_bitmask_protocol_detection("IP_PGM", ndpi_struct, detection_bitmask, *id,
|
||||
NDPI_PROTOCOL_IP_PGM,
|
||||
ndpi_search_in_non_tcp_udp,
|
||||
NDPI_SELECTION_BITMASK_PROTOCOL_IPV4_OR_IPV6,
|
||||
NO_SAVE_DETECTION_BITMASK_AS_UNKNOWN,
|
||||
ADD_TO_DETECTION_BITMASK);
|
||||
*id += 1;
|
||||
|
||||
ndpi_set_bitmask_protocol_detection("IP_OSPF", ndpi_struct, detection_bitmask, *id,
|
||||
NDPI_PROTOCOL_IP_OSPF,
|
||||
ndpi_search_in_non_tcp_udp,
|
||||
|
||||
Reference in New Issue
Block a user