diff options
author | Felix Fietkau <nbd@openwrt.org> | 2015-05-26 07:02:49 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2015-05-26 07:02:49 +0000 |
commit | 4b968fc70eb72511a2681022f85b80f1f2c97aad (patch) | |
tree | 0c0b282b668c662ff392ac22812a74271feac63c /package | |
parent | 84f820e1e2061a4d7d3e8989a61b909375820354 (diff) | |
download | upstream-4b968fc70eb72511a2681022f85b80f1f2c97aad.tar.gz upstream-4b968fc70eb72511a2681022f85b80f1f2c97aad.tar.bz2 upstream-4b968fc70eb72511a2681022f85b80f1f2c97aad.zip |
ppp: do not warn if connect() before close() on pppoe terminate fails (fixes #19651)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@45755 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package')
-rw-r--r-- | package/network/services/ppp/patches/531-pppoe_no_disconnect_warning.patch | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/package/network/services/ppp/patches/531-pppoe_no_disconnect_warning.patch b/package/network/services/ppp/patches/531-pppoe_no_disconnect_warning.patch new file mode 100644 index 0000000000..799e961cd7 --- /dev/null +++ b/package/network/services/ppp/patches/531-pppoe_no_disconnect_warning.patch @@ -0,0 +1,14 @@ +--- a/pppd/plugins/rp-pppoe/plugin.c ++++ b/pppd/plugins/rp-pppoe/plugin.c +@@ -271,9 +271,8 @@ PPPOEDisconnectDevice(void) + sp.sa_addr.pppoe.sid = 0; + memcpy(sp.sa_addr.pppoe.dev, conn->ifName, IFNAMSIZ); + memcpy(sp.sa_addr.pppoe.remote, conn->peerEth, ETH_ALEN); +- if (connect(conn->sessionSocket, (struct sockaddr *) &sp, +- sizeof(struct sockaddr_pppox)) < 0) +- error("Failed to disconnect PPPoE socket: %d %m", errno); ++ connect(conn->sessionSocket, (struct sockaddr *) &sp, ++ sizeof(struct sockaddr_pppox)); + close(conn->sessionSocket); + sendPADT(conn, NULL); + if (conn->discoverySocket >= 0) |