freebsd-dev/sys/compat
Marcel Moolenaar 75387a278e Have SIOCGIFCONF return all (if any) AF_INET addresses for the
interfaces we encounter. In Linux, all addresses are returned for
which gifconf handlers are installed. This boils down to AF_DECnet
and AF_INET. We care mostly about AF_INET for now. Adding additional
families is simple enough.

Returning the addresses is important for RPC clients to function
properly. Andrew found in some reference code that the logic that
handles the retransmission looks for an interface that's up and has
an AF_INET address. This obviously failed as we didn't return any
addresses at all.

Note also that with this change we don't return interfaces that don't
have AF_INET addresses, whereas before we returned any interface
present in the system. This is in line with what Linux does (modulo
interfaces with only AF_DECnet addresses of course :-)

Reported by: "Andrew Atrens" <atrens@nortelnetworks.com>
MFC after: 1 week
2002-01-29 06:00:11 +00:00
..
linprocfs
linux Have SIOCGIFCONF return all (if any) AF_INET addresses for the 2002-01-29 06:00:11 +00:00
netbsd Gut this header; since physio_proc_init is never called, the code never does 2002-01-08 10:26:44 +00:00
pecoff
svr4 Lock the caller process if the pid passed to getsid() or getpgid() 2002-01-19 06:34:58 +00:00