From b81592e49f22a2a1b79e487ede408023cb99d824 Mon Sep 17 00:00:00 2001 From: Simone Mainardi Date: Mon, 30 Sep 2019 20:04:42 +0200 Subject: [PATCH] nEdge compilation fixes --- include/Flow.h | 2 +- include/Host.h | 2 +- include/LocalHost.h | 2 +- src/Flow.cpp | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/include/Flow.h b/include/Flow.h index 2d0163d7b5..af7bcbf704 100644 --- a/include/Flow.h +++ b/include/Flow.h @@ -297,7 +297,7 @@ class Flow : public GenericHashEntry { inline u_int8_t getTcpFlagsSrv2Cli() const { return(dst2src_tcp_flags); }; #ifdef HAVE_NEDGE bool checkPassVerdict(const struct tm *now); - bool isPassVerdict(); + bool isPassVerdict() const; inline void setConntrackMarker(u_int32_t marker) { this->marker = marker; } inline u_int32_t getConntrackMarker() { return(marker); } #endif diff --git a/include/Host.h b/include/Host.h index 6e5178ea39..eb38ff546d 100644 --- a/include/Host.h +++ b/include/Host.h @@ -267,7 +267,7 @@ class Host : public GenericHashEntry, public AlertableEntity { bool match(const AddressTree * const tree) const { return ip.match(tree); }; void updateHostPool(bool isInlineCall, bool firstUpdate = false); - virtual bool dropAllTraffic() { return(false); }; + virtual bool dropAllTraffic() const { return(false); }; bool incFlowAlertHits(time_t when); virtual bool setRemoteToRemoteAlerts() { return(false); }; virtual void incrVisitedWebSite(char *hostname) {}; diff --git a/include/LocalHost.h b/include/LocalHost.h index 506cb1516b..4a59bd0329 100644 --- a/include/LocalHost.h +++ b/include/LocalHost.h @@ -65,7 +65,7 @@ class LocalHost : public Host, public SerializableElement { virtual u_int32_t getActiveHTTPHosts() { return(getHTTPstats() ? getHTTPstats()->get_num_virtual_hosts() : 0); }; virtual HostStats* allocateStats() { return(new LocalHostStats(this)); }; - virtual bool dropAllTraffic() { return(drop_all_host_traffic); }; + virtual bool dropAllTraffic() const { return(drop_all_host_traffic); }; virtual void inlineSetOSDetail(const char *_os_detail); virtual const char* getOSDetail(char * const buf, ssize_t buf_len); virtual void updateHostTrafficPolicy(char *key); diff --git a/src/Flow.cpp b/src/Flow.cpp index 960fb8e8b4..3c100b0944 100644 --- a/src/Flow.cpp +++ b/src/Flow.cpp @@ -3493,7 +3493,7 @@ void Flow::dissectSSDP(bool src2dst_direction, char *payload, u_int16_t payload_ #ifdef HAVE_NEDGE -bool Flow::isPassVerdict() { +bool Flow::isPassVerdict() const { if(!passVerdict) return(false);