Home
last modified time | relevance | path

Searched refs:mreq (Results 1 – 3 of 3) sorted by relevance

/systemd-251/src/libsystemd-network/
Dlldp-network.c30 struct packet_mreq mreq = { in lldp_network_bind_raw_socket() local
53 if (setsockopt(fd, SOL_PACKET, PACKET_ADD_MEMBERSHIP, &mreq, sizeof(mreq)) < 0) in lldp_network_bind_raw_socket()
57 mreq.mr_address[ETH_ALEN - 1] = 0x03; in lldp_network_bind_raw_socket()
58 if (setsockopt(fd, SOL_PACKET, PACKET_ADD_MEMBERSHIP, &mreq, sizeof(mreq)) < 0) in lldp_network_bind_raw_socket()
62 mreq.mr_address[ETH_ALEN - 1] = 0x0E; in lldp_network_bind_raw_socket()
63 if (setsockopt(fd, SOL_PACKET, PACKET_ADD_MEMBERSHIP, &mreq, sizeof(mreq)) < 0) in lldp_network_bind_raw_socket()
Dicmp6-util.c32 const struct ipv6_mreq *mreq) { in icmp6_bind_router_message() argument
33 int ifindex = mreq->ipv6mr_interface; in icmp6_bind_router_message()
38 assert(mreq); in icmp6_bind_router_message()
47 if (setsockopt(s, IPPROTO_IPV6, IPV6_ADD_MEMBERSHIP, mreq, sizeof(*mreq)) < 0) in icmp6_bind_router_message()
87 struct ipv6_mreq mreq = { in icmp6_bind_router_solicitation() local
95 return icmp6_bind_router_message(&filter, &mreq); in icmp6_bind_router_solicitation()
100 struct ipv6_mreq mreq = { in icmp6_bind_router_advertisement() local
108 return icmp6_bind_router_message(&filter, &mreq); in icmp6_bind_router_advertisement()
/systemd-251/src/resolve/
Dresolved-dns-scope.c859 struct ipv6_mreq mreq = { in dns_scope_multicast_membership() local
873 … (void) setsockopt(fd, IPPROTO_IPV6, IPV6_DROP_MEMBERSHIP, &mreq, sizeof(mreq)); in dns_scope_multicast_membership()
875 …sockopt(fd, IPPROTO_IPV6, b ? IPV6_ADD_MEMBERSHIP : IPV6_DROP_MEMBERSHIP, &mreq, sizeof(mreq)) < 0) in dns_scope_multicast_membership()