Fix incorrect layer bindings in LDP contrib module#4985
Merged
gpotter2 merged 2 commits intosecdev:masterfrom May 1, 2026
Merged
Fix incorrect layer bindings in LDP contrib module#4985gpotter2 merged 2 commits intosecdev:masterfrom
gpotter2 merged 2 commits intosecdev:masterfrom
Conversation
was testing LDP discovery over UDP and noticed it wasnt dissecting properly. the bind_bottom_up calls for UDP were wrong - they had (TCP, UDP) instead of (UDP, LDP). LDP discovery uses UDP port 646 so this needs to bind UDP to LDP not TCP to UDP.
added a test to make sure LDP hello over UDP port 646 gets dissected properly with the fixed bindings
gpotter2
approved these changes
May 1, 2026
Member
gpotter2
left a comment
There was a problem hiding this comment.
Absolutely, thanks for catching this.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #4985 +/- ##
==========================================
- Coverage 80.28% 80.27% -0.01%
==========================================
Files 383 383
Lines 94685 94685
==========================================
- Hits 76015 76010 -5
- Misses 18670 18675 +5
🚀 New features to boost your workflow:
|
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.
Found a bug while testing LDP discovery over UDP. The
bind_bottom_upcalls for UDP were wrong:This meant LDP packets received over UDP on port 646 (used for LDP discovery/hello messages) would not be properly dissected. The old code was binding TCP to UDP which doesnt make any sense. LDP discovery uses UDP port 646, sessions use TCP port 646.
Added a test case to verify UDP-based LDP dissection works.