Home
last modified time | relevance | path

Searched refs:sa_addr (Results 1 – 9 of 9) sorted by relevance

/third_party/ltp/utils/sctp/lib/
Dbindx.c43 struct sockaddr *sa_addr; in sctp_bindx() local
61 sa_addr = (struct sockaddr *)addrbuf; in sctp_bindx()
62 switch (sa_addr->sa_family) { in sctp_bindx()
Dconnectx.c41 const struct sockaddr *sa_addr; in __connectx_addrsize() local
47 sa_addr = (const struct sockaddr *)addrbuf; in __connectx_addrsize()
48 switch (sa_addr->sa_family) { in __connectx_addrsize()
/third_party/ltp/utils/sctp/func_tests/
Dtest_basic.c91 struct sockaddr *sa_addr; in main() local
359 sa_addr = (struct sockaddr *)addr_buf; in main()
360 if (AF_INET == sa_addr->sa_family) { in main()
361 in_addr = (struct sockaddr_in *)sa_addr; in main()
367 in6_addr = (struct sockaddr_in6 *)sa_addr; in main()
389 sa_addr = (struct sockaddr *)addr_buf; in main()
390 if (AF_INET == sa_addr->sa_family) { in main()
391 in_addr = (struct sockaddr_in *)sa_addr; in main()
397 in6_addr = (struct sockaddr_in6 *)sa_addr; in main()
/third_party/libuv/src/unix/
Dbsd-ifaddrs.c139 struct sockaddr_dl* sa_addr; in uv_interface_addresses() local
140 sa_addr = (struct sockaddr_dl*)(ent->ifa_addr); in uv_interface_addresses()
141 memcpy(address->phys_addr, LLADDR(sa_addr), sizeof(address->phys_addr)); in uv_interface_addresses()
Dsunos.c745 struct sockaddr_dl* sa_addr; in uv__set_phys_addr() local
751 sa_addr = (struct sockaddr_dl*)(ent->ifa_addr); in uv__set_phys_addr()
752 memcpy(address->phys_addr, LLADDR(sa_addr), sizeof(address->phys_addr)); in uv__set_phys_addr()
Daix.c1106 struct sockaddr_dl* sa_addr; in uv_interface_addresses() local
1242 sa_addr = (struct sockaddr_dl*) &p->ifr_addr; in uv_interface_addresses()
1243 memcpy(address->phys_addr, LLADDR(sa_addr), sizeof(address->phys_addr)); in uv_interface_addresses()
/third_party/ltp/utils/sctp/testlib/
Dsctputil.c373 struct sockaddr *sa_addr; in test_peer_addr() local
393 sa_addr = (struct sockaddr *)addrbuf; in test_peer_addr()
394 switch (sa_addr->sa_family) { in test_peer_addr()
411 if (cmp_addr((sockaddr_storage_t *)sa_addr, in test_peer_addr()
/third_party/curl/lib/
Dconnect.c1187 if(!Curl_addr2string((struct sockaddr*)&addr.sa_addr, addr.addrlen, in singleipconnect()
1236 Curl_ipv6_scope((struct sockaddr*)&addr.sa_addr)); in singleipconnect()
1270 endpoints.sae_dstaddr = &addr.sa_addr; in singleipconnect()
1278 rc = connect(sockfd, &addr.sa_addr, addr.addrlen); in singleipconnect()
1281 rc = connect(sockfd, &addr.sa_addr, addr.addrlen); in singleipconnect()
1288 rc = connect(sockfd, &addr.sa_addr, addr.addrlen); in singleipconnect()
1291 rc = connect(sockfd, &addr.sa_addr, addr.addrlen); in singleipconnect()
1297 rc = connect(sockfd, &addr.sa_addr, addr.addrlen); in singleipconnect()
1307 &addr.sa_addr, addr.addrlen); in singleipconnect()
1585 memcpy(&addr->sa_addr, ai->ai_addr, addr->addrlen); in Curl_socket()
[all …]
Dconnect.h107 #define sa_addr _sa_ex_u.addr macro