From owner-freebsd-stable Mon Jul 24 13: 7:18 2000 Delivered-To: freebsd-stable@freebsd.org Received: from survis.surfnet.nl (survis.surfnet.nl [192.87.108.3]) by hub.freebsd.org (Postfix) with ESMTP id D079037BD87 for ; Mon, 24 Jul 2000 13:07:08 -0700 (PDT) (envelope-from Ronald.vanderPol@surfnet.nl) Received: from spock.ncc-1701.surfnet.nl ([192.87.111.34]) by survis.surfnet.nl with ESMTP (exPP) for stable@freebsd.org id 13GoVC-0001Yj-00; Mon, 24 Jul 2000 22:07:02 +0200 Date: Mon, 24 Jul 2000 22:08:49 +0200 (CEST) From: Ronald.vanderPol@surfnet.nl X-Sender: rvdp@spock.ncc-1701.surfnet.nl To: stable@freebsd.org Subject: 4.1-RC: bug in rarpd.c In-Reply-To: <200007241909.MAA14568@freeway.dcfinc.com> Message-ID: Organisation: SURFnet bv Address: "Radboudburcht, P.O. Box 19035, 3501 DA Utrecht, NL" Phone: +31 302 305 305 Telefax: +31 302 305 329 MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG There is a problem with rarpd in 4.1-RC (and probably all versions before): Jul 22 13:53:58 bones rarpd[435]: no interfaces Problem is a 16 byte buffer in SIOCGIFCONF ioctl. This was reported more than a year ago in PR#11525 by Mark J. Taylor. As a default system has already 9 interfaces (sl0, ppp0, lo0, gif0, gif1, gif2, gif3, faith0 and your network interface), 16 bytes is too small. Seems like rarpd.c never got cleaned up? rarpd.c has: ----- struct ifconf ifc; struct ifreq ibuf[16]; if ((s = socket(AF_INET, SOCK_DGRAM, 0)) < 0) { syslog(LOG_ERR, "socket: %m"); exit(1); } ifc.ifc_len = sizeof ibuf; ifc.ifc_buf = (caddr_t)ibuf; if (ioctl(s, SIOCGIFCONF, (char *)&ifc) < 0 || ----- rvdp To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message