Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 24 Jul 2000 22:08:49 +0200 (CEST)
From:      Ronald.vanderPol@surfnet.nl
To:        stable@freebsd.org
Subject:   4.1-RC: bug in rarpd.c
Message-ID:  <Pine.BSF.4.21.0007242132100.245-100000@spock.ncc-1701.surfnet.nl>
In-Reply-To: <200007241909.MAA14568@freeway.dcfinc.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.21.0007242132100.245-100000>