From Marco D'Itri.
authorPaul Mackerras <paulus@samba.org>
Tue, 22 Mar 2005 10:22:32 +0000 (10:22 +0000)
committerPaul Mackerras <paulus@samba.org>
Tue, 22 Mar 2005 10:22:32 +0000 (10:22 +0000)
Apparently some French ISPs really send PADO packets from
multicast MAC addresses. :-(

pppd/plugins/rp-pppoe/discovery.c

index 937ea5228b49b83cbaf07f4425c3ff88b99e743f..498ed0a6cbc5723cc6dd4cc503a22b5dfa1eebe2 100644 (file)
@@ -9,7 +9,7 @@
 ***********************************************************************/
 
 static char const RCSID[] =
-"$Id: discovery.c,v 1.3 2004/11/04 10:07:37 paulus Exp $";
+"$Id: discovery.c,v 1.4 2005/03/22 10:22:32 paulus Exp $";
 
 #include "pppoe.h"
 
@@ -365,8 +365,8 @@ waitForPADO(PPPoEConnection *conn, int timeout)
        if (!packetIsForMe(conn, &packet)) continue;
 
        if (packet.code == CODE_PADO) {
-           if (NOT_UNICAST(packet.ethHdr.h_source)) {
-               printErr("Ignoring PADO packet from non-unicast MAC address");
+           if (BROADCAST(packet.ethHdr.h_source)) {
+               printErr("Ignoring PADO packet from broadcast MAC address");
                continue;
            }
            parsePacket(&packet, parsePADOTags, &pc);