File tree Expand file tree Collapse file tree 4 files changed +5
-5
lines changed
modules/openthread/platform Expand file tree Collapse file tree 4 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -120,7 +120,7 @@ static void dhcpv6_pd_client_socket_init(uint32_t infra_if_index)
120120 .sin6_addr = IN6ADDR_ANY_INIT ,
121121 .sin6_scope_id = 0 };
122122
123- dhcpv6_pd_client_sock = zsock_socket (AF_INET6 , SOCK_DGRAM | SOCK_NONBLOCK , IPPROTO_UDP );
123+ dhcpv6_pd_client_sock = zsock_socket (AF_INET6 , SOCK_DGRAM , IPPROTO_UDP );
124124 VerifyOrExit (dhcpv6_pd_client_sock >= 0 );
125125
126126 VerifyOrExit (zsock_bind (dhcpv6_pd_client_sock , (struct sockaddr * )& addr ,
Original file line number Diff line number Diff line change @@ -114,7 +114,7 @@ static otError mdns_socket_init_v6(uint32_t ail_iface_idx)
114114 .sin6_addr = {{{0 }}},
115115 .sin6_scope_id = 0 };
116116
117- mdns_sock_v6 = zsock_socket (AF_INET6 , SOCK_DGRAM | SOCK_NONBLOCK , IPPROTO_UDP );
117+ mdns_sock_v6 = zsock_socket (AF_INET6 , SOCK_DGRAM , IPPROTO_UDP );
118118 VerifyOrExit (mdns_sock_v6 >= 0 , error = OT_ERROR_FAILED );
119119 VerifyOrExit (net_if_get_name (net_if_get_by_index (ail_iface_idx ), name ,
120120 CONFIG_NET_INTERFACE_NAME_LEN ) > 0 ,
@@ -175,7 +175,7 @@ static otError mdns_socket_init_v4(uint32_t ail_iface_idx)
175175 .sin_port = htons (MULTICAST_PORT ),
176176 .sin_addr = {{{0 }}}};
177177
178- mdns_sock_v4 = zsock_socket (AF_INET , SOCK_DGRAM | SOCK_NONBLOCK , IPPROTO_UDP );
178+ mdns_sock_v4 = zsock_socket (AF_INET , SOCK_DGRAM , IPPROTO_UDP );
179179 VerifyOrExit (mdns_sock_v4 >= 0 , error = OT_ERROR_FAILED );
180180 VerifyOrExit (net_if_get_name (net_if_get_by_index (ail_iface_idx ), name ,
181181 CONFIG_NET_INTERFACE_NAME_LEN ) > 0 ,
Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ void otPlatTrelEnable(otInstance *aInstance, uint16_t *aUdpPort)
3535 .sin6_scope_id = 0 };
3636 socklen_t len = sizeof (addr );
3737
38- trel_sock = zsock_socket (AF_INET6 , SOCK_DGRAM | SOCK_NONBLOCK , IPPROTO_UDP );
38+ trel_sock = zsock_socket (AF_INET6 , SOCK_DGRAM , IPPROTO_UDP );
3939 VerifyOrExit (trel_sock >= 0 );
4040 VerifyOrExit (zsock_bind (trel_sock , (struct sockaddr * )& addr , sizeof (addr )) == 0 );
4141
Original file line number Diff line number Diff line change @@ -78,7 +78,7 @@ otError otPlatUdpSocket(otUdpSocket *aUdpSocket)
7878 VerifyOrExit (sock_cnt < CONFIG_OPENTHREAD_ZEPHYR_BORDER_ROUTER_MAX_UDP_SERVICES ,
7979 error = OT_ERROR_INVALID_STATE );
8080
81- sock = zsock_socket (AF_INET6 , SOCK_DGRAM | SOCK_NONBLOCK , IPPROTO_UDP );
81+ sock = zsock_socket (AF_INET6 , SOCK_DGRAM , IPPROTO_UDP );
8282 VerifyOrExit (sock >= 0 , error = OT_ERROR_FAILED );
8383
8484#if defined(CONFIG_NET_IPV4 ) && defined(CONFIG_NET_IPV4_MAPPING_TO_IPV6 )
You can’t perform that action at this time.
0 commit comments