Skip to content

Define IPV6_CHECKSUM & IPV6_HOPLIMIT on more platforms #1747

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

Merged
merged 2 commits into from
May 3, 2020

Conversation

wg
Copy link
Contributor

@wg wg commented May 1, 2020

Hello, thank you for your work on the libc crate! This PR adds a couple of important IPv6-related defines for FreeBSD, Linux, and MacOS:

  • IPV6_CHECKSUM (already defined for Linux)
  • IPV6_HOPLIMIT

IPV6_CHECKSUM

FreeBSD: https://github.com/freebsd/freebsd/blob/master/sys/netinet6/in6.h#L432
macOS: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/netinet6/in6.h

IPV6_HOPLIMIT

FreeBSD: https://github.com/freebsd/freebsd/blob/master/sys/netinet6/in6.h#L472
Linux: https://github.com/torvalds/linux/blob/master/include/uapi/linux/in6.h#L228
macOS: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/netinet6/in6.h

@rust-highfive
Copy link

r? @JohnTitor

(rust_highfive has picked a reviewer for you, use r? to override)

Copy link
Member

@JohnTitor JohnTitor left a comment

Choose a reason for hiding this comment

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

Looks good, thanks!

@JohnTitor JohnTitor merged commit c255585 into rust-lang:master May 3, 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