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

Fix SRv6 prefix SID unmarshalling #2679

Closed
wants to merge 1 commit into from

Conversation

rastislavs
Copy link
Contributor

@rastislavs rastislavs commented Jul 31, 2023

During SRv6 prefix SID unmarshalling, wrong Path Attribute length was applied (4B instead of 3B). This was causing a 1 byte difference in PathAttribute length after marshalling & unmarshalling.

Screenshot from the TestFullCyclePrefixSID unit test shows the difference in PathAttribute Length (38 vs 37) before the fix (now asserted in the unit test):

Screenshot from 2023-07-31 10-26-14

During SRv6 prefix SID unmarshalling, wrong Path Attribute
length was applied (4B instead of 3B). This was causing
a 1 byte difference in PA length after marshalling & unmarshalling.

Signed-off-by: Rastislav Szabo <rastislav.szabo@isovalent.com>
@rastislavs rastislavs marked this pull request as ready for review August 1, 2023 06:11
@fujita
Copy link
Member

fujita commented Aug 3, 2023

pushed, thanks.

@fujita fujita closed this Aug 3, 2023
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants