Page MenuHomeFreeBSD

Switch net.inet6.ip6.use_stableaddr to on by default
ClosedPublic

Authored by madpilot on Thu, Feb 5, 9:15 PM.
Tags
None
Referenced Files
F146483991: D55138.diff
Tue, Mar 3, 1:46 AM
F146427204: D55138.id.diff
Mon, Mar 2, 3:00 PM
Unknown Object (File)
Sat, Feb 28, 7:41 AM
Unknown Object (File)
Tue, Feb 24, 11:31 AM
Unknown Object (File)
Tue, Feb 24, 5:54 AM
Unknown Object (File)
Mon, Feb 23, 9:04 AM
Unknown Object (File)
Thu, Feb 19, 12:32 AM
Unknown Object (File)
Tue, Feb 17, 11:13 AM

Details

Summary

As suggested by pouria on the current mailing list, I'm proposing
apatch to switch the ddefault for RFC 7217 stableaddress support
to on.

I also wrote an UPDATING note, I hope the wording is correct and
clear enough.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

This revision is now accepted and ready to land.Thu, Feb 5, 9:17 PM

No objections from me, I rather agree. But I am not enough expert in IPv6 to make a strong judgement on defaults change.

zlei added a subscriber: zlei.

This is a behavior change. Please also add a meta Relnotes: yes to the commit message.

The patch I submitted was missing a part. This is the updated and correct version.

@zlei Thanks for the suggestion, I'll add that to the commit message.

This revision now requires review to proceed.Sat, Feb 7, 12:36 PM
sys/netinet6/in6_proto.c
314 ↗(On Diff #171404)

This change is not necessary but harmless. I'd suggest you do not change it, to avoid potential confusion.

The val argument of SYSCTL_BOOL function only when the argument ptr is NULL. If not then that argument does nothing.

See the comment above SYSCTL_BOOL in sys/sys/sysctl.h,

/* Oid for a bool.  If ptr is NULL, val is returned. */
#define SYSCTL_NULL_BOOL_PTR ((bool *)NULL)
#define SYSCTL_BOOL(parent, nbr, name, access, ptr, val, descr) \
        SYSCTL_OID(parent, nbr, name,                           \
            CTLTYPE_U8 | CTLFLAG_MPSAFE | (access),             \
            ptr, val, sysctl_handle_bool, "CU", descr);         \
        CTASSERT(((access) & CTLTYPE) == 0 &&                   \
            sizeof(bool) == sizeof(*(ptr)))
madpilot added inline comments.
sys/netinet6/in6_proto.c
314 ↗(On Diff #171404)

This change is not necessary but harmless. I'd suggest you do not change it, to avoid potential confusion.

The val argument of SYSCTL_BOOL function only when the argument ptr is NULL. If not then that argument does nothing.

Thanks for the explanation, I was, in fact, confused by this duplication.

Fixing the review shortly.

Removed unneeded change indicated by @zlei

This revision is now accepted and ready to land.Sun, Feb 8, 4:45 PM