]> git.michaelhowe.org Git - packages/o/openafs.git/commit
OpenBSD: fix lookup of network interfaces
authorAntoine Verheijen <antoine@ualberta.ca>
Mon, 8 Feb 2010 22:23:03 +0000 (15:23 -0700)
committerDerrick Brashear <shadow@dementia.org>
Tue, 9 Feb 2010 16:26:23 +0000 (08:26 -0800)
commit8553482f63b9f326cf71cf4689f569f96adb2a7c
tree2ecd48469ae8490c6f9f83c192a60dfb79bbc32a
parent9af780a1ece48e2f5f5e10330a7f37291d8c6ae8
OpenBSD: fix lookup of network interfaces

Starting with OpenBSD 4.2, the interface list returned by sysctl using
NET_RT_IFLIST contains multiple versions of the data. This really
messes up the rx_getAllAddr_internal() routine that returns a list of
valid interfaces for the system (to the point where none are returned).

This change adds a routine that cleans up the data returned by sysctl
so it returns only a single (the most current) version of the data.
That stops afsd (among others) from being cranky when it starts up.

Change-Id: Ief1df0d2c3eb241c45b439a785ddb67d3afe992c
Reviewed-on: http://gerrit.openafs.org/1274
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>
(cherry picked from commit d06bc699f2e3848da8ce9a7fa20ac99db630bd1b)
Change-Id: I3c1f0b96b579784c6702ade34e33a3348fe82885
Reviewed-on: http://gerrit.openafs.org/1259
src/rx/rx_getaddr.c