summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlin Năstac <mrness@gentoo.org>2008-01-06 12:49:18 +0000
committerAlin Năstac <mrness@gentoo.org>2008-01-06 12:49:18 +0000
commitbde58e106f35859c34aa6ba4c09d9586f2ff89ff (patch)
tree5a9ebfc0259730183a885464fd6335285d691cac /net-dialup/rp-pppoe/files
parentVersion bump. (diff)
downloadgentoo-2-bde58e106f35859c34aa6ba4c09d9586f2ff89ff.tar.gz
gentoo-2-bde58e106f35859c34aa6ba4c09d9586f2ff89ff.tar.bz2
gentoo-2-bde58e106f35859c34aa6ba4c09d9586f2ff89ff.zip
Propagate pppoe-server session offset to PPP interface name, thanks to Aleksey Shipilev <aleksey.shipilev@gmail.com> (#204476).
(Portage version: 2.1.3.19)
Diffstat (limited to 'net-dialup/rp-pppoe/files')
-rw-r--r--net-dialup/rp-pppoe/files/digest-rp-pppoe-3.8-r26
-rw-r--r--net-dialup/rp-pppoe/files/rp-pppoe-3.8-session-offset.patch21
2 files changed, 27 insertions, 0 deletions
diff --git a/net-dialup/rp-pppoe/files/digest-rp-pppoe-3.8-r2 b/net-dialup/rp-pppoe/files/digest-rp-pppoe-3.8-r2
new file mode 100644
index 000000000000..c5f6d3ae6e3e
--- /dev/null
+++ b/net-dialup/rp-pppoe/files/digest-rp-pppoe-3.8-r2
@@ -0,0 +1,6 @@
+MD5 848f6c3cafeb6074ffeb293c3af79b7c ppp-2.4.3.tar.gz 688092
+RMD160 845821496bacb07d93bb7572a171854853ef722b ppp-2.4.3.tar.gz 688092
+SHA256 1e0fddb5f53613dd14ab10b25435e88092fed1eff09b4ac4448d5be01f3b0b11 ppp-2.4.3.tar.gz 688092
+MD5 0e32760f498f9cde44081ee6aafc823b rp-pppoe-3.8.tar.gz 212931
+RMD160 039798154acae9e7a066172f23904d766ba68a9a rp-pppoe-3.8.tar.gz 212931
+SHA256 d916e9cfe1e62395f63a5361936fa855f6d0f0a37dc7227b394cdb725f553479 rp-pppoe-3.8.tar.gz 212931
diff --git a/net-dialup/rp-pppoe/files/rp-pppoe-3.8-session-offset.patch b/net-dialup/rp-pppoe/files/rp-pppoe-3.8-session-offset.patch
new file mode 100644
index 000000000000..8f53a1af4239
--- /dev/null
+++ b/net-dialup/rp-pppoe/files/rp-pppoe-3.8-session-offset.patch
@@ -0,0 +1,21 @@
+diff -Nru rp-pppoe-3.8.orig/src/pppoe-server.c rp-pppoe-3.8/src/pppoe-server.c
+--- rp-pppoe-3.8.orig/src/pppoe-server.c 2006-04-02 17:29:42.000000000 +0300
++++ rp-pppoe-3.8/src/pppoe-server.c 2008-01-06 14:43:39.000000000 +0200
+@@ -1693,7 +1693,7 @@
+ }
+ if (PassUnitOptionToPPPD) {
+ argv[c++] = "unit";
+- sprintf(buffer, "%u", (unsigned int) (ntohs(session->sess) - 1 - SessOffset));
++ sprintf(buffer, "%u", (unsigned int) (ntohs(session->sess) - 1));
+ argv[c++] = buffer;
+ }
+ argv[c++] = NULL;
+@@ -1776,7 +1776,7 @@
+ argv[c++] = "default-asyncmap";
+ if (PassUnitOptionToPPPD) {
+ argv[c++] = "unit";
+- sprintf(buffer, "%u", (unsigned int) (ntohs(session->sess) - 1 - SessOffset));
++ sprintf(buffer, "%u", (unsigned int) (ntohs(session->sess) - 1));
+ argv[c++] = buffer;
+ }
+ argv[c++] = NULL;