git: 5568fba657c2 - main - mld6: Properly initialize MLD packet options
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 02 Nov 2025 17:14:19 UTC
The branch main has been updated by markj:
URL: https://cgit.FreeBSD.org/src/commit/?id=5568fba657c260286b9f1f1e837ab83ef6ce572d
commit 5568fba657c260286b9f1f1e837ab83ef6ce572d
Author: Andrey V. Elsukov <ae@FreeBSD.org>
AuthorDate: 2025-11-02 15:56:14 +0000
Commit: Mark Johnston <markj@FreeBSD.org>
CommitDate: 2025-11-02 17:10:20 +0000
mld6: Properly initialize MLD packet options
After commit 530c2c30b0c7 we need to set flags to ensure that hop-by-hop
and hop limit options are included.
PR: 290407
Reviewed by: zlei, markj
MFC after: 3 days
Fixes: 530c2c30b0c7 ("ip6_output: Reduce cache misses on pktopts")
---
sys/netinet6/mld6.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/sys/netinet6/mld6.c b/sys/netinet6/mld6.c
index a825658bd9ee..5dfe48908a4f 100644
--- a/sys/netinet6/mld6.c
+++ b/sys/netinet6/mld6.c
@@ -3267,6 +3267,7 @@ mld_init(void *unused __unused)
mld_po.ip6po_hbh = &mld_ra.hbh;
mld_po.ip6po_prefer_tempaddr = IP6PO_TEMPADDR_NOTPREFER;
mld_po.ip6po_flags = IP6PO_DONTFRAG;
+ mld_po.ip6po_valid = IP6PO_VALID_HLIM | IP6PO_VALID_HBH;
callout_init(&mldslow_callout, 1);
callout_reset(&mldslow_callout, hz / MLD_SLOWHZ, mld_slowtimo, NULL);