Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 1 | From a6a85ec5c85cbd3c86743b6e2fa391198869bff8 Mon Sep 17 00:00:00 2001 |
| 2 | From: Tom Rini <tom_rini@mentor.com> |
| 3 | Date: Wed, 27 Jul 2011 03:46:52 +0000 |
| 4 | Subject: [PATCH] rp-pppoe: Port from oe.dev |
| 5 | |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 6 | Relax restrictions on the PPPoE src address, as per debian bug |
| 7 | 293811: |
| 8 | |
| 9 | http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=293811 |
| 10 | |
| 11 | Upstream-Status: Inappropriate [Backport from Debian] |
| 12 | |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 13 | --- |
| 14 | src/discovery.c | 4 ++-- |
| 15 | 1 file changed, 2 insertions(+), 2 deletions(-) |
| 16 | |
| 17 | diff --git a/src/discovery.c b/src/discovery.c |
| 18 | index 7ee259d..5213a37 100644 |
| 19 | --- a/src/discovery.c |
| 20 | +++ b/src/discovery.c |
| 21 | @@ -472,8 +472,8 @@ waitForPADO(PPPoEConnection *conn, int timeout) |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 22 | if (!packetIsForMe(conn, &packet)) continue; |
| 23 | |
| 24 | if (packet.code == CODE_PADO) { |
| 25 | - if (NOT_UNICAST(packet.ethHdr.h_source)) { |
| 26 | - printErr("Ignoring PADO packet from non-unicast MAC address"); |
| 27 | + if (BROADCAST(packet.ethHdr.h_source)) { |
| 28 | + printErr("Ignoring broadcast PADO packet"); |
| 29 | continue; |
| 30 | } |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 31 | #ifdef PLUGIN |