mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-25 14:36:28 +00:00
Unify serialization to redis and implement VLAN/AS serialization (#2610)
This commit is contained in:
parent
a6037e96c3
commit
c09199690f
16 changed files with 245 additions and 201 deletions
|
|
@ -33,11 +33,15 @@ AutonomousSystem::AutonomousSystem(NetworkInterface *_iface, IpAddress *ipa) : G
|
|||
#ifdef AS_DEBUG
|
||||
ntop->getTrace()->traceEvent(TRACE_NORMAL, "Created Autonomous System %u", asn);
|
||||
#endif
|
||||
|
||||
deserializeFromRedis();
|
||||
}
|
||||
|
||||
/* *************************************** */
|
||||
|
||||
AutonomousSystem::~AutonomousSystem() {
|
||||
serializeToRedis();
|
||||
|
||||
if(asname) free(asname);
|
||||
/* TODO: decide if it is useful to dump AS stats to redis */
|
||||
#ifdef AS_DEBUG
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue