diff options
| author | Andrey V. Elsukov <ae@FreeBSD.org> | 2025-11-02 15:56:14 +0000 |
|---|---|---|
| committer | Mark Johnston <markj@FreeBSD.org> | 2025-11-02 17:10:20 +0000 |
| commit | 5568fba657c260286b9f1f1e837ab83ef6ce572d (patch) | |
| tree | 8844feae0bf2aad5256b447bdaaafe646e9534dd | |
| parent | 2deeed061b1473a4230211c6562a533b76ce846c (diff) | |
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")
| -rw-r--r-- | sys/netinet6/mld6.c | 1 |
1 files changed, 1 insertions, 0 deletions
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); |
