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

rtnetlink: complete route multipath encoding and decoding logic #88

Merged
merged 1 commit into from
Oct 26, 2020

Conversation

mdlayher
Copy link
Collaborator

Co-authored by @djosephsen, and supersedes #82. Will squash on approval.

I've tested this successfully in an environment using multipath nexthop attributes.

@mdlayher
Copy link
Collaborator Author

This needs to be fuzzed for sure.

Signed-off-by: Dave Josephsen <djosephsen@fastly.com>
Signed-off-by: Matt Layher <mlayher@fastly.com>
@jsimonetti
Copy link
Owner

Looking good. Will you be taking care of the Length field (as mentioned in the TODO) in this PR or later?
Also, can you add the encode() function as per the TODO aswel?

@jsimonetti
Copy link
Owner

This needs to be fuzzed for sure.

I'll start a fuzz run tomorrow and commit new corpus in a seperate PR

@mdlayher
Copy link
Collaborator Author

Looks like the encoding TODO you mention is already done actually! This both encodes and decodes successfully.

Thanks for offering to fuzz, I'll be doing that soon as well. I can already spot a couple of places where I suspect there will be problems.

I'll merge for now and do more cleanup in subsequent PRs because it's been a bit of a nuisance to keep this branch updated.

@mdlayher mdlayher merged commit 3547e77 into master Oct 26, 2020
@mdlayher mdlayher deleted the mdl-multipath branch October 26, 2020 19:11
@mdlayher mdlayher mentioned this pull request Oct 26, 2020
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.

3 participants