git: de13eea53e4c - main - ipfw: Fix comment typos in ipfw struct dyn_data
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 29 Nov 2024 21:39:23 UTC
The branch main has been updated by imp:
URL: https://cgit.FreeBSD.org/src/commit/?id=de13eea53e4c1e5ba593bb77257568c0f5ef1645
commit de13eea53e4c1e5ba593bb77257568c0f5ef1645
Author: Damjan Jovanovic <damjan.jov@gmail.com>
AuthorDate: 2024-11-07 16:27:39 +0000
Commit: Warner Losh <imp@FreeBSD.org>
CommitDate: 2024-11-29 21:38:35 +0000
ipfw: Fix comment typos in ipfw struct dyn_data
The bcnt_fwd and bcnt_rev fields are the byte counters,
while the pcnt_fwd and pcnt_rev fields are the packet counters.
Fix the comments that were swapped around.
Signed-off-by: Damjan Jovanovic <damjan.jov@gmail.com>
Reviewed by: jlduran,imp
Pull Request: https://github.com/freebsd/freebsd-src/pull/1517
---
sys/netpfil/ipfw/ip_fw_dynamic.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/sys/netpfil/ipfw/ip_fw_dynamic.c b/sys/netpfil/ipfw/ip_fw_dynamic.c
index 1dbecbcd6d53..34aae71c174b 100644
--- a/sys/netpfil/ipfw/ip_fw_dynamic.c
+++ b/sys/netpfil/ipfw/ip_fw_dynamic.c
@@ -144,10 +144,10 @@ struct dyn_data {
uint32_t sync; /* synchronization time */
uint32_t expire; /* expire time */
- uint64_t pcnt_fwd; /* bytes counter in forward */
- uint64_t bcnt_fwd; /* packets counter in forward */
- uint64_t pcnt_rev; /* bytes counter in reverse */
- uint64_t bcnt_rev; /* packets counter in reverse */
+ uint64_t pcnt_fwd; /* packets counter in forward */
+ uint64_t bcnt_fwd; /* bytes counter in forward */
+ uint64_t pcnt_rev; /* packets counter in reverse */
+ uint64_t bcnt_rev; /* bytes counter in reverse */
};
#define DPARENT_COUNT_DEC(p) do { \