Summary: | Wrong traffic reported on FreeBSD | ||
---|---|---|---|
Product: | [Applications] knemo | Reporter: | Alberto Villa <avilla> |
Component: | general | Assignee: | John Stamp <jstamp> |
Status: | RESOLVED UNMAINTAINED | ||
Severity: | major | ||
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | FreeBSD Ports | ||
OS: | FreeBSD | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: | |||
Attachments: |
Fix to the issue.
New patch with fix for the multiple IPs bug Fix for the "always active" regression |
Description
Alberto Villa
2012-06-10 02:38:56 UTC
Created attachment 71692 [details]
Fix to the issue.
Created attachment 71708 [details]
New patch with fix for the multiple IPs bug
The same bug happens when multiple IP addresses are assigned to an interface, as this creates another entry in the list, and overflow check can be triggered:
interface: wlan0
level: network
received packets: 338529
sent packets: 286606
received bytes: 291.2 MiB
sent bytes: 38.7 MiB
interface: wlan0
level: network
received packets: 0
sent packets: 0
received bytes: 0.0 MiB
sent bytes: 0.0 MiB
This new patch fixes this issue by calculating a sum of the bytes and packets of all network-level interfaces and then calling incBytes() after the for() cycle. Overflow of the sum is correctly caught by the incBytes() function.
Created attachment 71713 [details]
Fix for the "always active" regression
Sorry, the attached patch introduced a regression which resets prevRxPackets and prevTxPackets on every update() call, thus making the interface think to be always receiving and sending data. The attached patch fixes it.
Thank you for taking the time to work on this (and bug 301557). I'll take a look at them and commit soon. SVN commit 1299925 by jstamp: Fix wrong traffic reported on FreeBSD Kudos to Alberto Villa for the patch. M +25 -14 bsdbackend.cpp WebSVN link: http://websvn.kde.org/?view=rev&revision=1299925 Hello! Sorry to be the bearer of bad news, but this project has been unmaintained for many years so I will be closing this bug. |