Home
last modified time | relevance | path

Searched refs:addrbuf (Results 1 – 25 of 54) sorted by relevance

123

/external/ltp/utils/sctp/lib/
Dbindx.c42 void *addrbuf; in sctp_bindx() local
59 addrbuf = addrs; in sctp_bindx()
61 sa_addr = (struct sockaddr *)addrbuf; in sctp_bindx()
65 addrbuf += sizeof(struct sockaddr_in); in sctp_bindx()
69 addrbuf += sizeof(struct sockaddr_in6); in sctp_bindx()
Dconnectx.c40 const void *addrbuf; in __connectx_addrsize() local
45 addrbuf = addrs; in __connectx_addrsize()
47 sa_addr = (const struct sockaddr *)addrbuf; in __connectx_addrsize()
51 addrbuf += sizeof(struct sockaddr_in); in __connectx_addrsize()
55 addrbuf += sizeof(struct sockaddr_in6); in __connectx_addrsize()
/external/strace/
Dsockaddr.c133 } addrbuf; in decode_inet_addr() local
138 size = sizeof(addrbuf.a4); in decode_inet_addr()
141 size = sizeof(addrbuf.a6); in decode_inet_addr()
152 if (umoven(tcp, addr, size, &addrbuf) < 0) { in decode_inet_addr()
159 return print_inet_addr(family, &addrbuf, size, var_name); in decode_inet_addr()
651 } addrbuf; in decode_sockaddr() local
653 if ((unsigned) addrlen > sizeof(addrbuf.storage)) in decode_sockaddr()
654 addrlen = sizeof(addrbuf.storage); in decode_sockaddr()
656 if (umoven_or_printaddr(tcp, addr, addrlen, addrbuf.pad)) in decode_sockaddr()
659 memset(&addrbuf.pad[addrlen], 0, sizeof(addrbuf.pad) - addrlen); in decode_sockaddr()
[all …]
/external/ipsec-tools/src/libipsec/
Dpolicy_parse.y111 static struct sockaddr *parse_sockaddr __P((struct _val *addrbuf,
375 parse_sockaddr(addrbuf, portbuf) in parse_sockaddr() argument
376 struct _val *addrbuf; in parse_sockaddr()
385 if ((addr = malloc(addrbuf->len + 1)) == NULL) {
398 strncpy(addr, addrbuf->buf, addrbuf->len);
399 addr[addrbuf->len] = '\0';
/external/openssh/
Daddrmatch.c317 char addrbuf[64], *mp, *cp; in addr_pton_cidr() local
320 if (p == NULL || strlcpy(addrbuf, p, sizeof(addrbuf)) >= sizeof(addrbuf)) in addr_pton_cidr()
323 if ((mp = strchr(addrbuf, '/')) != NULL) { in addr_pton_cidr()
331 if (addr_pton(addrbuf, &tmp) == -1) in addr_pton_cidr()
/external/curl/lib/
Dhostip6.c139 char addrbuf[128]; in Curl_getaddrinfo() local
174 if((1 == Curl_inet_pton(AF_INET, hostname, addrbuf)) || in Curl_getaddrinfo()
175 (1 == Curl_inet_pton(AF_INET6, hostname, addrbuf))) { in Curl_getaddrinfo()
/external/ltp/utils/sctp/testlib/
Dsctputil.c375 void *addrbuf; in test_peer_addr() local
391 addrbuf = addrs; in test_peer_addr()
393 sa_addr = (struct sockaddr *)addrbuf; in test_peer_addr()
397 addrbuf += sizeof(struct sockaddr_in); in test_peer_addr()
401 addrbuf += sizeof(struct sockaddr_in6); in test_peer_addr()
/external/ltp/testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/tirpc/tirpc_addrmanagmt_rpcb_getaddr/
Dtirpc_rpcb_getaddr.c55 char addrbuf[ADDRBUFSIZE]; in main() local
60 svcaddr.buf = addrbuf; in main()
Dtirpc_rpcb_getaddr_limits.c54 char addrbuf[ADDRBUFSIZE]; in main() local
59 svcaddr.buf = addrbuf; in main()
/external/ltp/testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/tirpc/tirpc_expertlevel_clnt_tli_create/
Dtirpc_clnt_tli_create.c56 char addrbuf[ADDRBUFSIZE]; in main() local
72 svcaddr.buf = addrbuf; in main()
Dtirpc_clnt_tli_create_limits.c66 char addrbuf[ADDRBUFSIZE]; in main() local
83 svcaddr.buf = addrbuf; in main()
/external/python/cpython3/Modules/
Dsocketmodule.c2472 sock_addr_t *addrbuf; member
2485 struct sockaddr *addr = SAS2SA(ctx->addrbuf); in sock_accept_impl()
2524 sock_addr_t addrbuf; in sock_accept() local
2534 memset(&addrbuf, 0, addrlen); in sock_accept()
2540 ctx.addrbuf = &addrbuf; in sock_accept()
2570 addr = makesockaddr(s->sock_fd, SAS2SA(&addrbuf), in sock_accept()
2921 sock_addr_t addrbuf; in sock_bind() local
2925 if (!getsockaddrarg(s, addro, SAS2SA(&addrbuf), &addrlen)) in sock_bind()
2928 res = bind(s->sock_fd, SAS2SA(&addrbuf), addrlen); in sock_bind()
3085 sock_addr_t addrbuf; in sock_connect() local
[all …]
/external/ltp/testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/tirpc/tirpc_bottomlevel_clnt_vc_create/
Dtirpc_clnt_vc_create.c55 char addrbuf[ADDRBUFSIZE]; in main() local
66 svcaddr.buf = addrbuf; in main()
Dtirpc_clnt_vc_create_limits.c66 char addrbuf[ADDRBUFSIZE]; in main() local
79 svcaddr.buf = addrbuf; in main()
/external/ltp/testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/tirpc/tirpc_bottomlevel_clnt_dg_create/
Dtirpc_clnt_dg_create.c52 char addrbuf[ADDRBUFSIZE]; in main() local
64 svcaddr.buf = addrbuf; in main()
/external/ltp/testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/tirpc/tirpc_err_svcerr_noprog/
Dtirpc_svcerr_noprog.c56 char addrbuf[ADDRBUFSIZE]; in main() local
78 svcaddr.buf = addrbuf; in main()
/external/ltp/testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/tirpc/tirpc_expertlevel_rpcb_rmtcall/
Dtirpc_rpcb_rmtcall.c55 char addrbuf[ADDRBUFSIZE]; in main() local
78 svcaddr.buf = addrbuf; in main()
Dtirpc_rpcb_rmtcall_stress.c57 char addrbuf[ADDRBUFSIZE]; in main() local
84 svcaddr.buf = addrbuf; in main()
/external/ltp/testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/tirpc/tirpc_err_svcerr_progvers/
Dtirpc_svcerr_progvers.c56 char addrbuf[ADDRBUFSIZE]; in main() local
78 svcaddr.buf = addrbuf; in main()
/external/ltp/testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/tirpc/tirpc_err_svcerr_weakauth/
Dtirpc_svcerr_weakauth.c56 char addrbuf[ADDRBUFSIZE]; in main() local
78 svcaddr.buf = addrbuf; in main()
/external/ltp/testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/tirpc/tirpc_err_svcerr_systemerr/
Dtirpc_svcerr_systemerr.c56 char addrbuf[ADDRBUFSIZE]; in main() local
78 svcaddr.buf = addrbuf; in main()
/external/ltp/testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/tirpc/tirpc_err_svcerr_noproc/
Dtirpc_svcerr_noproc.c56 char addrbuf[ADDRBUFSIZE]; in main() local
78 svcaddr.buf = addrbuf; in main()
/external/ltp/testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/tirpc/tirpc_expertlevel_clnt_call/
Dtirpc_expertlevel_clnt_call.c56 char addrbuf[ADDRBUFSIZE]; in main() local
79 svcaddr.buf = addrbuf; in main()
/external/ltp/testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/tirpc/tirpc_bottomlevel_clnt_call/
Dtirpc_bottomlevel_clnt_call.c52 char addrbuf[ADDRBUFSIZE]; in main() local
71 svcaddr.buf = addrbuf; in main()
/external/python/cpython2/Modules/
Dsocketmodule.c1725 sock_addr_t addrbuf; in sock_accept() local
1735 memset(&addrbuf, 0, addrlen); in sock_accept()
1746 newfd = accept(s->sock_fd, SAS2SA(&addrbuf), &addrlen); in sock_accept()
1769 addr = makesockaddr(s->sock_fd, SAS2SA(&addrbuf), in sock_accept()
2010 sock_addr_t addrbuf; local
2014 if (!getsockaddrarg(s, addro, SAS2SA(&addrbuf), &addrlen))
2017 res = bind(s->sock_fd, SAS2SA(&addrbuf), addrlen);
2150 sock_addr_t addrbuf; local
2155 if (!getsockaddrarg(s, addro, SAS2SA(&addrbuf), &addrlen))
2159 res = internal_connect(s, SAS2SA(&addrbuf), addrlen, &timeout);
[all …]

123