From 2e215f9d0f2dc43e3dc054939d3edb77fa526872 Mon Sep 17 00:00:00 2001 From: "Maciej W. Rozycki" Date: Sun, 17 Nov 2002 12:00:00 -0500 Subject: [PATCH] Application of mopd-2.5.3-pf.patch: * Sun Nov 17 2002 Maciej W. Rozycki 2.5.3-15 - approximate multicast group membership with the promiscuous mode in the non-Linux packet filter (pf) Downloaded from: ftp://ftp.linux-mips.org/pub/linux/mips/people/macro/mopd/mopd-2.5.3-pf.patch.gz .patch SHA256 = b230da740113d6baf22ecaa71b60f35ae4723375f5d042f4d67a668efbba9e6c Patch history copied from: ftp://ftp.linux-mips.org/pub/linux/mips/people/macro/mopd/mopd-2.5.3-15.spec --- common/pf.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/common/pf.c b/common/pf.c index 3b42fe1..78a7ccf 100644 --- a/common/pf.c +++ b/common/pf.c @@ -67,7 +67,7 @@ static char rcsid[] = "$Id: pf.c,v 1.16 1996/08/06 14:19:48 moj Exp $"; */ extern int errno; -extern int promisc; +extern int nomulti; /* * Return information to device.c how to open device. @@ -146,7 +146,8 @@ pfInit(interface, mode, protocol, typ) syslog(LOG_ERR,"pfInit: %s is not ethernet", device); return(-1); } - if (promisc) { + if (!nomulti) { + syslog(LOG_WARNING,"pfInit: using promiscuous mode for multicast reception"); /* Set promiscuous mode. */ if (ioctl(fd, BIOCPROMISC, (caddr_t)0) < 0) { syslog(LOG_ERR,"pfInit: BIOCPROMISC: %m");