/external/ltp/testcases/network/lib6/ |
D | getaddrinfo_01.c | 557 err |= psin6->sin6_port != 0; in gaiv6() 568 psin6 ? psin6->sin6_port : 0, in gaiv6() 569 psin6 ? htons(psin6->sin6_port) : 0); in gaiv6() 634 err |= psin6->sin6_port != htons(servnum); in gaiv6() 645 psin6 ? psin6->sin6_port : 0, in gaiv6() 646 psin6 ? htons(psin6->sin6_port) : 0); in gaiv6() 683 err |= psin6->sin6_port != servnum; in gaiv6() 694 psin6 ? psin6->sin6_port : 0, in gaiv6() 695 psin6 ? htons(psin6->sin6_port) : 0); in gaiv6() 751 err |= psin6->sin6_port != servnum; in gaiv6() [all …]
|
/external/grpc-grpc/src/core/lib/iomgr/ |
D | sockaddr_utils.cc | 60 addr4_out->sin_port = addr6->sin6_port; in grpc_sockaddr_is_v4mapped() 84 addr6_out->sin6_port = addr4->sin_port; in grpc_sockaddr_to_v4mapped() 118 *port_out = grpc_ntohs(addr6->sin6_port); in grpc_sockaddr_is_wildcard() 149 wild_out->sin6_port = grpc_htons(static_cast<uint16_t>(port)); in grpc_sockaddr_make_wildcard6() 179 port = grpc_ntohs(addr6->sin6_port); in grpc_sockaddr_to_string() 267 return grpc_ntohs(((grpc_sockaddr_in6*)addr)->sin6_port); in grpc_sockaddr_get_port() 290 ((grpc_sockaddr_in6*)addr)->sin6_port = in grpc_sockaddr_set_port()
|
/external/toybox/toys/pending/ |
D | tftp.c | 80 ((struct sockaddr_in6 *)server)->sin6_port = htons(port); 285 if (TT.af == AF_INET6) ((struct sockaddr_in6 *)&server)->sin6_port = 0; in file_get() 308 ((TT.af == AF_INET6) && ((struct sockaddr_in6 *)&server)->sin6_port in file_get() 309 && (((struct sockaddr_in6 *)&server)->sin6_port != in file_get() 310 ((struct sockaddr_in6 *)&from)->sin6_port))) { in file_get() 347 if ((TT.af == AF_INET6) && !((struct sockaddr_in6 *)&server)->sin6_port) in file_get() 348 ((struct sockaddr_in6 *)&server)->sin6_port = in file_get() 349 ((struct sockaddr_in6 *)&from)->sin6_port; in file_get()
|
/external/autotest/client/tests/ipv6connect/src/ |
D | ipv6connect.c | 62 sa.sin6_port = port; in ConnectAndAccept() 110 sa.sin6_port = 0; in CreateServer() 123 *port = sa.sin6_port; in CreateServer() 140 sa.sin6_port = 0; in CreateServerConnectAndAccept() 182 sa4.sin_port = sa.sin6_port; in CreateServerConnectAndAccept() 233 sa.sin6_port = 0; in ThreadedStartServer() 322 sa4.sin_port = sa.sin6_port; in ThreadedCreateServerConnectAndAccept()
|
/external/ltp/utils/sctp/func_tests/ |
D | test_basic.c | 106 loop1.v6.sin6_port = htons(SCTP_TESTPORT_1); in main() 110 loop2.v6.sin6_port = htons(SCTP_TESTPORT_2); in main() 203 if (msgname.v6.sin6_port != htons(SCTP_TESTPORT_1)) { in main() 259 if (msgname.v6.sin6_port != htons(SCTP_TESTPORT_1)) { in main() 367 ntohs(in6_addr->sin6_port)); in main() 397 ntohs(in6_addr->sin6_port)); in main() 422 if (msgname.v6.sin6_port != htons(SCTP_TESTPORT_1)) { in main()
|
D | test_inaddr_any.c | 98 loop.v6.sin6_port = 0; in main() 102 anyaddr.v6.sin6_port = 0; in main() 144 loop.v6.sin6_port = anyaddr.v6.sin6_port; in main()
|
/external/wpa_supplicant_8/wpa_supplicant/ |
D | ctrl_iface_udp.c | 101 ntohs(from->sin6_port)); in wpa_supplicant_ctrl_iface_attach() 126 if (from->sin6_port == dst->addr.sin6_port && 132 ntohs(from->sin6_port)); 173 if (from->sin6_port == dst->addr.sin6_port && 179 ntohs(from->sin6_port)); 437 addr.sin6_port = htons(port); 540 ntohs(dst->addr.sin6_port));
|
/external/ltp/lib/ |
D | tst_net.c | 49 addr6->sin6_port = 0; in tst_get_unused_port() 85 return addr6->sin6_port; in tst_get_unused_port()
|
D | safe_net.c | 52 if (ntohs(sin6->sin6_port) != 0) { in tst_sock_addr() 54 ntohs(sin6->sin6_port)); in tst_sock_addr() 101 return ntohs(sin6->sin6_port); in tst_getsockport()
|
/external/parameter-framework/asio-1.10.6/include/asio/ip/detail/impl/ |
D | endpoint.ipp | 50 data_.v6.sin6_port = 83 data_.v6.sin6_port = 114 data_.v6.sin6_port); 127 data_.v6.sin6_port
|
/external/ipsec-tools/src/racoon/ |
D | sockmisc.c | 179 port1 = ((struct sockaddr_in6 *)addr1)->sin6_port; 180 port2 = ((struct sockaddr_in6 *)addr2)->sin6_port; 242 port1 = ((struct sockaddr_in6 *)addr1)->sin6_port; 243 port2 = ((struct sockaddr_in6 *)addr2)->sin6_port; 463 sin6->sin6_port = 464 ((struct sockaddr_in6 *)&ss)->sin6_port; 499 sin6->sin6_port = 500 ((struct sockaddr_in6 *)&ss)->sin6_port; 1152 port = ((struct sockaddr_in6 *)addr)->sin6_port; in extract_port() 1175 port_ptr = &(((struct sockaddr_in6 *)addr)->sin6_port); in get_port_ptr()
|
/external/linux-kselftest/tools/testing/selftests/net/ |
D | reuseport_bpf_numa.c | 49 addr6->sin6_port = htons(PORT); in build_rcv_group() 130 saddr6->sin6_port = 0; in send_from_node() 135 daddr6->sin6_port = htons(PORT); in send_from_node()
|
D | reuseport_bpf_cpu.c | 53 addr6->sin6_port = htons(PORT); in build_rcv_group() 118 saddr6->sin6_port = 0; in send_from_cpu() 123 daddr6->sin6_port = htons(PORT); in send_from_cpu()
|
/external/dnsmasq/src/ |
D | network.c | 190 addr.in6.sin6_port = htons(daemon->port); in iface_allowed_v6() 246 addr.in6.sin6_port = htons(port); in create_ipv6_listener() 597 addr.in6.sin6_port = port; in random_sock() 619 addr_copy.in6.sin6_port = 0; in local_bind() 652 addr->in6.sin6_port == htons(0)) in allocate_sfd() 704 addr.in6.sin6_port = htons(daemon->query_port); in pre_allocate_sfds() 966 addr.in6.sin6_port = htons(NAMESERVER_PORT); in set_servers() 969 source_addr.in6.sin6_port = htons(daemon->query_port); in set_servers() 1059 addr.in6.sin6_port = htons(NAMESERVER_PORT); in reload_servers() 1062 source_addr.in6.sin6_port = htons(daemon->query_port); in reload_servers()
|
/external/strace/tests-m32/ |
D | net-sockaddr.c | 183 ntohs(in6->sin6_port), h_addr, in check_in6_linklocal() 194 ntohs(in6->sin6_port), h_addr, ntohl(in6->sin6_flowinfo), in check_in6_linklocal() 208 in6->sin6_port = htons(h_port); in check_in6() 225 in6->sin6_port = htons(h_port); in check_in6() 239 in6->sin6_port = htons(h_port); in check_in6() 252 in6->sin6_port = 0; in check_in6()
|
D | net-yy-inet6.c | 8 #define INPORT sin6_port
|
/external/strace/tests/ |
D | net-sockaddr.c | 183 ntohs(in6->sin6_port), h_addr, in check_in6_linklocal() 194 ntohs(in6->sin6_port), h_addr, ntohl(in6->sin6_flowinfo), in check_in6_linklocal() 208 in6->sin6_port = htons(h_port); in check_in6() 225 in6->sin6_port = htons(h_port); in check_in6() 239 in6->sin6_port = htons(h_port); in check_in6() 252 in6->sin6_port = 0; in check_in6()
|
D | net-yy-inet6.c | 8 #define INPORT sin6_port
|
/external/strace/tests-mx32/ |
D | net-sockaddr.c | 183 ntohs(in6->sin6_port), h_addr, in check_in6_linklocal() 194 ntohs(in6->sin6_port), h_addr, ntohl(in6->sin6_flowinfo), in check_in6_linklocal() 208 in6->sin6_port = htons(h_port); in check_in6() 225 in6->sin6_port = htons(h_port); in check_in6() 239 in6->sin6_port = htons(h_port); in check_in6() 252 in6->sin6_port = 0; in check_in6()
|
D | net-yy-inet6.c | 8 #define INPORT sin6_port
|
/external/linux-kselftest/tools/testing/selftests/bpf/ |
D | test_socket_cookie.c | 35 addr.sin6_port = 0; in start_server() 122 cookie_expected_value = (ntohs(addr.sin6_port) << 8) | 0xFF; in validate_map()
|
/external/wpa_supplicant_8/src/common/ |
D | ctrl_iface_common.c | 45 if (in6_a->sin6_port != in6_b->sin6_port) in sockaddr_compare()
|
/external/libevent/ |
D | ipv6-internal.h | 67 ev_uint16_t sin6_port; member
|
/external/webrtc/webrtc/test/channel_transport/ |
D | udp_transport_impl.cc | 1181 _remoteRTPAddr._sockaddr_in6.sin6_port = Htons(_destPort); in BuildRemoteRTPAddr() 1210 _remoteRTCPAddr._sockaddr_in6.sin6_port = Htons(_destPortRTCP); in BuildRemoteRTCPAddr() 1255 _localRTPAddr._sockaddr_in6.sin6_port = Htons(_srcPort); in BindRTPSendSocket() 1307 _localRTCPAddr._sockaddr_in6.sin6_port = Htons(_srcPortRTCP); in BindRTCPSendSocket() 1371 stLclName._sockaddr_in6.sin6_port = Htons(_localPort); in BindLocalRTPSocket() 1444 stLclName._sockaddr_in6.sin6_port = Htons(_localPortRTCP); in BindLocalRTCPSocket() 1748 remoteAddr._sockaddr_in6.sin6_port = Htons(portnr); in BuildSockaddrIn() 1888 to._sockaddr_in6.sin6_port = Htons(rtpPort); in SendRTPPacketTo() 1917 to._sockaddr_in6.sin6_port = Htons(rtcpPort); in SendRTCPPacketTo() 2778 source_port = address._sockaddr_in6.sin6_port; in IPAddress() [all …]
|
/external/deqp/framework/delibs/deutil/ |
D | deSocket.c | 242 DE_STATIC_ASSERT(sizeof(((struct sockaddr_in6*)DE_NULL)->sin6_port) == sizeof(deUint16)); 327 ((struct sockaddr_in6*)bsdAddr)->sin6_port = deHostToNetworkOrder16((deUint16)address->port); in deSocketAddressToBsdAddress() 362 addr6->sin6_port = deHostToNetworkOrder16((deUint16)address->port); in deSocketAddressToBsdAddress() 398 deSocketAddress_setPort(address, (int)deNetworkToHostOrder16((deUint16)addr6->sin6_port)); in deBsdAddressToSocketAddress()
|