-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bpf: ct: fix off-by-1 in ICMP packet statistics
ct_create*() initializes the CT entry's packet/byte counters for the first packet. As this entry is then also used to create the related ICMP entry, the counter values leak over. The entry then indicate the processing of an ICMP packet, when there was actually no such packet. Fix it by re-ordering ct_create*() to create the ICMP entry first, and only afterwards initialize the counters. Signed-off-by: Julian Wiedmann <jwi@isovalent.com>
- Loading branch information
1 parent
4b2c9ab
commit e3346ed
Showing
1 changed file
with
24 additions
and
20 deletions.
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