git: f2bba0192166 - main - ipfw: keep flag(s) definition next to member that holds them
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 19 Oct 2026 17:32:35 UTC
The branch main has been updated by glebius:
URL: https://cgit.FreeBSD.org/src/commit/?id=f2bba019216648c634a41ac4381fc62801905c41
commit f2bba019216648c634a41ac4381fc62801905c41
Author: Gleb Smirnoff <glebius@FreeBSD.org>
AuthorDate: 2026-10-19 17:32:21 +0000
Commit: Gleb Smirnoff <glebius@FreeBSD.org>
CommitDate: 2026-10-19 17:32:21 +0000
ipfw: keep flag(s) definition next to member that holds them
---
sys/netpfil/ipfw/ip_fw_dynamic.c | 9 ++-------
1 file changed, 2 insertions(+), 7 deletions(-)
diff --git a/sys/netpfil/ipfw/ip_fw_dynamic.c b/sys/netpfil/ipfw/ip_fw_dynamic.c
index 18ba2b3caf27..fcf2375f3568 100644
--- a/sys/netpfil/ipfw/ip_fw_dynamic.c
+++ b/sys/netpfil/ipfw/ip_fw_dynamic.c
@@ -116,12 +116,6 @@
(d)->bcnt_ ## dir += pktlen; \
} while (0)
-#define DYN_REFERENCED 0x01
-/*
- * DYN_REFERENCED flag is used to show that state keeps reference to named
- * object, and this reference should be released when state becomes expired.
- */
-
struct dyn_data {
void *parent; /* pointer to parent rule */
uint32_t chain_id; /* cached ruleset id */
@@ -130,7 +124,8 @@ struct dyn_data {
uint32_t hashval; /* hash value used for hash resize */
uint16_t fibnum; /* fib used to send keepalives */
uint8_t _pad;
- uint8_t flags; /* internal flags */
+ uint8_t flags;
+#define DYN_REFERENCED 0x01 /* holds reference to named object */
uint32_t rulenum; /* parent rule number */
uint32_t ruleid; /* parent rule id */