Searched refs:udp_port (Results 1 – 14 of 14) sorted by relevance
119 srvr_curr->udp_port = ntohs((unsigned short)channel->servers[i].addr.udp_port); in ares_get_servers_ports()179 channel->servers[i].addr.udp_port = 0; in ares_set_servers()231 channel->servers[i].addr.udp_port = htons((unsigned short)srvr->udp_port); in ares_set_servers_ports()361 s->udp_port = use_port ? port: 0; in set_servers_csv()362 s->tcp_port = s->udp_port; in set_servers_csv()
130 channel->udp_port = -1; in ares_init_options()288 (src->servers[i].addr.udp_port != 0) || in ares_dup()346 options->udp_port = ntohs(aresx_sitous(channel->udp_port)); in ares_save_options()356 (channel->servers[i].addr.udp_port == 0) && in ares_save_options()367 (channel->servers[i].addr.udp_port == 0) && in ares_save_options()441 if ((optmask & ARES_OPT_UDP_PORT) && channel->udp_port == -1) in init_by_options()442 channel->udp_port = htons(options->udp_port); in init_by_options()473 channel->servers[i].addr.udp_port = 0; in init_by_options()1505 pserver->addr.udp_port = addr_in->sin_port; in init_by_resolv_conf()1514 pserver->addr.udp_port = addr_in->sin6_port; in init_by_resolv_conf()[all …]
145 int udp_port; /* stored in network order */ member279 int udp_port; /* stored in network order */ member
1167 if (server->addr.udp_port) { in open_udp_socket()1168 saddr.sa4.sin_port = aresx_sitous(server->addr.udp_port); in open_udp_socket()1170 saddr.sa4.sin_port = aresx_sitous(channel->udp_port); in open_udp_socket()1180 if (server->addr.udp_port) { in open_udp_socket()1181 saddr.sa6.sin6_port = aresx_sitous(server->addr.udp_port); in open_udp_socket()1183 saddr.sa6.sin6_port = aresx_sitous(channel->udp_port); in open_udp_socket()
221 ptr->data.addr_port_node.udp_port = 0; in ares_malloc_data()
109 int enable_distributed_net(u16_t tcp_port, u16_t udp_port) in enable_distributed_net() argument113 if (get_local_tcp_server_port() == tcp_port && get_local_udp_server_port() == udp_port) { in enable_distributed_net()129 g_local_udp_server_port = udp_port; in enable_distributed_net()
77 static u16_t udp_port = UDP_LOCAL_PORT_RANGE_START; variable90 udp_port = UDP_ENSURE_LOCAL_PORT_RANGE(LWIP_RAND()); in udp_init()106 if (udp_port++ == UDP_LOCAL_PORT_RANGE_END) { in udp_new_port()107 udp_port = UDP_LOCAL_PORT_RANGE_START; in udp_new_port()111 if (pcb->local_port == udp_port) { in udp_new_port()118 return udp_port; in udp_new_port()
72 int enable_distributed_net(u16_t tcp_port, u16_t udp_port);
265 unsigned short udp_port; member725 int udp_port; member
557 dns_server_addrs[0].udp_port = g_fake_non_responsive_dns_server_port; in InjectBrokenNameServerList()567 dns_server_addrs[1].udp_port = atoi(local_dns_server_port.c_str()); in InjectBrokenNameServerList()
376 static int udp_port(struct sockaddr_storage *addr, int addr_len) in udp_port() function823 s->local_port = udp_port(&my_addr, len); in udp_open()
862 r->dns_server_addr.udp_port = grpc_sockaddr_get_port(&addr); in grpc_dns_lookup_ares_continue_after_check_localhost_and_ip_literals_locked()871 r->dns_server_addr.udp_port = grpc_sockaddr_get_port(&addr); in grpc_dns_lookup_ares_continue_after_check_localhost_and_ip_literals_locked()
306 options.udp_port = (unsigned short)strtol(optarg, NULL, 0); in main()
814 servers[0].udp_port != 0) { in EnsureServers()1679 Integer::New(env->isolate(), cur->udp_port) in GetServers()1739 cur->tcp_port = cur->udp_port = port; in SetServers()