-
Notifications
You must be signed in to change notification settings - Fork 6
feat: Obtain info via routing sockets #29
Conversation
Co-authored-by: Martin Thomson <[email protected]>
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #29 +/- ##
==========================================
+ Coverage 92.94% 93.61% +0.67%
==========================================
Files 1 5 +4
Lines 241 517 +276
==========================================
+ Hits 224 484 +260
- Misses 17 33 +16 ☔ View full report in Codecov by Sentry. 🚨 Try these New Features:
|
@martinthomson @mxinden I think this is ready for you to take a look at. @mozkeeler's review improved things a lot. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I found what I think is a bug in the BSD code. I'm not really done with the Linux code, but I'm toasted for today.
Co-authored-by: Martin Thomson <[email protected]>
Co-authored-by: Martin Thomson <[email protected]>
Co-authored-by: Martin Thomson <[email protected]>
Co-authored-by: Martin Thomson <[email protected]>
Co-authored-by: Martin Thomson <[email protected]>
734d841
to
a3b2240
Compare
I rolled this back to before I started to add Solaris support, which is now in #45. @martinthomson I think you still had some things you needed to review? |
mozilla#29 added the following `libc` import: ``` rust use libc::{ freeifaddrs, getifaddrs, getpid, if_data, if_indextoname, ifaddrs, in6_addr, in_addr, sockaddr_in, sockaddr_in6, sockaddr_storage, AF_UNSPEC, PF_ROUTE, RTAX_MAX, }; ``` `RTAX_MAX` was added in `libc` `0.2.160`: https://github.com/rust-lang/libc/releases/tag/0.2.160 More specifically rust-lang/libc#3714. This commit makes sure the above new requirement is encoded in the `mtu` `Cargo.toml` `libc` dependency declaration. See CI failure without discussed in mozilla#51 (comment).
This avoids the need to mess around with Internet sockets, which Firefox does not allow Rust code to do currently.
Also rolls in quite a few more changes.