From 27aada7658acbf572c0224288a99dc377b26fb61 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Tue, 26 May 2015 07:02:49 +0000 Subject: [PATCH] ppp: do not warn if connect() before close() on pppoe terminate fails (fixes #19651) Signed-off-by: Felix Fietkau SVN-Revision: 45755 --- .../patches/531-pppoe_no_disconnect_warning.patch | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 package/network/services/ppp/patches/531-pppoe_no_disconnect_warning.patch 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 00000000000..799e961cd74 --- /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) -- 2.30.2