From owner-cvs-all@FreeBSD.ORG Tue Apr 20 06:58:15 2004 Return-Path: Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6186616A4CE; Tue, 20 Apr 2004 06:58:15 -0700 (PDT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5AFDE43D49; Tue, 20 Apr 2004 06:58:15 -0700 (PDT) (envelope-from joerg@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.10/8.12.10) with ESMTP id i3KDwFGe084120; Tue, 20 Apr 2004 06:58:15 -0700 (PDT) (envelope-from joerg@repoman.freebsd.org) Received: (from joerg@localhost) by repoman.freebsd.org (8.12.10/8.12.10/Submit) id i3KDwEsl084119; Tue, 20 Apr 2004 06:58:14 -0700 (PDT) (envelope-from joerg) Message-Id: <200404201358.i3KDwEsl084119@repoman.freebsd.org> From: Joerg Wunsch Date: Tue, 20 Apr 2004 06:58:14 -0700 (PDT) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/usr.sbin/rarpd rarpd.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Apr 2004 13:58:15 -0000 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