blob: 03697ff1f6de7f46a029d804747e9114b6722e2f [file] [log] [blame]
Brad Bishop316dfdd2018-06-25 12:45:53 -04001From a6a85ec5c85cbd3c86743b6e2fa391198869bff8 Mon Sep 17 00:00:00 2001
2From: Tom Rini <tom_rini@mentor.com>
3Date: Wed, 27 Jul 2011 03:46:52 +0000
4Subject: [PATCH] rp-pppoe: Port from oe.dev
5
Patrick Williamsb48b7b42016-08-17 15:04:38 -05006Relax restrictions on the PPPoE src address, as per debian bug
7293811:
8
9 http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=293811
10
11Upstream-Status: Inappropriate [Backport from Debian]
12
Brad Bishop316dfdd2018-06-25 12:45:53 -040013---
14 src/discovery.c | 4 ++--
15 1 file changed, 2 insertions(+), 2 deletions(-)
16
17diff --git a/src/discovery.c b/src/discovery.c
18index 7ee259d..5213a37 100644
19--- a/src/discovery.c
20+++ b/src/discovery.c
21@@ -472,8 +472,8 @@ waitForPADO(PPPoEConnection *conn, int timeout)
Patrick Williamsb48b7b42016-08-17 15:04:38 -050022 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 Bishop316dfdd2018-06-25 12:45:53 -040031 #ifdef PLUGIN