rustix::net::sockopt

Function set_ip_add_membership_with_ifindex

source
pub fn set_ip_add_membership_with_ifindex<Fd: AsFd>(
    fd: Fd,
    multiaddr: &Ipv4Addr,
    address: &Ipv4Addr,
    ifindex: i32,
) -> Result<()>
Expand description

setsockopt(fd, IPPROTO_IP, IP_ADD_MEMBERSHIP, multiaddr, address, ifindex)

This is similar to set_ip_add_membership_with_ifindex but additionally allows a ifindex value to be given.

See the module-level documentation for more.