pub fn set_ip_add_membership<Fd: AsFd>(
fd: Fd,
multiaddr: &Ipv4Addr,
interface: &Ipv4Addr,
) -> Result<()>
Expand description
setsockopt(fd, IPPROTO_IP, IP_ADD_MEMBERSHIP, multiaddr, interface)
This is similar to set_ip_add_membership
but always sets the ifindex
value to zero. See set_ip_add_membership_with_ifindex
instead to also
give the ifindex
value.
See the module-level documentation for more.