Added the ability to define a custom DGA detection function by overwriting
the value of the function pointer ndpi_dga_function curently set to NULL (that means the nDPI internal DGA function will be used)
This commit is contained in:
@@ -47,7 +47,12 @@ extern "C" {
|
||||
#define SAVE_DETECTION_BITMASK_AS_UNKNOWN 1
|
||||
#define NO_SAVE_DETECTION_BITMASK_AS_UNKNOWN 0
|
||||
|
||||
|
||||
/*
|
||||
In case a custom DGA function is used, the fucntion
|
||||
below must be overwritten,
|
||||
*/
|
||||
extern ndpi_custom_dga_predict_fctn ndpi_dga_function;
|
||||
|
||||
/**
|
||||
* Check if a string is encoded with punycode
|
||||
* ( https://tools.ietf.org/html/rfc3492 )
|
||||
|
||||
@@ -1662,6 +1662,9 @@ struct ndpi_hw_struct {
|
||||
double *s;
|
||||
};
|
||||
|
||||
/* Prototype used to define custom DGA detection function */
|
||||
typedef int (*ndpi_custom_dga_predict_fctn)(const char* domain, int domain_length);
|
||||
|
||||
/* **************************************** */
|
||||
|
||||
#endif /* __NDPI_TYPEDEFS_H__ */
|
||||
|
||||
Reference in New Issue
Block a user