Skip to content

should rustix implement getifaddrs? #1551

@Luca-spopo

Description

@Luca-spopo

Hello, I've been really enjoying using this crate

I have a use case where I need to call getifaddrs via syscalls

I see that getifaddrs is listed as probably in scope for rustix
https://docs.rs/rustix/latest/rustix/not_implemented/yet/fn.getifaddrs.html

But it is also listed as out of scope for rustix
https://docs.rs/rustix/latest/rustix/not_implemented/higher_level/fn.getifaddrs.html

There is an issue in which this was mentioned as well: #1014
In that issue getifaddrs crate was listed as an alternative (but that crate uses libc)

I did look around, and right now getifaddrs is supported by some crates, but they all rely on libc.

I wanted to know if rustix would be interested in supporting getifaddrs via syscalls

I am willing to start an initial implementation for Linux (for syscalls and libc backends) and raise a PR if we decide that we want to support it in rustix. I can then look into other platforms, or anyone else who is interested could pick them up.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions