-
Notifications
You must be signed in to change notification settings - Fork 13.4k
Fix check for globally routable IPv4 address #24343
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
Conversation
Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @alexcrichton (or someone else) soon. If any changes to this PR are deemed necessary, please add them as extra commits. This ensures that the reviewer can see what has changed since they last reviewed the code. The way Github handles out-of-date commits, this should also make it reasonably obvious what issues have or haven't been addressed. Large or tricky changes may require several passes of review and changes. Please see CONTRIBUTING.md for more information. |
Thanks! Could you add some tests for these as well? |
That'll work, but it's more conventional to put unit tests at the end of the module itself, so feel free to add something like this to the end of the module: #[cfg(test)]
mod tests {
#[test]
fn foo() { /* ... */ }
} |
@alexcrichton sorry, I deleted my earlier comment by mistake. I found existing tests for |
Sounds great to me, thanks for the drive-by cleanup! |
- Adds two more functions for broadcast address and special address classes reserved for documentation - Modifies the globally routable IP check to include these new functions Fixes #24314
@alexcrichton this passes tests on my local machine. Please check. |
@alexcrichton How will this PR be merged? I did not see any job being run for this PR in buildbot. Do I need to do something else? Sorry, still new here :) |
Ah right, this is now in the queue and when it reaches the top @bors will comment that it's being tested. After that @bors will comment with the test results afterwards. |
👍 |
- Adds two more functions for broadcast address and special address classes reserved for documentation - Modifies the globally routable IP check to include these new functions Fixes rust-lang#24314
address classes reserved for documentation
new functions
Fixes #24314