diff --git a/ppp-send-padt.patch b/ppp-send-padt.patch new file mode 100644 index 0000000..2b79987 --- /dev/null +++ b/ppp-send-padt.patch @@ -0,0 +1,13 @@ +Index: ppp-2.4.5/pppd/plugins/rp-pppoe/plugin.c +=================================================================== +--- ppp-2.4.5.orig/pppd/plugins/rp-pppoe/plugin.c 2009-11-16 23:26:07.000000000 +0100 ++++ ppp-2.4.5/pppd/plugins/rp-pppoe/plugin.c 2013-07-24 12:36:08.433729757 +0200 +@@ -242,7 +242,7 @@ + sizeof(struct sockaddr_pppox)) < 0) + error("Failed to disconnect PPPoE socket: %d %m", errno); + close(conn->sessionSocket); +- /* don't send PADT?? */ ++ sendPADT(conn, NULL); + if (conn->discoverySocket >= 0) + close(conn->discoverySocket); + } diff --git a/ppp.changes b/ppp.changes index 04f617e..31960fb 100644 --- a/ppp.changes +++ b/ppp.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed Jul 24 12:54:01 UTC 2013 - max@suse.com + +- ppp-send-padt.patch: Send PADT at the end of a PPPoE session. + ------------------------------------------------------------------- Fri Mar 1 14:59:29 UTC 2013 - cfarrell@suse.com diff --git a/ppp.spec b/ppp.spec index f65f148..8c3bbb8 100644 --- a/ppp.spec +++ b/ppp.spec @@ -70,6 +70,7 @@ Patch18: ppp-2.4.3-winbind-setuidfix.patch Patch19: ppp-2.4.4-strncatfix.patch Patch21: ppp-2.4.4-lib64.patch Patch22: ppp-2.4.4-var_run_resolv_conf.patch +Patch23: ppp-send-padt.patch %description The ppp package contains the PPP (Point-to-Point Protocol) daemon, @@ -110,6 +111,7 @@ plugins for the pppd. %patch21 %endif %patch22 +%patch23 -p1 sed -i -e '1s/local\///' scripts/secure-card find scripts -type f | xargs chmod a-x