Repository navigation
ldp: make the Label TLV optional in Withdraw and Release - #5316
Open
leninworld wants to merge 1 commit into
Open
leninworld wants to merge 1 commit into
leninworld wants to merge 1 commit into
Conversation
RFC 5036 sections 3.5.10 and 3.5.11 make the Label TLV optional. A Release without it raised struct.error, and a Withdraw or Release without it consumed the following message as the label. AI-Assisted: yes (Codex GPT-5.6-Sol, Claude Opus 5.5)
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.
Description
The Label TLV is optional in Label Withdraw and Label Release messages (RFC 5036 sections 3.5.10 and 3.5.11), but
contrib/ldpalways reads one:The two messages now read a label only when the message length leaves room for it and the next TLV is a Label TLV (0x0200 to 0x0202). Otherwise
labelisNone, andlabel=Nonebuilds a message without the TLV. The default build is unchanged.Not covered: other TLVs, such as Status, are still not decoded. They are dissected as a following layer, and messages after them are not dissected correctly.
This message was written with the help of AI (Codex GPT-5.6-Sol and Claude Opus 5.5).