Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pppoe: Fix sending of PADT on connection termination #470

Merged
merged 1 commit into from
Jan 11, 2024
Merged

Conversation

paulusmack
Copy link
Collaborator

Commit 2b4166d ("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.

Commit 2b4166d ("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 <[email protected]>
@Neustradamus
Copy link
Member

Thanks to @KuoEuran about this ticket and @paulusmack for this fix which will be in 2.5.1!

@Neustradamus
Copy link
Member

@paulusmack: @KuoEuran has comment here:
#465 (comment)

This PR can be merged?

@paulusmack paulusmack merged commit 88563e5 into master Jan 11, 2024
49 checks passed
@paulusmack paulusmack deleted the fixpppoe branch February 13, 2024 09:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants