Home
last modified time | relevance | path

Searched refs:sin6_port (Results 1 – 25 of 139) sorted by relevance

123456

/external/ltp/testcases/network/lib6/
Dgetaddrinfo_01.c557 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/
Dsockaddr_utils.cc60 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/
Dtftp.c80 ((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/
Dipv6connect.c62 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/
Dtest_basic.c106 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()
Dtest_inaddr_any.c98 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/
Dctrl_iface_udp.c101 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/
Dtst_net.c49 addr6->sin6_port = 0; in tst_get_unused_port()
85 return addr6->sin6_port; in tst_get_unused_port()
Dsafe_net.c52 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/
Dendpoint.ipp50 data_.v6.sin6_port =
83 data_.v6.sin6_port =
114 data_.v6.sin6_port);
127 data_.v6.sin6_port
/external/ipsec-tools/src/racoon/
Dsockmisc.c179 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/
Dreuseport_bpf_numa.c49 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()
Dreuseport_bpf_cpu.c53 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/
Dnetwork.c190 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/
Dnet-sockaddr.c183 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()
Dnet-yy-inet6.c8 #define INPORT sin6_port
/external/strace/tests-mx32/
Dnet-sockaddr.c183 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()
Dnet-yy-inet6.c8 #define INPORT sin6_port
/external/strace/tests-m32/
Dnet-sockaddr.c183 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()
Dnet-yy-inet6.c8 #define INPORT sin6_port
/external/linux-kselftest/tools/testing/selftests/bpf/
Dtest_socket_cookie.c35 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/
Dctrl_iface_common.c45 if (in6_a->sin6_port != in6_b->sin6_port) in sockaddr_compare()
/external/libevent/
Dipv6-internal.h67 ev_uint16_t sin6_port; member
/external/webrtc/webrtc/test/channel_transport/
Dudp_transport_impl.cc1181 _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/
DdeSocket.c242 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()

123456