]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
rc: network.subr improve network6_getladdr()
authorBjoern A. Zeeb <bz@FreeBSD.org>
Mon, 13 Dec 2021 22:10:25 +0000 (22:10 +0000)
committerBjoern A. Zeeb <bz@FreeBSD.org>
Wed, 29 Dec 2021 16:01:46 +0000 (16:01 +0000)
commit1a305490732cdd30d19627b49847ebe09009a8f7
tree0bacafd50714c3fa60af382c0f921c01f1aad37e
parent4642ec266c7e4f539d891e59f713628fe6281ea3
rc: network.subr improve network6_getladdr()

In network6_getladdr() we are iterating over inet6 lines and are not
interested in any others.  So tell ifconfig to limit output to "inet6"
as much as possible.
This is probably a micro-optimisation but was noticed while looking
at other IPv6-related boot-time improvements.

(cherry picked from commit e448ff6f0e8035c3dd5b7bd0872f3f0d91c4e0d0)
libexec/rc/network.subr