/src/ntopng/include/host_alerts/ServerPortsContactsAlert.h
Line | Count | Source |
1 | | #ifndef _SERVER_PORTS_CONTACTS_ALERT_H_ |
2 | | #define _SERVER_PORTS_CONTACTS_ALERT_H_ |
3 | | |
4 | | #include "ntop_includes.h" |
5 | | |
6 | | class ServerPortsContactsAlert : public HostAlert { |
7 | | private: |
8 | | u_int16_t server_port; |
9 | | u_int16_t app_proto; |
10 | | |
11 | | ndpi_serializer* getAlertJSON(ndpi_serializer* serializer); |
12 | | |
13 | | public: |
14 | | ServerPortsContactsAlert(HostCheck* c, Host* f, risk_percentage cli_pctg, |
15 | | u_int16_t _server_port, u_int16_t _app_proto); |
16 | 0 | ~ServerPortsContactsAlert() {} |
17 | | |
18 | 0 | static HostAlertType getClassType() { |
19 | 0 | return {host_alert_server_ports_contacts, alert_category_security}; |
20 | 0 | } |
21 | 0 | HostAlertType getAlertType() const { return getClassType(); } |
22 | 0 | u_int8_t getAlertScore() const { return SCORE_LEVEL_WARNING; }; |
23 | | }; |
24 | | |
25 | | #endif /* _SERVER_PORTS_CONTACTS_ALERT_H_ */ |