/external/libpcap/ |
D | sockutils.c | 315 SOCKET sock_open(struct addrinfo *addrinfo, int server, int nconn, char *errbuf, int errbuflen) in sock_open() argument 322 sock = socket(addrinfo->ai_family, addrinfo->ai_socktype, addrinfo->ai_protocol); in sock_open() 391 if (addrinfo->ai_family == PF_INET6) in sock_open() 405 if (bind(sock, addrinfo->ai_addr, (int) addrinfo->ai_addrlen) != 0) in sock_open() 412 if (addrinfo->ai_socktype == SOCK_STREAM) in sock_open() 425 struct addrinfo *tempaddrinfo; in sock_open() 429 tempaddrinfo = addrinfo; in sock_open() 719 struct addrinfo *hints, struct addrinfo **addrinfo, char *errbuf, int errbuflen) in sock_initaddress() argument 723 retval = getaddrinfo(host, port, hints, addrinfo); in sock_initaddress() 746 if (((*addrinfo)->ai_family != PF_INET) && in sock_initaddress() [all …]
|
D | pcap-rpcap.c | 997 …struct addrinfo hints, *addrinfo, *ai_next; /* temp var needed to translate between hostname to it… in rpcap_remoteact_getsock() local 1001 addrinfo = NULL; in rpcap_remoteact_getsock() 1002 memset(&hints, 0, sizeof(struct addrinfo)); in rpcap_remoteact_getsock() 1006 retval = getaddrinfo(host, "0", &hints, &addrinfo); in rpcap_remoteact_getsock() 1019 ai_next = addrinfo; in rpcap_remoteact_getsock() 1025 freeaddrinfo(addrinfo); in rpcap_remoteact_getsock() 1034 if (addrinfo) in rpcap_remoteact_getsock() 1035 freeaddrinfo(addrinfo); in rpcap_remoteact_getsock() 1070 struct addrinfo hints; /* temp, needed to open a socket connection */ in pcap_startcapture_remote() 1071 struct addrinfo *addrinfo; /* temp, needed to open a socket connection */ in pcap_startcapture_remote() local [all …]
|
D | sockutils.h | 133 struct addrinfo *hints, struct addrinfo **addrinfo, 139 SOCKET sock_open(struct addrinfo *addrinfo, int server, int nconn, char *errbuf, int errbuflen);
|
/external/python/cpython2/Demo/sockets/ |
D | mcast.py | 32 addrinfo = socket.getaddrinfo(group, None)[0] 34 s = socket.socket(addrinfo[0], socket.SOCK_DGRAM) 38 if addrinfo[0] == socket.AF_INET: # IPv4 45 s.sendto(data + '\0', (addrinfo[4][0], MYPORT)) 51 addrinfo = socket.getaddrinfo(group, None)[0] 54 s = socket.socket(addrinfo[0], socket.SOCK_DGRAM) 63 group_bin = socket.inet_pton(addrinfo[0], addrinfo[4][0]) 65 if addrinfo[0] == socket.AF_INET: # IPv4
|
/external/python/cpython3/Tools/demo/ |
D | mcast.py | 34 addrinfo = socket.getaddrinfo(group, None)[0] 36 s = socket.socket(addrinfo[0], socket.SOCK_DGRAM) 40 if addrinfo[0] == socket.AF_INET: # IPv4 47 s.sendto(data, (addrinfo[4][0], MYPORT)) 53 addrinfo = socket.getaddrinfo(group, None)[0] 56 s = socket.socket(addrinfo[0], socket.SOCK_DGRAM) 65 group_bin = socket.inet_pton(addrinfo[0], addrinfo[4][0]) 67 if addrinfo[0] == socket.AF_INET: # IPv4
|
/external/python/cpython2/Modules/ |
D | getaddrinfo.c | 133 struct addrinfo **, char *, struct addrinfo *, 135 static int get_addr Py_PROTO((const char *, int, struct addrinfo **, 136 struct addrinfo *, int)); 170 if (((ai) = (struct addrinfo *)malloc(sizeof(struct addrinfo) +\ 173 memcpy(ai, pai, sizeof(struct addrinfo));\ 185 if (((ai) = (struct addrinfo *)malloc(sizeof(struct addrinfo) +\ 188 memcpy(ai, pai, sizeof(struct addrinfo));\ 210 freeaddrinfo(struct addrinfo *ai) in freeaddrinfo() 212 struct addrinfo *next; in freeaddrinfo() 237 const struct addrinfo *hints, struct addrinfo **res) in getaddrinfo() [all …]
|
/external/python/cpython3/Modules/ |
D | getaddrinfo.c | 133 struct addrinfo **, char *, struct addrinfo *, 135 static int get_addr(const char *, int, struct addrinfo **, 136 struct addrinfo *, int); 170 if (((ai) = (struct addrinfo *)malloc(sizeof(struct addrinfo) +\ 173 memcpy(ai, pai, sizeof(struct addrinfo));\ 185 if (((ai) = (struct addrinfo *)malloc(sizeof(struct addrinfo) +\ 188 memcpy(ai, pai, sizeof(struct addrinfo));\ 210 freeaddrinfo(struct addrinfo *ai) in freeaddrinfo() 212 struct addrinfo *next; in freeaddrinfo() 237 const struct addrinfo *hints, struct addrinfo **res) in getaddrinfo() [all …]
|
/external/curl/lib/ |
D | curl_addrinfo.h | 68 const struct addrinfo *hints, 88 curl_dbg_freeaddrinfo(struct addrinfo *freethis, int line, const char *source); 94 const struct addrinfo *hints, struct addrinfo **result, 100 void Curl_addrinfo_set_port(struct Curl_addrinfo *addrinfo, int port);
|
D | curl_addrinfo.c | 111 const struct addrinfo *hints, in Curl_getaddrinfo_ex() 114 const struct addrinfo *ai; in Curl_getaddrinfo_ex() 115 struct addrinfo *aihead; in Curl_getaddrinfo_ex() 521 curl_dbg_freeaddrinfo(struct addrinfo *freethis, in curl_dbg_freeaddrinfo() 547 const struct addrinfo *hints, in curl_dbg_getaddrinfo() 548 struct addrinfo **result, in curl_dbg_getaddrinfo() 572 void Curl_addrinfo_set_port(struct Curl_addrinfo *addrinfo, int port) in Curl_addrinfo_set_port() argument 579 for(ca = addrinfo; ca != NULL; ca = ca->ai_next) { in Curl_addrinfo_set_port()
|
/external/openssh/openbsd-compat/ |
D | fake-rfc2553.c | 110 freeaddrinfo(struct addrinfo *ai) in freeaddrinfo() 112 struct addrinfo *next; in freeaddrinfo() 124 addrinfo *malloc_ai(int port, u_long addr, const struct addrinfo *hints) in malloc_ai() 126 struct addrinfo *ai; in malloc_ai() 156 const struct addrinfo *hints, struct addrinfo **res) in getaddrinfo() 211 struct addrinfo *cur, *prev; in getaddrinfo()
|
D | fake-rfc2553.h | 138 struct addrinfo { struct 146 struct addrinfo *ai_next; /* next structure in linked list */ argument 156 const struct addrinfo *, struct addrinfo **); 166 void freeaddrinfo(struct addrinfo *);
|
/external/ltp/testcases/network/stress/ns-tools/ |
D | ns-common.c | 437 struct addrinfo *get_maddrinfo(sa_family_t family, const char *maddr, in get_maddrinfo() 440 struct addrinfo hints; /* hints for getaddrinfo() */ in get_maddrinfo() 441 struct addrinfo *res; /* pointer to addrinfo structure */ in get_maddrinfo() 444 memset(&hints, '\0', sizeof(struct addrinfo)); in get_maddrinfo() 477 struct group_req *create_group_info(uint32_t ifindex, struct addrinfo *mainfo_p) in create_group_info() 510 struct addrinfo *mainfo_p, in create_source_filter() 515 struct addrinfo hints; /* hints for getaddrinfo() */ in create_source_filter() 516 struct addrinfo *res; /* pointer to addrinfo structure */ in create_source_filter() 542 memset(&hints, '\0', sizeof(struct addrinfo)); in create_source_filter() 549 memset(&hints, '\0', sizeof(struct addrinfo)); in create_source_filter()
|
D | ns-udpsender.c | 63 struct addrinfo addr_info; 290 struct addrinfo hints; /* hints for getaddrinfo() */ in create_udp_datagram() 291 struct addrinfo *res; /* pointer to addrinfo structure */ in create_udp_datagram() 297 memset(&hints, '\0', sizeof(struct addrinfo)); in create_udp_datagram() 362 memcpy(&(udp_p->addr_info), res, sizeof(struct addrinfo)); in create_udp_datagram()
|
/external/toybox/lib/ |
D | net.c | 19 struct addrinfo *xgetaddrinfo(char *host, char *port, int family, int socktype, in xgetaddrinfo() 22 struct addrinfo info, *ai; in xgetaddrinfo() 25 memset(&info, 0, sizeof(struct addrinfo)); in xgetaddrinfo() 40 static int xconnbind(struct addrinfo *ai_arg, int dobind) in xconnbind() 42 struct addrinfo *ai; in xconnbind() 59 int xconnectany(struct addrinfo *ai) in xconnectany() 65 int xbindany(struct addrinfo *ai) in xbindany()
|
/external/libpcap/rpcapd/ |
D | rpcapd.c | 86 static struct addrinfo mainhints; //!< temporary struct to keep settings needed to open the new so… 205 memset(&mainhints, 0, sizeof(struct addrinfo)); in main() 558 struct addrinfo *addrinfo; // keeps the addrinfo chain; required to open a new socket in main_startup() local 567 addrinfo = NULL; in main_startup() 608 struct addrinfo *tempaddrinfo; in main_startup() 613 …if (sock_initaddress((address[0]) ? address : NULL, port, &mainhints, &addrinfo, errbuf, PCAP_ERRB… in main_startup() 619 for (tempaddrinfo = addrinfo; tempaddrinfo; in main_startup() 677 freeaddrinfo(addrinfo); in main_startup() 1329 struct addrinfo hints; // temporary struct to keep settings needed to open the new socket in main_active() 1330 struct addrinfo *addrinfo; // keeps the addrinfo chain; required to open a new socket in main_active() local [all …]
|
/external/llvm-project/compiler-rt/lib/sanitizer_common/ |
D | sanitizer_platform_limits_solaris.cpp | 211 CHECK_TYPE_SIZE(addrinfo); 212 CHECK_SIZE_AND_OFFSET(addrinfo, ai_flags); 213 CHECK_SIZE_AND_OFFSET(addrinfo, ai_family); 214 CHECK_SIZE_AND_OFFSET(addrinfo, ai_socktype); 215 CHECK_SIZE_AND_OFFSET(addrinfo, ai_protocol); 216 CHECK_SIZE_AND_OFFSET(addrinfo, ai_protocol); 217 CHECK_SIZE_AND_OFFSET(addrinfo, ai_addrlen); 218 CHECK_SIZE_AND_OFFSET(addrinfo, ai_canonname); 219 CHECK_SIZE_AND_OFFSET(addrinfo, ai_addr);
|
D | sanitizer_platform_limits_freebsd.cpp | 385 CHECK_TYPE_SIZE(addrinfo); 386 CHECK_SIZE_AND_OFFSET(addrinfo, ai_flags); 387 CHECK_SIZE_AND_OFFSET(addrinfo, ai_family); 388 CHECK_SIZE_AND_OFFSET(addrinfo, ai_socktype); 389 CHECK_SIZE_AND_OFFSET(addrinfo, ai_protocol); 390 CHECK_SIZE_AND_OFFSET(addrinfo, ai_protocol); 391 CHECK_SIZE_AND_OFFSET(addrinfo, ai_addrlen); 392 CHECK_SIZE_AND_OFFSET(addrinfo, ai_canonname); 393 CHECK_SIZE_AND_OFFSET(addrinfo, ai_addr);
|
/external/mdnsresponder/mDNSShared/ |
D | uds_daemon.c | 196 } addrinfo; member 2503 question2 = &request->u.addrinfo.q42; in SendAdditionalQuery() 2505 question2 = &request->u.addrinfo.q62; in SendAdditionalQuery() 2656 else if (req->hdr.op == addrinfo_request && question == req->u.addrinfo.q42) in queryrecord_result_callback() 2657 q = &req->u.addrinfo.q4; in queryrecord_result_callback() 2658 else if (req->hdr.op == addrinfo_request && question == req->u.addrinfo.q62) in queryrecord_result_callback() 2659 q = &req->u.addrinfo.q6; in queryrecord_result_callback() 3354 LogOperation("%3d: DNSServiceGetAddrInfo(%##s) STOP", request->sd, request->u.addrinfo.q4.qname.c); in addrinfo_termination_callback() 3356 if (request->u.addrinfo.q4.QuestionContext) in addrinfo_termination_callback() 3358 mDNS_StopQuery(&mDNSStorage, &request->u.addrinfo.q4); in addrinfo_termination_callback() [all …]
|
/external/openssh/regress/ |
D | netcat.c | 125 int local_listen(char *, char *, struct addrinfo); 128 int remote_connect(const char *, const char *, struct addrinfo); 130 int socks_connect(const char *, const char *, struct addrinfo, 131 const char *, const char *, struct addrinfo, int, const char *); 149 struct addrinfo hints; in main() 155 struct addrinfo proxyhints; in main() 334 memset(&hints, 0, sizeof(struct addrinfo)); in main() 362 memset(&proxyhints, 0, sizeof(struct addrinfo)); in main() 607 remote_connect(const char *host, const char *port, struct addrinfo hints) in remote_connect() 609 struct addrinfo *res, *res0; in remote_connect() [all …]
|
/external/libiio/src/ |
D | network.c | 86 struct addrinfo *addrinfo; member 575 static int do_create_socket(const struct addrinfo *addrinfo) in do_create_socket() argument 579 fd = socket(addrinfo->ai_family, addrinfo->ai_socktype | SOCK_CLOEXEC, 0); in do_create_socket() 606 static int do_create_socket(const struct addrinfo *addrinfo) in do_create_socket() argument 610 s = WSASocketW(addrinfo->ai_family, addrinfo->ai_socktype, 0, NULL, 0, in do_create_socket() 632 static int do_connect(int fd, const struct addrinfo *addrinfo, in do_connect() argument 649 ret = connect(fd, addrinfo->ai_addr, (int) addrinfo->ai_addrlen); in do_connect() 701 static int create_socket(const struct addrinfo *addrinfo, unsigned int timeout) in create_socket() argument 705 fd = do_create_socket(addrinfo); in create_socket() 709 ret = do_connect(fd, addrinfo, timeout); in create_socket() [all …]
|
/external/llvm-project/compiler-rt/test/msan/ |
D | getaddrinfo-positive.cpp | 14 struct addrinfo *ai; in main() 15 struct addrinfo hint; in main()
|
/external/compiler-rt/test/msan/ |
D | getaddrinfo-positive.cc | 14 struct addrinfo *ai; in main() 15 struct addrinfo hint; in main()
|
/external/toybox/toys/pending/ |
D | ip.c | 58 } addrinfo; variable 810 if (TT.is_addr && addrinfo.label && fnmatch(addrinfo.label, link->iface, 0)) in print_link_output() 1017 if ((addrinfo.scope ^ ifa->ifa_scope)&addrinfo.scopemask) return 0; in print_addrinfo() 1018 if (addrinfo.ifindex && addrinfo.ifindex != ifa->ifa_index) return 0; in print_addrinfo() 1020 if (flag_l && addrinfo.label && ifa->ifa_family == AF_INET6) return 0; in print_addrinfo() 1024 if (addrinfo.label && fnmatch(addrinfo.label, label, 0)) in print_addrinfo() 1029 if (ifa->ifa_index == addrinfo.ifindex) { in print_addrinfo() 1065 if (addrinfo.to && strcmp(addrinfo.addr, lbuf)) in print_addrinfo() 1282 memset(&addrinfo, 0, sizeof(addrinfo)); in ipaddr_listflush() 1290 addrinfo.scope = -1; in ipaddr_listflush() [all …]
|
/external/llvm-project/lldb/source/Host/common/ |
D | SocketAddress.cpp | 91 SocketAddress::SocketAddress(const struct addrinfo *addr_info) { in SocketAddress() 178 operator=(const struct addrinfo *addr_info) { in operator =() 226 struct addrinfo hints; in GetAddressInfo() 233 struct addrinfo *service_info_list = nullptr; in GetAddressInfo() 236 for (struct addrinfo *service_ptr = service_info_list; in GetAddressInfo()
|
/external/libwebsockets/include/ |
D | libwebsockets.h | 394 struct addrinfo { struct 402 struct addrinfo *ai_next; argument 451 const struct addrinfo *hints, 452 struct addrinfo **res); 454 void freeaddrinfo(struct addrinfo *res);
|