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

ifaces: Use nix::ifaddrs::getifaddrs() 100% #519

Merged
merged 1 commit into from
Dec 17, 2023

Conversation

haaspors
Copy link
Contributor

By relying on nix to handle the kernel/libc call complexities, this removes all unsafe code blocks and just makes the code pretty readable and straight forward.

Copy link

codecov bot commented Dec 16, 2023

Codecov Report

Attention: 5 lines in your changes are missing coverage. Please review.

Comparison is base (aba5218) 61.55% compared to head (7ff61e6) 61.52%.

Files Patch % Lines
util/src/ifaces/ffi/unix/mod.rs 84.84% 1 Missing and 4 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #519      +/-   ##
==========================================
- Coverage   61.55%   61.52%   -0.04%     
==========================================
  Files         529      529              
  Lines       48878    48855      -23     
  Branches    12381    12364      -17     
==========================================
- Hits        30088    30059      -29     
- Misses       9583     9589       +6     
  Partials     9207     9207              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

By relying on nix to handle the kernel/libc call complexities, this
removes all unsafe code blocks and just makes the code pretty readable
and straight forward.
@haaspors haaspors force-pushed the ifaces-unix-use-nix branch from 920b50a to 7ff61e6 Compare December 16, 2023 20:22
@rainliu rainliu merged commit 2c762b3 into webrtc-rs:master Dec 17, 2023
5 checks passed
@haaspors haaspors deleted the ifaces-unix-use-nix branch December 20, 2023 10:04
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.

2 participants