Home
last modified time | relevance | path

Searched refs:src_addr (Results 1 – 2 of 2) sorted by relevance

/packages/modules/Connectivity/tests/cts/net/jni/
DNativeMultinetworkJni.cpp446 struct sockaddr_storage src_addr; in Java_android_net_cts_MultinetworkApiTest_runDatagramCheck() local
447 socklen_t src_addrlen = sizeof(src_addr); in Java_android_net_cts_MultinetworkApiTest_runDatagramCheck()
448 if (getsockname(fd, (struct sockaddr *)&src_addr, &src_addrlen) != 0) { in Java_android_net_cts_MultinetworkApiTest_runDatagramCheck()
452 sockaddr_ntop((const struct sockaddr *)&src_addr, sizeof(src_addr), addrstr, sizeof(addrstr)); in Java_android_net_cts_MultinetworkApiTest_runDatagramCheck()
/packages/modules/DnsResolver/
Dgetaddrinfo.cpp1029 sockaddr_union src_addr; member
1204 scope_src1 = _get_scope(&a1->src_addr.sa); in _rfc6724_compare()
1208 scope_src2 = _get_scope(&a2->src_addr.sa); in _rfc6724_compare()
1227 label_src1 = _get_label(&a1->src_addr.sa); in _rfc6724_compare()
1231 label_src2 = _get_label(&a2->src_addr.sa); in _rfc6724_compare()
1264 const struct sockaddr_in6* a1_src = &a1->src_addr.sin6; in _rfc6724_compare()
1266 const struct sockaddr_in6* a2_src = &a2->src_addr.sin6; in _rfc6724_compare()
1291 static int _find_src_addr(const struct sockaddr* addr, struct sockaddr* src_addr, unsigned mark, in _find_src_addr() argument
1334 if (src_addr && getsockname(sock, src_addr, &len) == -1) { in _find_src_addr()
1373 has_src_addr = _find_src_addr(cur->ai_addr, &elems[i].src_addr.sa, mark, uid); in _rfc6724_sort()