devela::_dep::rustix::net::sockopt

Function set_ip_drop_membership_with_ifindex

pub fn set_ip_drop_membership_with_ifindex<Fd>(
    fd: Fd,
    multiaddr: &Ipv4Addr,
    address: &Ipv4Addr,
    ifindex: i32,
) -> Result<(), Errno> 
where Fd: AsFd,
Available on crate feature dep_rustix only.
Expand description

setsockopt(fd, IPPROTO_IP, IP_DROP_MEMBERSHIP, multiaddr, interface)

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

See the module-level documentation for more.