40fa420216d789281da626fc5ee7018fa74df21b
[openwrt/openwrt.git] / package / network / services / ppp / patches / 530-pppoe_send_padt.patch
1 --- a/pppd/plugins/rp-pppoe/plugin.c
2 +++ b/pppd/plugins/rp-pppoe/plugin.c
3 @@ -275,7 +275,7 @@ PPPOEDisconnectDevice(void)
4 sizeof(struct sockaddr_pppox)) < 0)
5 error("Failed to disconnect PPPoE socket: %d %m", errno);
6 close(conn->sessionSocket);
7 - /* don't send PADT?? */
8 + sendPADT(conn, NULL);
9 if (conn->discoverySocket >= 0)
10 close(conn->discoverySocket);
11 }