Function rustix::net::sockopt::set_ip_drop_membership
source ยท pub fn set_ip_drop_membership<Fd: AsFd>(
fd: Fd,
multiaddr: &Ipv4Addr,
interface: &Ipv4Addr,
) -> Result<()>
Expand description
setsockopt(fd, IPPROTO_IP, IP_DROP_MEMBERSHIP, multiaddr, interface)
This is similar to set_ip_drop_membership
but always sets ifindex
value to zero.
See the module-level documentation for more.