Initial implementation of lua flow callback scripts and blacklisted alerts

Partially implements #2842
This commit is contained in:
Simone Mainardi 2019-09-16 18:27:46 +02:00
parent 6f62989869
commit b3d595653e
14 changed files with 476 additions and 10 deletions

View file

@ -462,6 +462,7 @@ class Flow : public GenericHashEntry {
inline void setIDSAlert(json_object *a, u_int8_t severity) { if (ids_alert) json_object_put(ids_alert); ids_alert = a; ids_alert_severity = severity; };
inline json_object *getIDSAlert() { return ids_alert; };
inline u_int8_t getIDSAlertSeverity() { return ids_alert_severity; };
int storeFlowAlert(AlertType alert_type, AlertLevel alert_severity, const char *status_info);
#if defined(NTOPNG_PRO) && !defined(HAVE_NEDGE)
inline void updateProfile() { trafficProfile = iface->getFlowProfile(this); }