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

Add more constants to Rtprot and Rta enums #202

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

oherrala
Copy link
Contributor

@oherrala oherrala commented Nov 8, 2022

Add missing constants to Rtprot (rtm_protocol) and Rta (Routing message attributes) enums. Some of these new values are seen in wild so I added all the missing ones.

This depends on libc pull request rust-lang/libc#2996. I'll keep this pull request as draft until libc is resolved.

Values are picked from Linux include/uapi/linux/rtnetlink.h https://github.com/torvalds/linux/blob/f0c4d9fc9cc9462659728d168387191387e903cc/include/uapi/linux/rtnetlink.h

@jbaublitz
Copy link
Owner

Thanks for putting this together!

@jbaublitz
Copy link
Owner

Hi @oherrala! I'm happy to merge this once the libc PR is released. Any movement on that?

@oherrala
Copy link
Contributor Author

@jbaublitz There's been some issues with getting the libc tests run correctly and I've been busy with other stuff. I'll try to get back into this since it's still on my need-to-do list for other project.

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.

None yet

2 participants