add support for pppoe over atheros wlan

SVN-Revision: 1702
This commit is contained in:
Felix Fietkau 2005-08-20 14:30:28 +00:00
parent 858a46382e
commit 8ed3f8e05c
2 changed files with 2 additions and 2 deletions

View File

@ -4,7 +4,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=ppp PKG_NAME:=ppp
PKG_VERSION:=2.4.3 PKG_VERSION:=2.4.3
PKG_RELEASE:=5 PKG_RELEASE:=6
PKG_MD5SUM:=848f6c3cafeb6074ffeb293c3af79b7c PKG_MD5SUM:=848f6c3cafeb6074ffeb293c3af79b7c
PKG_SOURCE_URL:=ftp://ftp.samba.org/pub/ppp/ PKG_SOURCE_URL:=ftp://ftp.samba.org/pub/ppp/

View File

@ -6,7 +6,7 @@ diff -ruN ppp-2.4.3-orig/pppd/plugins/rp-pppoe/plugin.c ppp-2.4.3-3/pppd/plugins
cmd += 4; cmd += 4;
} else if (strlen(cmd) < 4 } else if (strlen(cmd) < 4
- || (strncmp(cmd, "eth", 3) && strncmp(cmd, "nas", 3) - || (strncmp(cmd, "eth", 3) && strncmp(cmd, "nas", 3)
+ || (strncmp(cmd, "eth", 3) && strncmp(cmd, "nas", 3) && strncmp(cmd, "vlan", 4) + || (strncmp(cmd, "eth", 3) && strncmp(cmd, "nas", 3) && strncmp(cmd, "vlan", 4) && strncmp(cmd, "ath", 3)
&& strncmp(cmd, "tap", 3) && strncmp(cmd, "br", 2))) { && strncmp(cmd, "tap", 3) && strncmp(cmd, "br", 2))) {
return 0; return 0;
} }