Home
last modified time | relevance | path

Searched refs:laddr (Results 1 – 23 of 23) sorted by relevance

/third_party/iptables/extensions/
Dlibxt_TPROXY.c35 .flags = XTOPT_PUT, XTOPT_POINTER(s, laddr)},
55 xtables_ipaddr_to_numeric((const struct in_addr *)&info->laddr), in tproxy_tg_print()
68 xtables_ipaddr_to_numeric(&info->laddr.in), in tproxy_tg_print4()
81 xtables_ip6addr_to_numeric(&info->laddr.in6), in tproxy_tg_print6()
92 xtables_ipaddr_to_numeric((const struct in_addr *)&info->laddr)); in tproxy_tg_save()
104 printf(" --on-ip %s", xtables_ipaddr_to_numeric(&info->laddr.in)); in tproxy_tg_save4()
116 printf(" --on-ip %s", xtables_ip6addr_to_numeric(&info->laddr.in6)); in tproxy_tg_save6()
132 info->laddr = cb->val.haddr.ip; in tproxy_tg0_parse()
/third_party/libcoap/tests/
Dtest_session.c145 coap_address_t laddr, saddr; in t_session6() local
146 coap_address_init(&laddr); in t_session6()
151 laddr.size = sizeof(struct sockaddr_in6); in t_session6()
152 laddr.addr.sin6.sin6_family = AF_INET6; in t_session6()
153 laddr.addr.sin6.sin6_addr = in6addr_any; in t_session6()
154 laddr.addr.sin6.sin6_port = htons(COAP_DEFAULT_PORT); in t_session6()
156 coap_address_copy(&saddr, &laddr); in t_session6()
160 session = coap_new_client_session(ctx, &saddr, &laddr, COAP_PROTO_UDP); in t_session6()
/third_party/curl/packages/OS400/
Dos400sys.c1240 struct sockaddr_storage laddr; in Curl_os400_connect() local
1242 i = sockaddr2ebcdic(&laddr, destaddr, addrlen); in Curl_os400_connect()
1247 return connect(sd, (struct sockaddr *) &laddr, i); in Curl_os400_connect()
1254 struct sockaddr_storage laddr; in Curl_os400_bind() local
1256 i = sockaddr2ebcdic(&laddr, localaddr, addrlen); in Curl_os400_bind()
1261 return bind(sd, (struct sockaddr *) &laddr, i); in Curl_os400_bind()
1269 struct sockaddr_storage laddr; in Curl_os400_sendto() local
1271 i = sockaddr2ebcdic(&laddr, dstaddr, addrlen); in Curl_os400_sendto()
1276 return sendto(sd, buffer, buflen, flags, (struct sockaddr *) &laddr, i); in Curl_os400_sendto()
1284 struct sockaddr_storage laddr; in Curl_os400_recvfrom() local
[all …]
/third_party/ltp/testcases/kernel/mem/mem/
Dmem02.c79 long laddr; in main() local
219 laddr = (long)memptr; in main()
220 if (((laddr >> pagesize_order) << pagesize_order) != laddr) { in main()
/third_party/toybox/toys/net/
Dnetstat.c125 } laddr, raddr; in show_ip() local
132 &num, &laddr.i6.u.a, &laddr.i6.u.b, &laddr.i6.u.c, in show_ip()
133 &laddr.i6.u.d, &lport, &raddr.i6.u.a, &raddr.i6.u.b, in show_ip()
140 &num, &laddr.i4.u, &lport, &raddr.i4.u, &rport, &state, &txq, in show_ip()
152 addr2str(nitems, &laddr, lport, lip, TT.wpad, label); in show_ip()
/third_party/iptables/include/linux/netfilter/
Dxt_TPROXY.h12 __be32 laddr; member
19 union nf_inet_addr laddr; member
/third_party/node/deps/cares/src/lib/
Dares_gethostbyaddr.c262 unsigned long laddr = ntohl(addr->addrV4.s_addr); in ptr_rr_name() local
263 unsigned long a1 = (laddr >> 24UL) & 0xFFUL; in ptr_rr_name()
264 unsigned long a2 = (laddr >> 16UL) & 0xFFUL; in ptr_rr_name()
265 unsigned long a3 = (laddr >> 8UL) & 0xFFUL; in ptr_rr_name()
266 unsigned long a4 = laddr & 0xFFUL; in ptr_rr_name()
/third_party/musl/ldso/
Ddynlink.c166 static void *laddr(const struct dso *p, size_t v) in laddr() function
195 laddr(p, v), (p)->got }))
197 #define laddr(p, v) (void *)((p)->base + (v)) macro
198 #define laddr_pg(p, v) laddr(p, v)
199 #define fpaddr(p, v) ((void (*)())laddr(p, v))
361 reloc_addr = laddr(dso, rel[0]); in do_relocs()
406 sym_val = def.sym ? (size_t)laddr(def.dso, def.sym->st_value) : 0; in do_relocs()
780 dso->dynv = laddr(dso, dyn); in map_library()
781 if (dso->tls.size) dso->tls.image = laddr(dso, tls_image); in map_library()
899 p->syms = laddr(p, dyn[DT_SYMTAB]); in decode_dyn()
[all …]
/third_party/musl/porting/liteos_a/user/ldso/
Ddynlink.c164 static void *laddr(const struct dso *p, size_t v) in laddr() function
193 laddr(p, v), (p)->got }))
195 #define laddr(p, v) (void *)((p)->base + (v)) macro
196 #define laddr_pg(p, v) laddr(p, v)
197 #define fpaddr(p, v) ((void (*)())laddr(p, v))
359 reloc_addr = laddr(dso, rel[0]); in do_relocs()
404 sym_val = def.sym ? (size_t)laddr(def.dso, def.sym->st_value) : 0; in do_relocs()
792 dso->dynv = laddr(dso, dyn); in map_library()
793 if (dso->tls.size) dso->tls.image = laddr(dso, tls_image); in map_library()
911 p->syms = laddr(p, dyn[DT_SYMTAB]); in decode_dyn()
[all …]
/third_party/musl/porting/liteos_a/user_debug/ldso/
Ddynlink.c164 static void *laddr(const struct dso *p, size_t v) in laddr() function
193 laddr(p, v), (p)->got }))
195 #define laddr(p, v) (void *)((p)->base + (v)) macro
196 #define laddr_pg(p, v) laddr(p, v)
197 #define fpaddr(p, v) ((void (*)())laddr(p, v))
359 reloc_addr = laddr(dso, rel[0]); in do_relocs()
404 sym_val = def.sym ? (size_t)laddr(def.dso, def.sym->st_value) : 0; in do_relocs()
792 dso->dynv = laddr(dso, dyn); in map_library()
793 if (dso->tls.size) dso->tls.image = laddr(dso, tls_image); in map_library()
911 p->syms = laddr(p, dyn[DT_SYMTAB]); in decode_dyn()
[all …]
/third_party/gstreamer/gstplugins_bad/ext/sctp/usrsctp/usrsctplib/netinet/
Dsctp_pcb.c1073 struct sctp_laddr *laddr; local
1075 LIST_FOREACH(laddr, &stcb->sctp_ep->sctp_addr_list, sctp_nxt_addr) {
1076 if (laddr->ifa->localifa_flags & SCTP_BEING_DELETED) {
1080 if (sctp_is_addr_restricted(stcb, laddr->ifa) &&
1081 (!sctp_is_addr_pending(stcb, laddr->ifa))) {
1088 if (laddr->ifa->address.sa.sa_family != to->sa_family) {
1097 sin = &laddr->ifa->address.sin;
1111 sin6 = &laddr->ifa->address.sin6;
1126 sconn = &laddr->ifa->address.sconn;
1159 struct sctp_laddr *laddr; local
[all …]
Dsctp_asconf.c2115 struct sctp_laddr *laddr, *nladdr, *l; in sctp_asconf_iterator_ep_end() local
2122 LIST_FOREACH(laddr, &inp->sctp_addr_list, in sctp_asconf_iterator_ep_end()
2124 if (laddr->ifa == ifa) { in sctp_asconf_iterator_ep_end()
2125 laddr->action = 0; in sctp_asconf_iterator_ep_end()
2131 LIST_FOREACH_SAFE(laddr, &inp->sctp_addr_list, sctp_nxt_addr, nladdr) { in sctp_asconf_iterator_ep_end()
2133 if (laddr->ifa == ifa) { in sctp_asconf_iterator_ep_end()
2578 struct sctp_laddr *laddr; in sctp_find_valid_localaddr_ep() local
2580 LIST_FOREACH(laddr, &stcb->sctp_ep->sctp_addr_list, sctp_nxt_addr) { in sctp_find_valid_localaddr_ep()
2581 if (laddr->ifa == NULL) { in sctp_find_valid_localaddr_ep()
2585 if (sctp_is_addr_restricted(stcb, laddr->ifa) && in sctp_find_valid_localaddr_ep()
[all …]
Dsctp_output.c2203 struct sctp_laddr *laddr; in sctp_add_addresses_to_i_ia() local
2207 LIST_FOREACH(laddr, &inp->sctp_addr_list, sctp_nxt_addr) { in sctp_add_addresses_to_i_ia()
2208 if (laddr->ifa == NULL) { in sctp_add_addresses_to_i_ia()
2211 if (laddr->ifa->localifa_flags & SCTP_BEING_DELETED) in sctp_add_addresses_to_i_ia()
2216 if (laddr->action == SCTP_DEL_IP_ADDRESS) { in sctp_add_addresses_to_i_ia()
2223 if (laddr->ifa->address.sa.sa_family == AF_CONN) { in sctp_add_addresses_to_i_ia()
2227 if (sctp_is_address_in_scope(laddr->ifa, in sctp_add_addresses_to_i_ia()
2240 LIST_FOREACH(laddr, &inp->sctp_addr_list, sctp_nxt_addr) { in sctp_add_addresses_to_i_ia()
2241 if (laddr->ifa == NULL) { in sctp_add_addresses_to_i_ia()
2244 if (laddr->ifa->localifa_flags & SCTP_BEING_DELETED) { in sctp_add_addresses_to_i_ia()
[all …]
Dsctp_sysctl.c201 struct sctp_laddr *laddr; in sctp_sysctl_number_of_addresses() local
226 LIST_FOREACH(laddr, &inp->sctp_addr_list, sctp_nxt_addr) { in sctp_sysctl_number_of_addresses()
227 switch (laddr->ifa->address.sa.sa_family) { in sctp_sysctl_number_of_addresses()
256 struct sctp_laddr *laddr; in sctp_sysctl_copy_out_local_addresses() local
394 LIST_FOREACH(laddr, &inp->sctp_addr_list, sctp_nxt_addr) { in sctp_sysctl_copy_out_local_addresses()
396 if (stcb && sctp_is_addr_restricted(stcb, laddr->ifa)) in sctp_sysctl_copy_out_local_addresses()
399 … memcpy((void *)&xladdr.address, (const void *)&laddr->ifa->address, sizeof(union sctp_sockstore)); in sctp_sysctl_copy_out_local_addresses()
400 xladdr.start_time.tv_sec = (uint32_t)laddr->start_time.tv_sec; in sctp_sysctl_copy_out_local_addresses()
401 xladdr.start_time.tv_usec = (uint32_t)laddr->start_time.tv_usec; in sctp_sysctl_copy_out_local_addresses()
Dsctp_usrreq.c1697 struct sctp_laddr *laddr; local
1700 LIST_FOREACH(laddr, &inp->sctp_addr_list, sctp_nxt_addr) {
1702 if (sctp_is_addr_restricted(stcb, laddr->ifa)) {
1707 sa_len = laddr->ifa->address.sa.sa_len;
1709 switch (laddr->ifa->address.sa.sa_family) {
1734 if (sctp_fill_user_address(addr, &laddr->ifa->address.sa))
1736 switch (laddr->ifa->address.sa.sa_family) {
1849 struct sctp_laddr *laddr; local
1851 LIST_FOREACH(laddr, &inp->sctp_addr_list, sctp_nxt_addr) {
1852 switch (laddr->ifa->address.sa.sa_family) {
[all …]
Dsctputil.c5781 struct sctp_laddr *laddr; local
5787 LIST_FOREACH(laddr, &inp->sctp_addr_list, sctp_nxt_addr) {
5788 if (laddr->ifa == NULL)
5790 if (addr->sa_family != laddr->ifa->address.sa.sa_family)
5795 laddr->ifa->address.sin.sin_addr.s_addr) {
5804 &laddr->ifa->address.sin6)) {
5812 if (((struct sockaddr_conn *)addr)->sconn_addr == laddr->ifa->address.sconn.sconn_addr) {
5822 if (laddr != NULL) {
5823 return (laddr->ifa);
8000 struct sctp_laddr *laddr; local
[all …]
/third_party/musl/porting/linux/user/ldso/
Ddynlink.c443 static void *laddr(const struct dso *p, size_t v) in laddr() function
472 laddr(p, v), (p)->got }))
474 #define laddr(p, v) (void *)((p)->base + (v)) macro
475 #define laddr_pg(p, v) laddr(p, v)
476 #define fpaddr(p, v) ((void (*)())laddr(p, v))
982 reloc_addr = laddr(dso, rel[0]); in do_relocs()
1041 sym_val = def.sym ? (size_t)laddr(def.dso, def.sym->st_value) : 0; in do_relocs()
1482 dso->dynv = laddr(dso, dyn); in map_library()
1483 if (dso->tls.size) dso->tls.image = laddr(dso, tls_image); in map_library()
1601 p->syms = laddr(p, dyn[DT_SYMTAB]); in decode_dyn()
[all …]
/third_party/node/deps/cares/src/tools/
Dadig.c847 unsigned long laddr = ntohl(addr.addr4.s_addr); in convert_query() local
848 unsigned long a1 = (laddr >> 24UL) & 0xFFUL; in convert_query()
849 unsigned long a2 = (laddr >> 16UL) & 0xFFUL; in convert_query()
850 unsigned long a3 = (laddr >> 8UL) & 0xFFUL; in convert_query()
851 unsigned long a4 = laddr & 0xFFUL; in convert_query()
/third_party/python/Lib/asyncio/
Dtrsock.py47 laddr = self.getsockname()
48 if laddr:
Dbase_events.py940 for _, _, _, _, laddr in local_addr_infos:
942 sock.bind(laddr)
/third_party/python/Lib/
Dsocket.py258 laddr = self.getsockname()
259 if laddr:
260 s += ", laddr=%s" % str(laddr)
/third_party/gstreamer/gstplugins_bad/ext/sctp/usrsctp/usrsctplib/netinet6/
Dsctp6_usrreq.c1364 struct sctp_laddr *laddr;
1367 LIST_FOREACH(laddr, &inp->sctp_addr_list, sctp_nxt_addr) {
1368 if (laddr->ifa->address.sa.sa_family == AF_INET6) {
1371 sin_a = &laddr->ifa->address.sin6;
/third_party/toybox/toys/pending/
Dip.c64 iface[IFNAMSIZ+1], laddr[64], bcast[64]; member
832 line_feed, link->type, link->laddr, peer ,link->bcast); in print_link_output()
900 inet_ntop(AF_INET, RTA_DATA(attr), link->laddr, 64); in get_link_info()
901 else fill_address(RTA_DATA(attr), link->laddr); in get_link_info()