]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Retry upon NET_RT_IFLIST sysctl failure.
authormarkj <markj@FreeBSD.org>
Tue, 30 Apr 2019 14:44:39 +0000 (14:44 +0000)
committermarkj <markj@FreeBSD.org>
Tue, 30 Apr 2019 14:44:39 +0000 (14:44 +0000)
commitfa7c28414fc0826c07bede1244f18ba7b298ad49
treedf8b50782727180b52e344742aa456f17698d875
parentbcc2f353aeb761b9d904e9c98701fa493cdc5988
Retry upon NET_RT_IFLIST sysctl failure.

Port the logic used by getifaddrs(3) to handle the case where
NET_RT_IFLIST returns ENOMEM, which can occur if the list size changes
between the buffer allocation and sysctl read.

PR: 195191
Submitted by: Guy Yur <guyyur@gmail.com> (original version)
MFC after: 1 week
usr.sbin/rtadvd/if.c