| From a6a85ec5c85cbd3c86743b6e2fa391198869bff8 Mon Sep 17 00:00:00 2001 |
| From: Tom Rini <tom_rini@mentor.com> |
| Date: Wed, 27 Jul 2011 03:46:52 +0000 |
| Subject: [PATCH] rp-pppoe: Port from oe.dev |
| |
| Relax restrictions on the PPPoE src address, as per debian bug |
| 293811: |
| |
| http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=293811 |
| |
| Upstream-Status: Inappropriate [Backport from Debian] |
| |
| --- |
| src/discovery.c | 4 ++-- |
| 1 file changed, 2 insertions(+), 2 deletions(-) |
| |
| diff --git a/src/discovery.c b/src/discovery.c |
| index 7ee259d..5213a37 100644 |
| --- a/src/discovery.c |
| +++ b/src/discovery.c |
| @@ -472,8 +472,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 broadcast PADO packet"); |
| continue; |
| } |
| #ifdef PLUGIN |