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

dispatcher: Fix registration with length 16 IPv4 addresses #3512

Merged

Conversation

lukedirtwalker
Copy link
Collaborator

@lukedirtwalker lukedirtwalker commented Dec 12, 2019

Make sure that an IPv4 is always 4 bytes long otherwise the parsing will fail.
Creating an IP from string via net.ParseIP/net.ResolveUDPAddr creates an IPv4 with a byte slice of length 16.
This was a problem for example for sciond.


This change is Reviewable

Make sure that an IPv4 is always 4 bytes long otherwise the parsing will fail.
Creating an IP from string via net.ParseIP/net.ResolveUDPAddr creates an IPv4 with a byte slice of length 16.
This was a problem for example for sciond.
@lukedirtwalker lukedirtwalker changed the title dispatcher: Fix registration message format dispatcher: Fix registration with length 16 IPv4 addresses Dec 12, 2019
Copy link
Contributor

@karampok karampok left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:lgtm:

Reviewed 1 of 1 files at r1.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved

@lukedirtwalker lukedirtwalker merged commit d151ea8 into scionproto:master Dec 12, 2019
@lukedirtwalker lukedirtwalker deleted the pubFixDispatcherReg branch December 12, 2019 11:42
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