Date: Tue, 20 Apr 2004 06:58:14 -0700 (PDT) From: Joerg Wunsch <joerg@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/usr.sbin/rarpd rarpd.c Message-ID: <200404201358.i3KDwEsl084119@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
joerg 2004/04/20 06:58:14 PDT
FreeBSD src repository
Modified files:
usr.sbin/rarpd rarpd.c
Log:
While walking over the list of interfaces obtained from getifaddrs(3),
rarpd clobbered any AF_INET information already configured for a given
interface name, so interfaces with more than one IP address made rarpd
listen only for the last address out of all IP aliases.
I changed this, so that AF_LINK information is always collected first
(to ensure the interface name gets its link-layer address associated),
but while looking for AF_INET addresses, the configuration is cloned
if there has already been one IP address seen for that interface name.
Thus, rarpd now effectively listens on all subnets.
MFC after: 1 week
Revision Changes Path
1.40 +40 -4 src/usr.sbin/rarpd/rarpd.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200404201358.i3KDwEsl084119>
