Follow BOLT1 handling for "no reply" pings: ignore, don't warn.#3278
Merged
t-bast merged 2 commits intoACINQ:masterfrom Apr 2, 2026
Merged
Follow BOLT1 handling for "no reply" pings: ignore, don't warn.#3278t-bast merged 2 commits intoACINQ:masterfrom
t-bast merged 2 commits intoACINQ:masterfrom
Conversation
These "oversize ping replies" are how we ask for no replies, such as when
we're sending dummy traffic. From the rationale:
This allows a convenient cutoff for `num_pong_bytes` to indicate that no reply should be sent.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
t-bast
previously approved these changes
Apr 2, 2026
Member
t-bast
left a comment
There was a problem hiding this comment.
I never noticed that the spec had this hook for pongless pings, thanks!
We previously tested that we were sending a `warning` back. We also add a comment to explain why we ignore those pings.
t-bast
approved these changes
Apr 2, 2026
t-bast
added a commit
that referenced
this pull request
Apr 7, 2026
BOLT1 says: ``` A node receiving a ping message: - if num_pong_bytes is less than 65532: - MUST respond by sending a pong message, with byteslen equal to num_pong_bytes. - otherwise (num_pong_bytes is not less than 65532): - MUST ignore the ping. ``` These reply-less pings are used to insert cover traffic to thwart network-level traffic analysis. We wanted to allow them in #3278 but we missed this ping flood protection that needed to be updated.
Merged
t-bast
added a commit
that referenced
this pull request
Apr 7, 2026
BOLT1 says: ``` A node receiving a ping message: - if num_pong_bytes is less than 65532: - MUST respond by sending a pong message, with byteslen equal to num_pong_bytes. - otherwise (num_pong_bytes is not less than 65532): - MUST ignore the ping. ``` These reply-less pings are used to insert cover traffic to thwart network-level traffic analysis. We wanted to allow them in #3278 but we missed this ping flood protection that needed to be updated. We also had an off-by-one in the maximum pong length that is now fixed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
These "oversize ping replies" are how we ask for no replies, such as when we're sending dummy traffic. From the rationale: