diff options
author | Felix Fietkau <nbd@openwrt.org> | 2015-01-24 13:41:10 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2015-01-24 13:41:10 +0000 |
commit | 83da7b8202dbb9ad60145cc61103deebcdc129c7 (patch) | |
tree | a2cae7cbf1c17ed7b302e30e92f433a120064c7b /package/network/services/ppp/patches | |
parent | 33e96691ce5cf4ffb6ea8c0691b2f7c5815ba410 (diff) | |
download | master-187ad058-83da7b8202dbb9ad60145cc61103deebcdc129c7.tar.gz master-187ad058-83da7b8202dbb9ad60145cc61103deebcdc129c7.tar.bz2 master-187ad058-83da7b8202dbb9ad60145cc61103deebcdc129c7.zip |
ppp: on PPPoE, always send PADT when shutting down the connection
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44097 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/network/services/ppp/patches')
-rw-r--r-- | package/network/services/ppp/patches/530-pppoe_send_padt.patch | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/package/network/services/ppp/patches/530-pppoe_send_padt.patch b/package/network/services/ppp/patches/530-pppoe_send_padt.patch new file mode 100644 index 0000000000..d4df88e630 --- /dev/null +++ b/package/network/services/ppp/patches/530-pppoe_send_padt.patch @@ -0,0 +1,11 @@ +--- a/pppd/plugins/rp-pppoe/plugin.c ++++ b/pppd/plugins/rp-pppoe/plugin.c +@@ -276,7 +276,7 @@ PPPOEDisconnectDevice(void) + 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); + } |