From owner-freebsd-hackers Sun Nov 24 17:19:17 1996 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id RAA26066 for hackers-outgoing; Sun, 24 Nov 1996 17:19:17 -0800 (PST) Received: from alpha.xerox.com (alpha.Xerox.COM [13.1.64.93]) by freefall.freebsd.org (8.7.5/8.7.3) with SMTP id RAA26057 for ; Sun, 24 Nov 1996 17:19:13 -0800 (PST) Received: from crevenia.parc.xerox.com ([13.2.116.11]) by alpha.xerox.com with SMTP id <16264(2)>; Sun, 24 Nov 1996 17:18:39 PST Received: from localhost by crevenia.parc.xerox.com with SMTP id <177567>; Sun, 24 Nov 1996 17:18:28 -0800 To: Kent Vander Velden cc: Tom Samplonius , hackers@freefall.freebsd.org Subject: Re: ping and freebsd crashes In-reply-to: Your message of "Sun, 24 Nov 96 11:52:10 PST." <9611241952.AA18700@spiff.cc.iastate.edu> Date: Sun, 24 Nov 1996 17:18:14 PST From: Bill Fenner Message-Id: <96Nov24.171828pst.177567@crevenia.parc.xerox.com> Sender: owner-hackers@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk In message <9611241952.AA18700@spiff.cc.iastate.edu> you write: > My mistake, it is rbootd that was concerning me. These are the >messages that get generated when it starts so I assume that this "bug" >might give the machines that are running rbootd a problem >" >Oct 20 14:56:41 pseudo rbootd[175]: restarted (ed0) >Oct 20 14:56:41 pseudo rbootd[175]: bpf: can't add mcast addr (Invalid >argument), setting promiscuous mode >Oct 20 14:56:41 pseudo /kernel: ed0: promiscuous mode enabled >" rbootd makes an interesting assumption, which doesn't appear to be true on any bpf implementation that I know of, including bpf-1.1 from LBL. However, this patch might make it true for FreeBSD, allowing it to not require promiscuous mode. Would you please try it? Thanks, Bill Index: src/sys/net/bpf.c *** bpf.c.orig Sun Nov 24 23:58:41 1996 --- bpf.c Mon Nov 25 00:08:22 1996 *************** *** 857,862 **** --- 857,873 ---- case BIOCGRSIG: *(u_int *)addr = d->bd_sig; break; + + /* + * XXX ifioctl's first argument is the socket; we don't have + * a socket. SIOC{ADD,DEL}MULTI don't use the socket argument + * so it is safe to pass in a null pointer. + */ + case SIOCADDMULTI: + case SIOCDELMULTI: + error = ifioctl(NULL, cmd, addr, p); + break; + } return (error); }