mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-05 19:15:03 +00:00
Avoid unnecessary copy of l7 policy
This commit is contained in:
parent
c10dc8f1ac
commit
b574ecd025
3 changed files with 9 additions and 48 deletions
|
|
@ -61,7 +61,6 @@ class Host : public GenericHost, public Checkpointable {
|
|||
NetworkStats *networkStats;
|
||||
char *ssdpLocation, *ssdpLocation_shadow;
|
||||
#ifdef NTOPNG_PRO
|
||||
L7Policy_t *l7Policy, *l7PolicyShadow;
|
||||
bool has_blocking_quota, has_blocking_shaper;
|
||||
HostPoolStats *quota_enforcement_stats, *quota_enforcement_stats_shadow;
|
||||
TrafficShaper **host_traffic_shapers;
|
||||
|
|
@ -192,7 +191,6 @@ class Host : public GenericHost, public Checkpointable {
|
|||
void updateHTTPHostRequest(char *virtual_host_name, u_int32_t num_req, u_int32_t bytes_sent, u_int32_t bytes_rcvd);
|
||||
|
||||
bool match(AddressTree *tree) { return(get_ip() ? get_ip()->match(tree) : false); };
|
||||
void updateHostL7Policy();
|
||||
void updateHostPool(bool isInlineCall);
|
||||
inline bool dropAllTraffic() { return(drop_all_host_traffic); };
|
||||
inline bool dumpHostTraffic() { return(dump_host_traffic); };
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue