Home
last modified time | relevance | path

Searched refs:imreq (Results 1 – 2 of 2) sorted by relevance

/hal_espressif-3.6.0/examples/protocols/sockets/udp_multicast/main/
Dudp_multicast_example_main.c58 struct ip_mreq imreq = { 0 }; in socket_add_ipv4_multicast_group() local
63 imreq.imr_interface.s_addr = IPADDR_ANY; in socket_add_ipv4_multicast_group()
74 err = inet_aton(MULTICAST_IPV4_ADDR, &imreq.imr_multiaddr.s_addr); in socket_add_ipv4_multicast_group()
81 ESP_LOGI(TAG, "Configured IPV4 Multicast address %s", inet_ntoa(imreq.imr_multiaddr.s_addr)); in socket_add_ipv4_multicast_group()
82 if (!IP_MULTICAST(ntohl(imreq.imr_multiaddr.s_addr))) { in socket_add_ipv4_multicast_group()
98 &imreq, sizeof(struct ip_mreq)); in socket_add_ipv4_multicast_group()
/hal_espressif-3.6.0/components/mdns/
Dmdns_networking_socket.c469 struct ip_mreq imreq = { 0 }; in socket_add_ipv4_multicast_group() local
477 imreq.imr_interface.s_addr = ip_info.ip.addr; in socket_add_ipv4_multicast_group()
480 imreq.imr_multiaddr.s_addr = multicast_addr.u_addr.ip4.addr; in socket_add_ipv4_multicast_group()
482 err = setsockopt(sock, IPPROTO_IP, IP_ADD_MEMBERSHIP, &imreq, sizeof(struct ip_mreq)); in socket_add_ipv4_multicast_group()