-
Notifications
You must be signed in to change notification settings - Fork 761
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
net/mpd5: add a fix from upstream r2247
Prevent reporting wrong traffic accounting data in very rare case of failure of netgraph statistical socket data flow.
- Loading branch information
eugen
authored and
eugen
committed
Jul 27, 2018
1 parent
d9145dd
commit 052b84f
Showing
2 changed files
with
31 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,30 @@ | ||
| Index: src/bund.c | ||
| =================================================================== | ||
| --- src/bund.c (revision 2246) | ||
| +++ src/bund.c (revision 2247) | ||
| @@ -1394,9 +1394,9 @@ BundUpdateStats(Bund b) | ||
| b->stats.runts += abs(stats.runts - b->oldStats.runts); | ||
| b->stats.dupFragments += abs(stats.dupFragments - b->oldStats.dupFragments); | ||
| b->stats.dropFragments += abs(stats.dropFragments - b->oldStats.dropFragments); | ||
| + b->oldStats = stats; | ||
| } | ||
|
|
||
| - b->oldStats = stats; | ||
| #else | ||
| NgFuncGetStats64(b, l, &b->stats); | ||
| #endif | ||
| Index: src/link.c | ||
| =================================================================== | ||
| --- src/link.c (revision 2246) | ||
| +++ src/link.c (revision 2247) | ||
| @@ -1359,9 +1359,9 @@ LinkUpdateStats(Link l) | ||
| l->stats.runts += abs(stats.runts - l->oldStats.runts); | ||
| l->stats.dupFragments += abs(stats.dupFragments - l->oldStats.dupFragments); | ||
| l->stats.dropFragments += abs(stats.dropFragments - l->oldStats.dropFragments); | ||
| + l->oldStats = stats; | ||
| } | ||
|
|
||
| - l->oldStats = stats; | ||
| #else | ||
| NgFuncGetStats64(l->bund, l->bundleIndex, &l->stats); | ||
| #endif |