/external/libpcap/ |
D | sockutils.c | 283 SOCKET sock_open(struct addrinfo *addrinfo, int server, int nconn, char *errbuf, int errbuflen) in sock_open() argument 287 sock = socket(addrinfo->ai_family, addrinfo->ai_socktype, addrinfo->ai_protocol); in sock_open() 305 if (addrinfo->ai_family == PF_INET6) in sock_open() 319 if (bind(sock, addrinfo->ai_addr, (int) addrinfo->ai_addrlen) != 0) in sock_open() 325 if (addrinfo->ai_socktype == SOCK_STREAM) in sock_open() 337 struct addrinfo *tempaddrinfo; in sock_open() 341 tempaddrinfo = addrinfo; in sock_open() 477 struct addrinfo *hints, struct addrinfo **addrinfo, char *errbuf, int errbuflen) in sock_initaddress() argument 481 retval = getaddrinfo(host, port, hints, addrinfo); in sock_initaddress() 511 if (((*addrinfo)->ai_family != PF_INET) && in sock_initaddress() [all …]
|
D | pcap-new.c | 92 …struct addrinfo hints; /* temp variable needed to resolve hostnames into to socket representation… in pcap_findalldevs_ex() 93 …struct addrinfo *addrinfo; /* temp variable needed to resolve hostnames into to socket representat… in pcap_findalldevs_ex() local 366 addrinfo = NULL; in pcap_findalldevs_ex() 368 memset(&hints, 0, sizeof(struct addrinfo)); in pcap_findalldevs_ex() 375 …if (sock_initaddress(host, RPCAP_DEFAULT_NETPORT, &hints, &addrinfo, errbuf, PCAP_ERRBUF_SIZE) == … in pcap_findalldevs_ex() 380 if (sock_initaddress(host, port, &hints, &addrinfo, errbuf, PCAP_ERRBUF_SIZE) == -1) in pcap_findalldevs_ex() 384 if ((sockctrl = sock_open(addrinfo, SOCKOPEN_CLIENT, 0, errbuf, PCAP_ERRBUF_SIZE)) == -1) in pcap_findalldevs_ex() 388 freeaddrinfo(addrinfo); in pcap_findalldevs_ex() 389 addrinfo = NULL; in pcap_findalldevs_ex() 1004 struct addrinfo hints; /* temporary struct to keep settings needed to open the new socket */ in pcap_remoteact_accept() [all …]
|
D | pcap-rpcap.c | 711 struct addrinfo hints; /* temp, needed to open a socket connection */ in pcap_opensource_remote() 712 struct addrinfo *addrinfo; /* temp, needed to open a socket connection */ in pcap_opensource_remote() local 738 addrinfo = NULL; in pcap_opensource_remote() 757 memset(&hints, 0, sizeof(struct addrinfo)); in pcap_opensource_remote() 764 …if (sock_initaddress(host, RPCAP_DEFAULT_NETPORT, &hints, &addrinfo, fp->errbuf, PCAP_ERRBUF_SIZE)… in pcap_opensource_remote() 770 if (sock_initaddress(host, ctrlport, &hints, &addrinfo, fp->errbuf, PCAP_ERRBUF_SIZE) == -1) in pcap_opensource_remote() 774 …if ((sockctrl = sock_open(addrinfo, SOCKOPEN_CLIENT, 0, fp->errbuf, PCAP_ERRBUF_SIZE)) == INVALID_… in pcap_opensource_remote() 777 freeaddrinfo(addrinfo); in pcap_opensource_remote() 778 addrinfo = NULL; in pcap_opensource_remote() 874 if (addrinfo) in pcap_opensource_remote() [all …]
|
D | sockutils.h | 211 struct addrinfo *hints, struct addrinfo **addrinfo, 215 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/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/syslinux/core/lwip/src/include/lwip/ |
D | netdb.h | 83 struct addrinfo { struct 91 struct addrinfo *ai_next; /* Pointer to next in list. */ argument 103 void lwip_freeaddrinfo(struct addrinfo *ai); 106 const struct addrinfo *hints, 107 struct addrinfo **res); 113 #define freeaddrinfo(addrinfo) lwip_freeaddrinfo(addrinfo) argument
|
/external/curl/lib/ |
D | curl_addrinfo.h | 70 const struct addrinfo *hints, 89 curl_dofreeaddrinfo(struct addrinfo *freethis, 97 const struct addrinfo *hints, 98 struct addrinfo **result, 104 void Curl_addrinfo_set_port(Curl_addrinfo *addrinfo, int port);
|
D | curl_addrinfo.c | 109 const struct addrinfo *hints, in Curl_getaddrinfo_ex() 112 const struct addrinfo *ai; in Curl_getaddrinfo_ex() 113 struct addrinfo *aihead; in Curl_getaddrinfo_ex() 520 curl_dofreeaddrinfo(struct addrinfo *freethis, in curl_dofreeaddrinfo() 546 const struct addrinfo *hints, in curl_dogetaddrinfo() 547 struct addrinfo **result, in curl_dogetaddrinfo() 571 void Curl_addrinfo_set_port(Curl_addrinfo *addrinfo, int port) in Curl_addrinfo_set_port() argument 578 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/netperf/src/missing/ |
D | getaddrinfo.h | 146 #define addrinfo my_addrinfo macro 210 struct addrinfo { struct 218 struct addrinfo *ai_next; argument 226 void freeaddrinfo(struct addrinfo *); 227 int getaddrinfo(const char *, const char *, const struct addrinfo *, 228 struct addrinfo **);
|
D | getaddrinfo.c | 199 static struct addrinfo default_hints = { 241 struct addrinfo *ai; in freeaddrinfo() 243 struct addrinfo *next_ai; 331 const struct addrinfo *hints; 332 struct addrinfo **res; 334 struct addrinfo *head_res = NULL; 335 struct addrinfo *tail_res = NULL; 336 struct addrinfo *new_res; 458 new_res = (struct addrinfo *)malloc(sizeof(struct addrinfo));
|
/external/syslinux/core/lwip/src/api/ |
D | netdb.c | 235 lwip_freeaddrinfo(struct addrinfo *ai) in lwip_freeaddrinfo() 237 struct addrinfo *next; in lwip_freeaddrinfo() 267 const struct addrinfo *hints, struct addrinfo **res) in lwip_getaddrinfo() 271 struct addrinfo *ai; in lwip_getaddrinfo() 305 total_size = sizeof(struct addrinfo) + sizeof(struct sockaddr_in); in lwip_getaddrinfo() 314 ai = (struct addrinfo *)memp_malloc(MEMP_NETDB); in lwip_getaddrinfo() 319 sa = (struct sockaddr_in*)((u8_t*)ai + sizeof(struct addrinfo)); in lwip_getaddrinfo() 335 ai->ai_canonname = ((char*)ai + sizeof(struct addrinfo) + sizeof(struct sockaddr_in)); in lwip_getaddrinfo()
|
/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/netcat/ |
D | netcat.c | 106 int local_listen(char *, char *, struct addrinfo); 108 int remote_connect(const char *, const char *, struct addrinfo); 111 int socks_connect(const char *, const char *, struct addrinfo, 112 const char *, const char *, struct addrinfo, int, const char *); 127 struct addrinfo hints; in main() 133 struct addrinfo proxyhints; in main() 331 memset(&hints, 0, sizeof(struct addrinfo)); in main() 360 memset(&proxyhints, 0, sizeof(struct addrinfo)); in main() 590 remote_connect(const char *host, const char *port, struct addrinfo hints) in remote_connect() 592 struct addrinfo *res, *res0; in remote_connect() [all …]
|
/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 | 122 int local_listen(char *, char *, struct addrinfo); 125 int remote_connect(const char *, const char *, struct addrinfo); 127 int socks_connect(const char *, const char *, struct addrinfo, 128 const char *, const char *, struct addrinfo, int, const char *); 146 struct addrinfo hints; in main() 152 struct addrinfo proxyhints; in main() 331 memset(&hints, 0, sizeof(struct addrinfo)); in main() 359 memset(&proxyhints, 0, sizeof(struct addrinfo)); in main() 604 remote_connect(const char *host, const char *port, struct addrinfo hints) in remote_connect() 606 struct addrinfo *res, *res0; in remote_connect() [all …]
|
/external/netperf/src/ |
D | nettest_bsd.h | 598 extern struct addrinfo *complete_addrinfo(char *controlhost, 605 extern void complete_addrinfos(struct addrinfo **remote, 606 struct addrinfo **local, 618 struct addrinfo *source, 619 struct addrinfo *destination); 620 extern void set_port_number(struct addrinfo *res, 676 extern SOCKET create_data_socket(struct addrinfo *res);
|
/external/toybox/toys/pending/ |
D | ip.c | 55 } addrinfo; variable 760 if (TT.is_addr && addrinfo.label && fnmatch(addrinfo.label, link->iface, 0)) in print_link_output() 967 if ((addrinfo.scope ^ ifa->ifa_scope)&addrinfo.scopemask) return 0; in print_addrinfo() 968 if (addrinfo.ifindex && addrinfo.ifindex != ifa->ifa_index) return 0; in print_addrinfo() 970 if (flag_l && addrinfo.label && ifa->ifa_family == AF_INET6) return 0; in print_addrinfo() 974 if (addrinfo.label && fnmatch(addrinfo.label, label, 0)) in print_addrinfo() 979 if (ifa->ifa_index == addrinfo.ifindex) { in print_addrinfo() 1015 if (addrinfo.to && strcmp(addrinfo.addr, lbuf)) in print_addrinfo() 1232 memset(&addrinfo, 0, sizeof(addrinfo)); in ipaddr_listflush() 1240 addrinfo.scope = -1; in ipaddr_listflush() [all …]
|
/external/compiler-rt/test/msan/ |
D | getaddrinfo-positive.cc | 14 struct addrinfo *ai; in main() 15 struct addrinfo hint; in main()
|
/external/curl/tests/ |
D | memanalyze.pl | 331 $addrinfo{$add}=1; 341 if(!$addrinfo{$1}) { 345 $addrinfo{$1}=0; 393 if($addrinfo{$_} == 1) {
|
/external/c-ares/ |
D | ares_ipv6.h | 36 struct addrinfo struct 45 struct addrinfo *ai_next; argument
|
/external/webrtc/webrtc/base/ |
D | nethelpers.cc | 36 struct addrinfo* result = NULL; in ResolveHostname() 37 struct addrinfo hints = {0}; in ResolveHostname() 45 struct addrinfo* cursor = result; in ResolveHostname()
|