IPv4Defragmenter DiscardOlderThan returns wrong number.
Open
- Dominant language
- Go
- Stars
- 6.8k
- Forks
- 1.2k
- PR merge metrics
- No merged PRs in 30d
Description
According to documentation, DiscardOlderThan() returns the number of FragmentList aka number of fragment packets it has discarded. The actual return value is the total number of the ip flows the derangementer holds in it's flows map, including the flows that was defragmented successfully and was flushed.
Possible solution is deleting an ip flow from the flows map when flushing it, instead of replacing it with a new ip flow.
Contributor guide
Assessment
This issue has not been assessed yet.