/external/qemu/slirp/ |
D | udp.c | 286 ui->ui_sport = saddr->sin_port; in udp_output2() 287 ui->ui_dport = daddr->sin_port; in udp_output2() 325 daddr.sin_port = so->so_lport; in udp_output() 342 addr.sin_port = 0; in udp_attach() 470 OTOSIN(omsg, ctl_addr)->sin_port = addr.sin_port; in udp_emu() 477 OTOSIN(nmsg, ctl_addr)->sin_port = addr.sin_port; in udp_emu() 519 OTOSIN(omsg, addr)->sin_port, in udp_emu() 530 OTOSIN(omsg, addr)->sin_port = addr.sin_port; in udp_emu() 532 OTOSIN(nmsg, addr)->sin_port = addr.sin_port; in udp_emu() 536 temp_port = OTOSIN(omsg, ctl_addr)->sin_port; in udp_emu() [all …]
|
D | tftp.c | 158 saddr.sin_port = recv_tp->udp.uh_dport; in tftp_send_oack() 161 daddr.sin_port = spt->client_port; in tftp_send_oack() 198 saddr.sin_port = recv_tp->udp.uh_dport; in tftp_send_error() 201 daddr.sin_port = spt->client_port; in tftp_send_error() 244 saddr.sin_port = recv_tp->udp.uh_dport; in tftp_send_data() 247 daddr.sin_port = spt->client_port; in tftp_send_data()
|
/external/wpa_supplicant_8/src/wps/ |
D | http_client.c | 62 ntohs(c->dst.sin_port)); in http_client_got_response() 68 ntohs(c->dst.sin_port)); in http_client_got_response() 91 inet_ntoa(c->dst.sin_addr), ntohs(c->dst.sin_port), in http_client_tx_ready() 116 inet_ntoa(c->dst.sin_addr), ntohs(c->dst.sin_port)); in http_client_tx_ready() 227 dst->sin_port = htons(atoi(port)); in http_client_url_parse() 229 dst->sin_port = htons(80); in http_client_url_parse() 276 ntohs(dst.sin_port)); in http_client_url()
|
D | http_server.c | 50 ntohs(req->cli.sin_port)); in http_request_cb() 56 ntohs(req->cli.sin_port)); in http_request_cb() 139 ntohs(req->cli.sin_port)); in http_request_send() 214 inet_ntoa(addr.sin_addr), ntohs(addr.sin_port)); in http_server_cb() 267 sin.sin_port = htons(srv->port); in http_server_init()
|
D | wps_upnp_ssdp.c | 250 dest.sin_port = htons(UPNP_MULTICAST_PORT); in advertisement_state_machine_stop() 299 dest.sin_port = htons(UPNP_MULTICAST_PORT); in advertisement_state_machine_handler() 408 ntohs(a->client.sin_port)); in msearchreply_state_machine_handler() 423 ntohs(a->client.sin_port)); in msearchreply_state_machine_handler() 721 "%s", inet_ntoa(addr.sin_addr), ntohs(addr.sin_port), buf); in ssdp_listener_handler() 755 addr.sin_port = htons(UPNP_MULTICAST_PORT); in ssdp_listener_open() 832 sin->sin_port = 0; in add_ssdp_network() 836 sin->sin_port = 0; in add_ssdp_network()
|
/external/wpa_supplicant_8/wpa_supplicant/ |
D | ctrl_iface_udp.c | 84 inet_ntoa(from->sin_addr), ntohs(from->sin_port)); in wpa_supplicant_ctrl_iface_attach() 115 from->sin_port == dst->addr.sin_port) { 118 ntohs(from->sin_port)); 162 from->sin_port == dst->addr.sin_port) { 165 ntohs(from->sin_port)); 383 addr.sin_port = htons(port); 480 ntohs(dst->addr.sin_port)); 649 addr.sin_port = htons(port);
|
/external/chromium_org/third_party/openssl/openssl/apps/ |
D | s_cb.c | 795 length += sizeof(peer.s4.sin_port); in generate_cookie_callback() 819 &peer.s4.sin_port, in generate_cookie_callback() 820 sizeof(peer.s4.sin_port)); in generate_cookie_callback() 821 memcpy(buffer + sizeof(peer.s4.sin_port), in generate_cookie_callback() 876 length += sizeof(peer.s4.sin_port); in verify_cookie_callback() 900 &peer.s4.sin_port, in verify_cookie_callback() 901 sizeof(peer.s4.sin_port)); in verify_cookie_callback() 902 memcpy(buffer + sizeof(peer.s4.sin_port), in verify_cookie_callback()
|
/external/openssl/apps/ |
D | s_cb.c | 799 length += sizeof(peer.s4.sin_port); in generate_cookie_callback() 823 &peer.s4.sin_port, in generate_cookie_callback() 824 sizeof(peer.s4.sin_port)); in generate_cookie_callback() 825 memcpy(buffer + sizeof(peer.s4.sin_port), in generate_cookie_callback() 880 length += sizeof(peer.s4.sin_port); in verify_cookie_callback() 904 &peer.s4.sin_port, in verify_cookie_callback() 905 sizeof(peer.s4.sin_port)); in verify_cookie_callback() 906 memcpy(buffer + sizeof(peer.s4.sin_port), in verify_cookie_callback()
|
/external/netperf/ |
D | nettest_xti.c | 809 server.sin_port = (short)xti_tcp_stream_response->data_port_number; in send_xti_tcp_stream() 810 server.sin_port = htons(server.sin_port); in send_xti_tcp_stream() 831 printf(" port: %d\n",ntohs(server.sin_port)); in send_xti_tcp_stream() 1320 myaddr_in.sin_port = 0; in recv_xti_tcp_stream() 1402 ntohs(myaddr_in.sin_port)); in recv_xti_tcp_stream() 1446 (int) ntohs(myaddr_in.sin_port); in recv_xti_tcp_stream() 1532 ntohs(peeraddr_in.sin_port)); in recv_xti_tcp_stream() 1996 server.sin_port = (short)xti_tcp_rr_response->data_port_number; in send_xti_tcp_rr() 1997 server.sin_port = htons(server.sin_port); in send_xti_tcp_rr() 2016 printf(" port: %d\n",ntohs(server.sin_port)); in send_xti_tcp_rr() [all …]
|
/external/dnsmasq/src/ |
D | network.c | 240 addr.in.sin_port = htons(daemon->port); in iface_allowed_v4() 329 addr.in.sin_port = htons(daemon->port); in create_wildcard_listeners() 363 addr.in.sin_port = htons(TFTP_PORT); in create_wildcard_listeners() 469 short save = iface->addr.in.sin_port; in create_bound_listener() 470 iface->addr.in.sin_port = htons(TFTP_PORT); in create_bound_listener() 476 iface->addr.in.sin_port = save; in create_bound_listener() 633 short save = iface->addr.in.sin_port; in create_bound_listeners() 634 iface->addr.in.sin_port = htons(TFTP_PORT); in create_bound_listeners() 640 iface->addr.in.sin_port = save; in create_bound_listeners() 678 addr.in.sin_port = port; in random_sock() [all …]
|
D | util.c | 257 s1->in.sin_port == s2->in.sin_port && in sockaddr_isequal() 334 port = ntohs(addr->in.sin_port); in prettyprint_addr() 343 port = ntohs(addr->in.sin_port); in prettyprint_addr()
|
D | dhcp.c | 70 saddr.sin_port = htons(daemon->dhcp_server_port); in dhcp_init() 270 dest.sin_port = htons(daemon->dhcp_server_port); in dhcp_packet() 280 dest.sin_port == 0 || dest.sin_addr.s_addr == 0) in dhcp_packet() 282 dest.sin_port = htons(daemon->dhcp_client_port); in dhcp_packet() 302 dest.sin_port = htons(daemon->dhcp_client_port); in dhcp_packet() 310 dest.sin_port = htons(daemon->dhcp_client_port); in dhcp_packet() 323 dest.sin_port = htons(daemon->dhcp_client_port); in dhcp_packet() 335 dest.sin_port = htons(daemon->dhcp_client_port); in dhcp_packet()
|
/external/valgrind/main/none/tests/ |
D | fdleak_ipv4.c | 27 addr.sin_port = htons(12321); in server() 47 addr.sin_port = htons(12321); in client()
|
/external/chromium_org/third_party/libevent/ |
D | evutil.c | 104 listen_addr.sin_port = 0; /* kernel chooses port. */ in evutil_socketpair() 138 || listen_addr.sin_port != connect_addr.sin_port) in evutil_socketpair()
|
/external/chromium_org/tools/android/file_poller/ |
D | file_poller.cc | 103 socket_info.sin_port = htons(0); in poll_content() 108 printf("%d\n", ntohs(socket_info.sin_port)); in poll_content() 174 socket_info.sin_port = htons(port); in content_collection()
|
/external/lldb/tools/debugserver/source/ |
D | RNBSocket.cpp | 81 listen_addr.sin_port = htons (port); in Listen() 108 sa.sin_port = htons (port); in Listen() 132 port = ntohs (sa.sin_port); in Listen() 228 sa.sin_port = htons (port); in Connect()
|
/external/chromium_org/net/socket/ |
D | tcp_listen_socket.cc | 62 addr.sin_port = base::HostToNet16(port); in CreateAndBind() 96 *port = base::NetToHost16(addr.sin_port); in CreateAndBindAnyPort()
|
/external/chromium_org/native_client_sdk/src/tests/nacl_io_socket_test/ |
D | socket_test.cc | 43 addr->sin_port = htons(port); in IP4ToSockAddr() 249 EXPECT_EQ(PORT1, htons(addr.sin_port)); in TEST_F() 276 EXPECT_EQ(0, htons(addr.sin_port)); in TEST_F() 287 EXPECT_NE(0, htons(addr.sin_port)); in TEST_F() 298 EXPECT_NE(0, htons(addr.sin_port)); in TEST_F() 633 ASSERT_EQ(0xabab, client_addr[1].sin_port); in TEST_F() 640 ASSERT_EQ(client_addr[1].sin_port, client_addr[0].sin_port); in TEST_F() 654 ASSERT_EQ(client_addr2.sin_port, 0); in TEST_F()
|
/external/chromium_org/third_party/webrtc/base/ |
D | socketaddress.cc | 269 saddr->sin_port = HostToNetwork16(port_); in ToSockAddr() 281 SetPort(NetworkToHost16(saddr.sin_port)); in FromSockAddr() 299 saddr->sin_port = HostToNetwork16(port); in ToSockAddrStorageHelper() 362 NetworkToHost16(saddr->sin_port)); in SocketAddressFromSockAddrStorage()
|
/external/chromium_org/third_party/libjingle/source/talk/base/ |
D | socketaddress.cc | 286 saddr->sin_port = HostToNetwork16(port_); in ToSockAddr() 298 SetPort(NetworkToHost16(saddr.sin_port)); in FromSockAddr() 316 saddr->sin_port = HostToNetwork16(port); in ToSockAddrStorageHelper() 379 NetworkToHost16(saddr->sin_port)); in SocketAddressFromSockAddrStorage()
|
/external/ipsec-tools/src/racoon/ |
D | sockmisc.c | 162 port1 = ((struct sockaddr_in *)addr1)->sin_port; 163 port2 = ((struct sockaddr_in *)addr2)->sin_port; 227 port1 = ((struct sockaddr_in *)addr1)->sin_port; 228 port2 = ((struct sockaddr_in *)addr2)->sin_port; 470 sin->sin_port = 471 ((struct sockaddr_in *)&ss)->sin_port; 506 sin->sin_port = ((struct sockaddr_in *)&ss)->sin_port; 1134 port = ((struct sockaddr_in *)addr)->sin_port; in extract_port() 1157 port_ptr = &(((struct sockaddr_in *)addr)->sin_port); in get_port_ptr()
|
/external/mesa3d/src/gallium/auxiliary/util/ |
D | u_network.c | 124 sa.sin_port = htons(port); in u_socket_connect() 151 sa.sin_port = htons(portnum); in u_socket_listen_on_port()
|
/external/chromium_org/third_party/mesa/src/src/gallium/auxiliary/util/ |
D | u_network.c | 124 sa.sin_port = htons(port); in u_socket_connect() 151 sa.sin_port = htons(portnum); in u_socket_listen_on_port()
|
/external/lldb/source/Host/common/ |
D | SocketAddress.cpp | 128 case AF_INET: return m_socket_addr.sa_ipv4.sin_port; in GetPort() 140 m_socket_addr.sa_ipv4.sin_port = htons(port); in SetPort()
|
/external/chromium_org/native_client_sdk/src/tests/nacl_io_test/ |
D | host_resolver_test.cc | 124 ASSERT_EQ(expected_port, in->sin_port); in TEST_F() 133 ASSERT_EQ(expected_port, in->sin_port); in TEST_F() 167 ASSERT_EQ(expected_port, in->sin_port); in TEST_F() 214 ASSERT_EQ(expected_port, in->sin_port); in TEST_F()
|