summaryrefslogtreecommitdiffstats
path: root/meta-openembedded/meta-networking/recipes-protocols/rp-pppoe/rp-pppoe-3.12/pppoe-src-restrictions.patch
blob: 03697ff1f6de7f46a029d804747e9114b6722e2f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
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
OpenPOWER on IntegriCloud