Application of mopd-2.5.3-pf.patch:

* Sun Nov 17 2002 Maciej W. Rozycki <macro@ds2.pg.gda.pl> 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
This commit is contained in:
Maciej W. Rozycki
2002-11-17 12:00:00 -05:00
committed by Boris Gjenero
parent b03daccbbc
commit 2e215f9d0f

View File

@@ -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");