Implements flow callbacks and alerts in C++

This commit is contained in:
Simone Mainardi 2021-03-22 09:51:36 +01:00
parent 3659188002
commit aea9138bfb
353 changed files with 10790 additions and 4455 deletions

View file

@ -0,0 +1,41 @@
/*
*
* (C) 2013-21 - ntop.org
*
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software Foundation,
* Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*
*/
#ifndef _REMOTE_TO_LOCAL_INSECURE_PROTO_ALERT_H_
#define _REMOTE_TO_LOCAL_INSECURE_PROTO_ALERT_H_
#include "ntop_includes.h"
class RemoteToLocalInsecureProtoAlert : public FlowAlert {
private:
ndpi_serializer* getAlertJSON(ndpi_serializer* serializer);
public:
static FlowAlertType getClassType() { return { alert_remote_to_local_insecure_proto, alert_category_security }; }
RemoteToLocalInsecureProtoAlert(FlowCallback *c, Flow *f, AlertLevel s) : FlowAlert(c, f, s) {};
~RemoteToLocalInsecureProtoAlert() {};
FlowAlertType getAlertType() const { return getClassType(); }
std::string getName() const { return std::string("remote_to_local_insecure_proto"); }
};
#endif /* _REMOTE_TO_LOCAL_INSECURE_PROTO_ALERT_H_ */