]> git.ozlabs.org Git - ppp.git/commit
pppoe: Fix sending of PADT on connection termination (#470)
authorPaul Mackerras <paulus@ozlabs.org>
Thu, 11 Jan 2024 09:38:08 +0000 (20:38 +1100)
committerGitHub <noreply@github.com>
Thu, 11 Jan 2024 09:38:08 +0000 (20:38 +1100)
commit88563e591766a0cac99c171124d9dd5df2922f4c
tree4ef1946b14fba0c06e5ca7cd040ba7b5d3cc3e0c
parentfafbfdf19a3d52e85ec2a445bd72e412a06cb0d0
pppoe: Fix sending of PADT on connection termination (#470)

Commit 2b4166d02ed0 ("Close discovery socket after session completed",
2020-11-26) arranged for the discovery socket to be closed when the
PPPOE session negotiation was complete.  However, the discovery socket
is used for sending a PADT message when the connection terminates, and
now that doesn't work because the socket has been closed.

To fix this, we reopen the discovery socket in order to send the PADT
message.

Signed-off-by: Paul Mackerras <paulus@ozlabs.org>
pppd/plugins/pppoe/plugin.c