/external/libcups/cups/ |
D | http-addrlist.c | 670 int portnum; /* Port number */ in httpAddrGetList() 678 portnum = 0; in httpAddrGetList() 680 portnum = atoi(service); in httpAddrGetList() 682 portnum = ntohs(port->s_port); in httpAddrGetList() 684 portnum = 80; in httpAddrGetList() 686 portnum = 443; in httpAddrGetList() 688 portnum = 631; in httpAddrGetList() 690 portnum = 515; in httpAddrGetList() 692 portnum = 9100; in httpAddrGetList() 726 first->addr.ipv4.sin_port = htons(portnum); in httpAddrGetList() [all …]
|
/external/ltp/testcases/network/stress/ns-tools/ |
D | ns-mcast_receiver.c | 167 char *portnum; /* listen port number in character string */ in parse_options() local 171 portnum = NULL; in parse_options() 228 portnum = strdup(optarg); in parse_options() 268 if (portnum == NULL) { in parse_options() 273 info_p->mainfo = get_maddrinfo(family, maddr, portnum); in parse_options() 287 free(portnum); in parse_options()
|
D | ns-tcpclient.c | 138 char *portnum; /* port number in string representation */ in main() local 157 portnum = NULL; in main() 192 portnum = strdup(optarg); in main() 239 if (portnum == NULL) { in main() 259 err = getaddrinfo(server_name, portnum, &hints, &res); in main()
|
D | ns-udpclient.c | 146 char *portnum; /* port number in string representation */ in main() local 165 portnum = NULL; in main() 200 portnum = strdup(optarg); in main() 234 if (portnum == NULL) { in main() 263 err = getaddrinfo(server_name, portnum, &hints, &res); in main()
|
D | ns-tcpserver.c | 72 char *portnum; /* port number */ member 218 err = getaddrinfo(NULL, info_p->portnum, &hints, &res); in create_listen_socket() 544 server.portnum = NULL; in main() 571 server.portnum = strdup(optarg); in main() 618 if (server.portnum == NULL) { in main() 619 server.portnum = (char *)calloc(6, sizeof(char)); in main() 620 sprintf(server.portnum, "%u", PORTNUMMIN); in main()
|
D | ns-udpserver.c | 195 char *portnum = NULL; /* port number */ in main() local 234 portnum = strdup(optarg); in main() 285 err = getaddrinfo(NULL, portnum, &hints, &res); in main()
|
D | ns-common.c | 438 const char *portnum) in get_maddrinfo() argument 450 err = getaddrinfo(maddr, portnum, &hints, &res); in get_maddrinfo()
|
D | ns-traffic.h | 235 struct addrinfo *get_maddrinfo(sa_family_t family, const char *maddr, const char *portnum);
|
/external/libevent/test/ |
D | regress_testutils.c | 94 ev_uint16_t *portnum, in regress_get_dnsserver() argument 112 my_addr.sin_port = htons(*portnum); in regress_get_dnsserver() 119 if (!*portnum) in regress_get_dnsserver() 120 *portnum = regress_get_socket_port(sock); in regress_get_dnsserver()
|
D | regress_dns.c | 538 ev_uint16_t portnum = 0; in dns_search_test_impl() local 549 tt_assert(regress_dnsserver(base, &portnum, table)); in dns_search_test_impl() 550 evutil_snprintf(buf, sizeof(buf), "127.0.0.1:%d", (int)portnum); in dns_search_test_impl() 659 ev_uint16_t portnum = 0; in dns_search_cancel_test() local 663 port = regress_get_dnsserver(base, &portnum, NULL, in dns_search_cancel_test() 666 evutil_snprintf(buf, sizeof(buf), "127.0.0.1:%d", (int)portnum); in dns_search_cancel_test() 735 ev_uint16_t portnum = 0; in dns_retry_test_impl() local 740 port = regress_get_dnsserver(base, &portnum, NULL, in dns_retry_test_impl() 743 evutil_snprintf(buf, sizeof(buf), "127.0.0.1:%d", (int)portnum); in dns_retry_test_impl() 909 ev_uint16_t portnum = 0; in dns_inflight_test_impl() local [all …]
|
D | regress_testutils.h | 42 ev_uint16_t *portnum,
|
D | regress_http.c | 1148 ev_uint16_t portnum = 0; in http_connection_async_test() local 1153 tt_assert(regress_dnsserver(data->base, &portnum, search_table)); in http_connection_async_test() 1160 evutil_snprintf(address, sizeof(address), "127.0.0.1:%d", portnum); in http_connection_async_test() 1417 ev_uint16_t portnum = 0; in http_cancel_test() local 1431 tt_assert(regress_dnsserver(data->base, &portnum, search_table)); in http_cancel_test() 1438 ++portnum; in http_cancel_test() 1440 evutil_snprintf(address, sizeof(address), "127.0.0.1:%d", portnum); in http_cancel_test() 3780 ev_uint16_t portnum = 0; in http_connection_retry_conn_address_test_impl() local 3784 tt_assert(regress_dnsserver(data->base, &portnum, search_table)); in http_connection_retry_conn_address_test_impl() 3790 evutil_snprintf(address, sizeof(address), "127.0.0.1:%d", portnum); in http_connection_retry_conn_address_test_impl() [all …]
|
/external/mesa3d/src/gallium/auxiliary/util/ |
D | u_network.c | 143 u_socket_listen_on_port(uint16_t portnum) in u_socket_listen_on_port() argument 151 sa.sin_port = htons(portnum); in u_socket_listen_on_port()
|
D | u_network.h | 17 int u_socket_listen_on_port(uint16_t portnum);
|
/external/chromium-trace/catapult/third_party/pyserial/serial/ |
D | sermsdos.py | 63 def device(portnum): argument 64 return 'COM%d' % (portnum+1)
|
D | serialcli.py | 15 def device(portnum): argument 17 return System.IO.Ports.SerialPort.GetPortNames()[portnum]
|
D | serialwin32.py | 17 def device(portnum): argument 19 return 'COM%d' % (portnum+1) # numbers are transformed to a string
|
D | serialposix.py | 229 return '/dev/ttyS%d' % portnum
|
/external/libevent/ |
D | evutil.c | 963 struct evutil_addrinfo *hints, struct evutil_addrinfo **res, int *portnum) in evutil_getaddrinfo_common_() argument 1074 *portnum = port; in evutil_getaddrinfo_common_() 1357 int portnum=-1, need_np_hack, err; in evutil_getaddrinfo() local 1409 && ((portnum=parse_numeric_servname(servname)) >= 0); in evutil_getaddrinfo() 1413 NULL,servname,&hints, res, &portnum); in evutil_getaddrinfo() 1435 apply_numeric_port_hack(portnum, res); in evutil_getaddrinfo()
|
D | util-internal.h | 371 struct evutil_addrinfo *hints, struct evutil_addrinfo **res, int *portnum);
|
D | http.c | 4493 int portnum = 0; in parse_port() local 4497 portnum = (portnum * 10) + (*s - '0'); in parse_port() 4498 if (portnum < 0) in parse_port() 4500 if (portnum > 65535) in parse_port() 4504 return portnum; in parse_port()
|
/external/libpcap/ |
D | pcap-sita.c | 413 int portnum; in unified_IOP_port_name() local 415 portnum = ((u->chassis - 1) * 64) + ((u->geoslot - 1) * 8) + IOPportnum + 1; in unified_IOP_port_name() 416 pcap_snprintf(buf, bufsize, "%s_%d", proto, portnum); in unified_IOP_port_name()
|
/external/iptables/libxtables/ |
D | xtables.c | 508 unsigned int portnum; in xtables_parse_port() local 510 if (xtables_strtoui(port, NULL, &portnum, 0, UINT16_MAX) || in xtables_parse_port() 511 (portnum = xtables_service_to_port(port, proto)) != (unsigned)-1) in xtables_parse_port() 512 return portnum; in xtables_parse_port()
|
/external/curl/lib/ |
D | connect.c | 258 int portnum = data->set.localportrange; in bindlocal() local 459 if(--portnum > 0) { in bindlocal()
|
/external/webrtc/talk/app/webrtc/ |
D | webrtcsession_unittest.cc | 3907 int portnum = -1; in TEST_P() local 3914 &portnum)); in TEST_P() 3915 EXPECT_EQ(new_send_port, portnum); in TEST_P() 3922 &portnum)); in TEST_P() 3923 EXPECT_EQ(new_recv_port, portnum); in TEST_P()
|