Home
last modified time | relevance | path

Searched refs:addrs (Results 1 – 25 of 92) sorted by relevance

1234

/third_party/elfutils/libdwfl/
Dframe_unwind.c90 Dwarf_Addr *addrs; member
107 new_addrs = realloc (stack->addrs, in do_push()
108 stack->allocated * sizeof (*stack->addrs)); in do_push()
114 stack->addrs = new_addrs; in do_push()
116 stack->addrs[stack->used++] = val; in do_push()
128 *val = stack->addrs[--stack->used]; in do_pop()
147 .addrs = NULL, in expr_eval()
171 free (stack.addrs); in expr_eval()
178 free (stack.addrs); in expr_eval()
198 free (stack.addrs); in expr_eval()
[all …]
Dlink_map.c250 size_t n, GElf_Addr *addrs /* [4] */) in read_addrs() argument
278 addrs[i] = BE32 (read_4ubyte_unaligned_noncvt (addr + i * 4)); in read_addrs()
281 addrs[i] = LE32 (read_4ubyte_unaligned_noncvt (addr + i * 4)); in read_addrs()
287 addrs[i] = BE64 (read_8ubyte_unaligned_noncvt (addr + i * 8)); in read_addrs()
290 addrs[i] = LE64 (read_8ubyte_unaligned_noncvt (addr + i * 8)); in read_addrs()
320 GElf_Addr addrs[4]; in report_r_debug() local
325 1, addrs))) in report_r_debug()
328 GElf_Addr next = addrs[0]; in report_r_debug()
342 4, addrs)) in report_r_debug()
350 GElf_Addr l_name = addrs[1]; in report_r_debug()
[all …]
/third_party/ltp/utils/sctp/lib/
Dconnectx.c37 static int __connectx_addrsize(const struct sockaddr *addrs, in __connectx_addrsize() argument
45 addrbuf = addrs; in __connectx_addrsize()
67 int __sctp_connectx(int fd, struct sockaddr *addrs, int addrcnt) in __sctp_connectx() argument
69 int addrs_size = __connectx_addrsize(addrs, addrcnt); in __sctp_connectx()
74 return setsockopt(fd, SOL_SCTP, SCTP_SOCKOPT_CONNECTX_OLD, addrs, in __sctp_connectx()
82 static int __connectx(int fd, struct sockaddr *addrs, socklen_t addrs_size, in __connectx() argument
90 status = setsockopt(fd, SOL_SCTP, SCTP_SOCKOPT_CONNECTX, addrs, in __connectx()
114 addrs, addrs_size); in __connectx()
117 int sctp_connectx2(int fd, struct sockaddr *addrs, int addrcnt, in sctp_connectx2() argument
120 int addrs_size = __connectx_addrsize(addrs, addrcnt); in sctp_connectx2()
[all …]
Daddrs.c38 struct sockaddr **addrs) in sctp_getaddrs() argument
83 *addrs = (struct sockaddr*)getaddrs; in sctp_getaddrs()
93 sctp_getpaddrs(int sd, sctp_assoc_t id, struct sockaddr **addrs) in sctp_getpaddrs() argument
97 addrs); in sctp_getpaddrs()
104 sctp_freepaddrs(struct sockaddr *addrs) in sctp_freepaddrs() argument
106 free(addrs); in sctp_freepaddrs()
116 sctp_getladdrs(int sd, sctp_assoc_t id, struct sockaddr **addrs) in sctp_getladdrs() argument
120 addrs); in sctp_getladdrs()
127 sctp_freeladdrs(struct sockaddr *addrs) in sctp_freeladdrs() argument
129 free(addrs); in sctp_freeladdrs()
Dbindx.c39 sctp_bindx(int fd, struct sockaddr *addrs, int addrcnt, int flags) in sctp_bindx() argument
59 addrbuf = addrs; in sctp_bindx()
77 return setsockopt(fd, SOL_SCTP, setsock_option, addrs, addrs_size); in sctp_bindx()
/third_party/lwip/src/netif/ppp/
Dauth.c1570 struct wordlist *addrs = NULL, *opts = NULL;
1588 ret = (*pap_auth_hook)(ppp_settings.user, ppp_settings.passwd, msg, &addrs, &opts);
1593 set_allowed_addrs(unit, addrs, opts);
1596 if (addrs != 0)
1597 free_wordlist(addrs);
1608 addrs = opts = NULL;
1616 if (scan_authfile(f, ppp_settings.user, our_name, secret, &addrs, &opts, filename, 0) < 0) {
1668 set_allowed_addrs(unit, addrs, opts);
1671 if (addrs != NULL)
1672 free_wordlist(addrs);
[all …]
/third_party/curl/tests/unit/
Dunit1608.c34 static struct Curl_addrinfo addrs[NUM_ADDRS]; variable
40 addrs[i].ai_next = &addrs[i + 1]; in unit_setup()
55 struct Curl_addrinfo *addrhead = addrs;
67 if(addrhead != addrs)
74 abort_unless(addrhead != addrs, "addresses are not being reordered");
/third_party/node/deps/uv/src/unix/
Dbsd-ifaddrs.c69 struct ifaddrs* addrs; in uv_interface_addresses() local
79 if (getifaddrs(&addrs) != 0) in uv_interface_addresses()
83 for (ent = addrs; ent != NULL; ent = ent->ifa_next) { in uv_interface_addresses()
90 freeifaddrs(addrs); in uv_interface_addresses()
98 freeifaddrs(addrs); in uv_interface_addresses()
104 for (ent = addrs; ent != NULL; ent = ent->ifa_next) { in uv_interface_addresses()
131 for (ent = addrs; ent != NULL; ent = ent->ifa_next) { in uv_interface_addresses()
148 freeifaddrs(addrs); in uv_interface_addresses()
Dlinux-core.c641 struct ifaddrs *addrs, *ent; in uv_interface_addresses()
649 if (getifaddrs(&addrs)) in uv_interface_addresses()
653 for (ent = addrs; ent != NULL; ent = ent->ifa_next) { in uv_interface_addresses()
661 freeifaddrs(addrs); in uv_interface_addresses()
668 freeifaddrs(addrs); in uv_interface_addresses()
674 for (ent = addrs; ent != NULL; ent = ent->ifa_next) { in uv_interface_addresses()
698 for (ent = addrs; ent != NULL; ent = ent->ifa_next) { in uv_interface_addresses()
716 freeifaddrs(addrs); in uv_interface_addresses()
/third_party/libuv/src/unix/
Dbsd-ifaddrs.c69 struct ifaddrs* addrs; in uv_interface_addresses() local
79 if (getifaddrs(&addrs) != 0) in uv_interface_addresses()
83 for (ent = addrs; ent != NULL; ent = ent->ifa_next) { in uv_interface_addresses()
90 freeifaddrs(addrs); in uv_interface_addresses()
98 freeifaddrs(addrs); in uv_interface_addresses()
104 for (ent = addrs; ent != NULL; ent = ent->ifa_next) { in uv_interface_addresses()
131 for (ent = addrs; ent != NULL; ent = ent->ifa_next) { in uv_interface_addresses()
148 freeifaddrs(addrs); in uv_interface_addresses()
Dlinux-core.c641 struct ifaddrs *addrs, *ent; in uv_interface_addresses()
649 if (getifaddrs(&addrs)) in uv_interface_addresses()
653 for (ent = addrs; ent != NULL; ent = ent->ifa_next) { in uv_interface_addresses()
661 freeifaddrs(addrs); in uv_interface_addresses()
668 freeifaddrs(addrs); in uv_interface_addresses()
674 for (ent = addrs; ent != NULL; ent = ent->ifa_next) { in uv_interface_addresses()
698 for (ent = addrs; ent != NULL; ent = ent->ifa_next) { in uv_interface_addresses()
716 freeifaddrs(addrs); in uv_interface_addresses()
/third_party/musl/src/network/
Dgetaddrinfo.c22 struct address addrs[MAXADDRS]; in getaddrinfo() local
98 naddrs = __lookup_name(addrs, canon, host, family, flags); in getaddrinfo()
116 .ai_family = addrs[i].family, in getaddrinfo()
119 .ai_addrlen = addrs[i].family == AF_INET in getaddrinfo()
125 switch (addrs[i].family) { in getaddrinfo()
129 memcpy(&out[k].sa.sin.sin_addr, &addrs[i].addr, 4); in getaddrinfo()
134 out[k].sa.sin6.sin6_scope_id = addrs[i].scopeid; in getaddrinfo()
135 memcpy(&out[k].sa.sin6.sin6_addr, &addrs[i].addr, 16); in getaddrinfo()
Dgethostbyname2_r.c15 struct address addrs[MAXADDRS]; in gethostbyname2_r() local
21 cnt = __lookup_name(addrs, canon, name, af, AI_CANONNAME); in gethostbyname2_r()
62 memcpy(h->h_addr_list[i], addrs[i].addr, h->h_length); in gethostbyname2_r()
/third_party/musl/libc-test/src/functionalext/supplement/network/
Dfreeifaddrs.c29 struct ifaddrs *addrs = NULL; in freeifaddrs_0100() local
34 int result = getifaddrs(&addrs); in freeifaddrs_0100()
38 if (!addrs) { in freeifaddrs_0100()
42 for (struct ifaddrs *addr = addrs; addr != NULL; addr = addr->ifa_next) { in freeifaddrs_0100()
64 freeifaddrs(addrs); in freeifaddrs_0100()
/third_party/elfutils/libebl/
Deblobjnote.c70 } addrs; in ebl_object_note() local
89 .d_buf = &addrs, .d_size = addrs_size in ebl_object_note()
115 pc = addrs.a32[0]; in ebl_object_note()
116 base = addrs.a32[1]; in ebl_object_note()
117 sem = addrs.a32[2]; in ebl_object_note()
121 pc = addrs.a64[0]; in ebl_object_note()
122 base = addrs.a64[1]; in ebl_object_note()
123 sem = addrs.a64[2]; in ebl_object_note()
155 } addrs; in ebl_object_note() local
172 .d_buf = &addrs, .d_size = descsz in ebl_object_note()
[all …]
/third_party/musl/porting/linux/user/src/network/
Dgetaddrinfo.c109 struct address addrs[MAXADDRS]; in getaddrinfo_ext() local
184 naddrs = lookup_name_ext(addrs, canon, host, family, flags, netid); in getaddrinfo_ext()
206 .ai_family = addrs[i].family, in getaddrinfo_ext()
209 .ai_addrlen = addrs[i].family == AF_INET in getaddrinfo_ext()
215 switch (addrs[i].family) { in getaddrinfo_ext()
219 memcpy(&out[k].sa.sin.sin_addr, &addrs[i].addr, 4); in getaddrinfo_ext()
224 out[k].sa.sin6.sin6_scope_id = addrs[i].scopeid; in getaddrinfo_ext()
225 memcpy(&out[k].sa.sin6.sin6_addr, &addrs[i].addr, 16); in getaddrinfo_ext()
/third_party/musl/src/network/linux/
Dgetaddrinfo.c121 struct address addrs[MAXADDRS]; in getaddrinfo_ext() local
196 naddrs = lookup_name_ext(addrs, canon, host, family, flags, netid); in getaddrinfo_ext()
218 .ai_family = addrs[i].family, in getaddrinfo_ext()
221 .ai_addrlen = addrs[i].family == AF_INET in getaddrinfo_ext()
227 switch (addrs[i].family) { in getaddrinfo_ext()
231 memcpy(&out[k].sa.sin.sin_addr, &addrs[i].addr, 4); in getaddrinfo_ext()
236 out[k].sa.sin6.sin6_scope_id = addrs[i].scopeid; in getaddrinfo_ext()
237 memcpy(&out[k].sa.sin6.sin6_addr, &addrs[i].addr, 16); in getaddrinfo_ext()
/third_party/rust/crates/nix/src/
Difaddrs.rs169 let mut addrs = mem::MaybeUninit::<*mut libc::ifaddrs>::uninit(); in getifaddrs() localVariable
171 Errno::result(libc::getifaddrs(addrs.as_mut_ptr())).map(|_| { in getifaddrs()
173 base: addrs.assume_init(), in getifaddrs()
174 next: addrs.assume_init(), in getifaddrs()
194 let addrs = getifaddrs().unwrap(); in test_getifaddrs_netmask_correct() localVariable
195 for iface in addrs { in test_getifaddrs_netmask_correct()
/third_party/ltp/utils/sctp/include/netinet/
Dsctp.h747 struct sockaddr *addrs; member
752 __u8 addrs[0]; /*output, variable size*/ member
806 int sctp_bindx(int sd, struct sockaddr *addrs, int addrcnt, int flags);
808 int sctp_connectx(int sd, struct sockaddr *addrs, int addrcnt,
822 int sctp_getpaddrs(int sd, sctp_assoc_t id, struct sockaddr **addrs);
827 int sctp_freepaddrs(struct sockaddr *addrs);
833 int sctp_getladdrs(int sd, sctp_assoc_t id, struct sockaddr **addrs);
838 int sctp_freeladdrs(struct sockaddr *addrs);
/third_party/libwebsockets/lib/core-net/
Dnetwork.c511 struct ifaddrs *addrs, *addr; in lws_get_addr_scope() local
513 PIP_ADAPTER_ADDRESSES adapter, addrs = NULL; in lws_get_addr_scope() local
539 getifaddrs(&addrs); in lws_get_addr_scope()
540 for (addr = addrs; addr; addr = addr->ifa_next) { in lws_get_addr_scope()
561 freeifaddrs(addrs); in lws_get_addr_scope()
566 NULL, addrs, &size); in lws_get_addr_scope()
570 if (addrs) in lws_get_addr_scope()
571 free(addrs); in lws_get_addr_scope()
574 addrs = NULL; in lws_get_addr_scope()
579 addrs = (IP_ADAPTER_ADDRESSES *)malloc(size); in lws_get_addr_scope()
[all …]
/third_party/ffmpeg/libavformat/
Dnetwork.c403 int ff_connect_parallel(struct addrinfo *addrs, int timeout_ms_per_address, in ff_connect_parallel() argument
418 print_address_list(h, addrs, "Original list of addresses"); in ff_connect_parallel()
422 interleave_addrinfo(addrs); in ff_connect_parallel()
423 print_address_list(h, addrs, "Interleaved list of addresses"); in ff_connect_parallel()
425 while (nb_attempts > 0 || addrs) { in ff_connect_parallel()
427 if (nb_attempts < parallel && addrs) { in ff_connect_parallel()
428 getnameinfo(addrs->ai_addr, addrs->ai_addrlen, in ff_connect_parallel()
433 last_err = start_connect_attempt(&attempts[nb_attempts], &addrs, in ff_connect_parallel()
459 if (nb_attempts < parallel && addrs) in ff_connect_parallel()
/third_party/nghttp2/src/
Dshrpx_worker.cc107 auto &addrs = std::get<0>(dkey); in create_downstream_key() local
108 addrs.resize(shared_addr->addrs.size()); in create_downstream_key()
109 auto p = std::begin(addrs); in create_downstream_key()
110 for (auto &a : shared_addr->addrs) { in create_downstream_key()
126 std::sort(std::begin(addrs), std::end(addrs)); in create_downstream_key()
167 quic_upstream_addrs_{get_config()->conn.quic_listener.addrs},
249 for (auto &addr : shared_addr->addrs) { in replace_downstream_config()
281 shared_addr->addrs.resize(src.addrs.size()); in replace_downstream_config()
300 for (size_t j = 0; j < src.addrs.size(); ++j) { in replace_downstream_config()
301 auto &src_addr = src.addrs[j]; in replace_downstream_config()
[all …]
/third_party/node/deps/cares/src/lib/
Dares__addrinfo2hostent.c63 char *addrs = NULL; in ares__addrinfo2hostent() local
158 addrs = ares_malloc(naddrs * (size_t)(*host)->h_length); in ares__addrinfo2hostent()
159 if (!addrs) { in ares__addrinfo2hostent()
168 (*host)->h_addr_list[i] = addrs + (i * (size_t)(*host)->h_length); in ares__addrinfo2hostent()
185 ares_free(addrs); in ares__addrinfo2hostent()
/third_party/ltp/testcases/kernel/mem/tunable/
Dmin_free_kbytes.c163 void *addrs; in eatup_mem() local
168 addrs = mmap(NULL, MAP_SIZE, PROT_READ | PROT_WRITE, in eatup_mem()
170 if (addrs == MAP_FAILED) { in eatup_mem()
177 memset(addrs, 1, MAP_SIZE); in eatup_mem()
/third_party/ltp/utils/sctp/testlib/
Dsctputil.c371 struct sockaddr *addrs; in test_peer_addr() local
379 error = sctp_getpaddrs(sk, asoc, &addrs); in test_peer_addr()
386 sctp_freepaddrs(addrs); in test_peer_addr()
391 addrbuf = addrs; in test_peer_addr()
405 sctp_freepaddrs(addrs); in test_peer_addr()
423 sctp_freepaddrs(addrs); in test_peer_addr()

1234