Home
last modified time | relevance | path

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

/external/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()
/external/ltp/utils/sctp/func_tests/
Dtest_basic.c90 struct sockaddr *sa_addr; in main() local
355 sa_addr = (struct sockaddr *)addr_buf; in main()
356 if (AF_INET == sa_addr->sa_family) { in main()
357 in_addr = (struct sockaddr_in *)sa_addr; in main()
363 in6_addr = (struct sockaddr_in6 *)sa_addr; in main()
385 sa_addr = (struct sockaddr *)addr_buf; in main()
386 if (AF_INET == sa_addr->sa_family) { in main()
387 in_addr = (struct sockaddr_in *)sa_addr; in main()
393 in6_addr = (struct sockaddr_in6 *)sa_addr; in main()
/external/ppp/pppd/plugins/rp-pppoe/
Dplugin.c199 sp.sa_addr.pppoe.sid = conn->session; in PPPOEConnectDevice()
200 memcpy(sp.sa_addr.pppoe.dev, conn->ifName, IFNAMSIZ); in PPPOEConnectDevice()
201 memcpy(sp.sa_addr.pppoe.remote, conn->peerEth, ETH_ALEN); in PPPOEConnectDevice()
269 sp.sa_addr.pppoe.sid = 0; in PPPOEDisconnectDevice()
270 memcpy(sp.sa_addr.pppoe.dev, conn->ifName, IFNAMSIZ); in PPPOEDisconnectDevice()
271 memcpy(sp.sa_addr.pppoe.remote, conn->peerEth, ETH_ALEN); in PPPOEDisconnectDevice()
/external/ltp/utils/sctp/testlib/
Dsctputil.c370 struct sockaddr *sa_addr; in test_peer_addr() local
388 sa_addr = (struct sockaddr *)addrbuf; in test_peer_addr()
389 switch (sa_addr->sa_family) { in test_peer_addr()
405 if (cmp_addr((sockaddr_storage_t *)sa_addr, in test_peer_addr()
/external/curl/lib/
Dconnect.c1009 if(!getaddressinfo((struct sockaddr*)&addr.sa_addr, in singleipconnect()
1057 Curl_ipv6_scope((struct sockaddr*)&addr.sa_addr)); in singleipconnect()
1084 endpoints.sae_dstaddr = &addr.sa_addr; in singleipconnect()
1092 rc = connect(sockfd, &addr.sa_addr, addr.addrlen); in singleipconnect()
1098 rc = connect(sockfd, &addr.sa_addr, addr.addrlen); in singleipconnect()
1341 memcpy(&addr->sa_addr, ai->ai_addr, addr->addrlen); in Curl_socket()
1366 struct sockaddr_in6 * const sa6 = (void *)&addr->sa_addr; in Curl_socket()
Dconnect.h91 #define sa_addr _sa_ex_u.addr macro
/external/kernel-headers/original/uapi/linux/
Dif_pppox.h70 } sa_addr; member
/external/ipsec-tools/src/racoon/
Disakmp.c3616 struct sockaddr_in6 *sp_addr, *sa_addr; local
3619 sa_addr = (struct sockaddr_in6 *)sa_addr0;
3627 if (sa_addr->sin6_family != AF_INET6) {
3633 if (!IN6_IS_ADDR_LINKLOCAL(&sa_addr->sin6_addr)) {
3639 sp_addr->sin6_scope_id = sa_addr->sin6_scope_id;