Created attachment 187704 [details]
Make rc(8) respect "-auto_linklocal" flag for INET6 ifconfig
ifconfig(8) can toggle automatic link-local address configuration per interface.
net.inet6.ip6.auto_linklocal predefines the default setting, which is to set AUTO_LINKLOCAL on all interfaces.
Users should be able to disable automatic link-local address configuration selectively, not only globally (by the mentioned sysctl).
Basically, adding "-auto_linklocal" as rc.conf(5) ifconfig_IF_ipv6 parameter does disable AUTO_LINKLOCAL, but too late, because network.subr issues 'ifconfig inet -ifdisabled' before.
Attach patch introduces check for -auto_linklocal at that point.
Assign to the proper list
Created attachment 201467 [details]
Thank you for submission. Please verify if attached version of patch works same way. It avoids exta forking and extra invocation of grep.
(In reply to Eugene Grosbein from comment #2)
Thanks a lot for taking care and the more sophisticated patch, but I'm busy with completely unrelated stuff. Probably I'll be able to test by the end of this week.