micro/network
Milos Gajdos 92495d22db
Fixes advert dampening behaviour.
This commit adds the following changes:
* advert now stores a list of route events as opposed to just last one
* attempt to dedup route events before appending them to advert
* have max suppress threshold for long time suppressed adverts
* decaying events on every advert tick

Originally we werent decaying penalties on every advert tick.
That was incorrect behaviour. Furthermore some events would end up being
accumulated potentially causing memory leaks.

We were also overriding the last received router event which was causing
incorrect sequence of events to be applied when received by a receiver:
Create, Delete would be "squashed" into Delete only which would be
nonsensical since the Create event would never be delivered hence we
would be deleting nonexistent routes.

Not Decaying the events on every tick or not having the max suppression
threshold could lead to DoS by growing the router memory infinitely.
2019-07-16 19:00:25 +01:00
..
link functioning tunnel/link code 2019-07-11 00:14:36 +01:00
proxy Use gateway if available 2019-07-10 08:26:33 +01:00
router Fixes advert dampening behaviour. 2019-07-16 19:00:25 +01:00
tunnel update tunnel comment 2019-07-14 18:34:32 -07:00