Skip to content

Consider adding socketopt const "IPV6_BOUND_IF" as we need to set/get bound interface on macOS #2793

Closed
@KyleRicardo

Description

@KyleRicardo

Consider add this to bsd/apple/mod.rs:

pub const IPV6_BOUND_IF: ::c_int = 125;

We really need this constant to perform modification on socket options(to bind socket to an interface, more specifically). Though we can temporarily define this on our own, but since IP_BOUND_IF is already defined in libc crate, we'd like to keep consistency.
I can make a simple PR if you agree to add this.
Thanks for your hard work.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions