Lines Matching refs:addr_ptrs
374 } addr_ptrs = { in coap_service_start() local
393 zsock_inet_pton(AF_INET6, service->host, &addr_ptrs.addr6->sin6_addr) == 1) { in coap_service_start()
398 addr_ptrs.addr6->sin6_family = AF_INET6; in coap_service_start()
399 addr_ptrs.addr6->sin6_port = htons(*service->port); in coap_service_start()
401 zsock_inet_pton(AF_INET, service->host, &addr_ptrs.addr4->sin_addr) == 1) { in coap_service_start()
406 addr_ptrs.addr4->sin_family = AF_INET; in coap_service_start()
407 addr_ptrs.addr4->sin_port = htons(*service->port); in coap_service_start()
413 addr_ptrs.addr6->sin6_family = AF_INET6; in coap_service_start()
414 addr_ptrs.addr6->sin6_port = htons(*service->port); in coap_service_start()
419 addr_ptrs.addr4->sin_family = AF_INET; in coap_service_start()
420 addr_ptrs.addr4->sin_port = htons(*service->port); in coap_service_start()
438 ret = zsock_bind(service->data->sock_fd, addr_ptrs.addr, len); in coap_service_start()
447 ret = zsock_getsockname(service->data->sock_fd, addr_ptrs.addr, &len); in coap_service_start()
453 *service->port = addr_ptrs.addr6->sin6_port; in coap_service_start()
455 *service->port = addr_ptrs.addr4->sin_port; in coap_service_start()