Searched defs:addrinfo (Results 1 - 23 of 23) sorted by relevance

/freebsd-head/contrib/bsnmp/lib/
H A Dsupport.h53 struct addrinfo { struct
60 struct addrinfo *ai_next;
64 int getaddrinfo(const char *, const char *, const struct addrinfo *,
65 struct addrinfo **);
67 void freeaddrinfo(struct addrinfo *);
/freebsd-head/contrib/unbound/respip/
H A Drespip.h87 struct respip_addr_info* addrinfo; /* set only for inform variants */ member in struct:respip_action_info
/freebsd-head/usr.bin/getaddrinfo/
H A Dgetaddrinfo.c54 static void printaddrinfo(struct addrinfo *);
64 static const struct addrinfo zero_addrinfo;
65 struct addrinfo hints = zero_addrinfo;
66 struct addrinfo *addrinfo; local
153 error = getaddrinfo(hostname, service, &hints, &addrinfo);
157 if ((hints.ai_flags & AI_CANONNAME) && (addrinfo != NULL)) {
158 if (printf("canonname %s\n", addrinfo->ai_canonname) < 0)
162 printaddrinfo(addrinfo);
164 freeaddrinfo(addrinfo);
263 printaddrinfo(struct addrinfo *addrinfo) argument
[all...]
/freebsd-head/contrib/serf/auth/
H A Dauth_spnego_sspi.c165 struct addrinfo hints;
166 struct addrinfo *addrinfo; local
171 if (getaddrinfo(hostname, NULL, &hints, &addrinfo)) {
175 if (addrinfo) {
176 *canonname = apr_pstrdup(pool, addrinfo->ai_canonname);
182 freeaddrinfo(addrinfo);
/freebsd-head/contrib/ldns/compat/
H A Dfake-rfc2553.h141 struct addrinfo { struct
149 struct addrinfo *ai_next; /* next structure in linked list */
159 const struct addrinfo *, struct addrinfo **);
169 void freeaddrinfo(struct addrinfo *);
/freebsd-head/contrib/unbound/compat/
H A Dfake-rfc2553.h136 struct addrinfo { struct
144 struct addrinfo *ai_next; /* next structure in linked list */
154 const struct addrinfo *, struct addrinfo **);
164 void freeaddrinfo(struct addrinfo *);
/freebsd-head/contrib/ntp/lib/isc/win32/
H A Dnetdb.h27 * Define if <netdb.h> does not declare struct addrinfo.
30 struct addrinfo { struct
38 struct addrinfo *ai_next; /* Next structure in linked list */
/freebsd-head/contrib/ntp/include/
H A Dntp_rfc2553.h77 struct addrinfo *copy_addrinfo_impl(const struct addrinfo *
83 struct addrinfo *copy_addrinfo_list_impl(const struct addrinfo *
158 /* valid flags for addrinfo */
183 struct addrinfo { struct
191 struct addrinfo *ai_next; /* next structure in linked list */
214 const struct addrinfo *, struct addrinfo **);
217 void freeaddrinfo (struct addrinfo *);
[all...]
/freebsd-head/crypto/openssh/openbsd-compat/
H A Dfake-rfc2553.h138 struct addrinfo { struct
146 struct addrinfo *ai_next; /* next structure in linked list */
156 const struct addrinfo *, struct addrinfo **);
166 void freeaddrinfo(struct addrinfo *);
/freebsd-head/crypto/openssl/crypto/bio/
H A Dbio_local.h19 * AI_PASSIVE is used to detect the availability of struct addrinfo,
47 * There's a bug in VMS C header file netdb.h, where struct addrinfo
50 * size. The easiest workaround is to force struct addrinfo to be the
54 # define addrinfo __addrinfo64 macro
57 # define bio_addrinfo_st addrinfo
/freebsd-head/contrib/libpcap/rpcapd/
H A Drpcapd.c81 static struct addrinfo mainhints; //!< temporary struct to keep settings needed to open the new socket
187 memset(&mainhints, 0, sizeof(struct addrinfo));
497 struct addrinfo *addrinfo; // keeps the addrinfo chain; required to open a new socket local
506 addrinfo = NULL;
547 struct addrinfo *tempaddrinfo;
552 if (sock_initaddress((address[0]) ? address : NULL, port, &mainhints, &addrinfo, errbuf, PCAP_ERRBUF_SIZE) == -1)
558 for (tempaddrinfo = addrinfo; tempaddrinfo;
616 freeaddrinfo(addrinfo);
1269 struct addrinfo *addrinfo; // keeps the addrinfo chain; required to open a new socket local
[all...]
H A Ddaemon.c1644 struct addrinfo hints; // temp, needed to open a socket connection
1645 struct addrinfo *addrinfo; // temp, needed to open a socket connection local
1655 addrinfo = NULL;
1733 memset(&hints, 0, sizeof(struct addrinfo));
1750 if (sock_initaddress(peerhost, portdata, &hints, &addrinfo, errmsgbuf, PCAP_ERRBUF_SIZE) == -1)
1753 if ((session->sockdata = sock_open(addrinfo, SOCKOPEN_CLIENT, 0, errmsgbuf, PCAP_ERRBUF_SIZE)) == INVALID_SOCKET)
1761 if (sock_initaddress(NULL, "0", &hints, &addrinfo, errmsgbuf, PCAP_ERRBUF_SIZE) == -1)
1764 if ((session->sockdata = sock_open(addrinfo, SOCKOPEN_SERVER, 1 /* max 1 connection in queue */, errmsgbuf, PCAP_ERRBUF_SIZE)) == INVALID_SOCKET)
1784 // addrinfo i
[all...]
/freebsd-head/contrib/llvm-project/compiler-rt/lib/sanitizer_common/
H A Dsanitizer_platform_limits_openbsd.cpp154 CHECK_TYPE_SIZE(addrinfo); variable
155 CHECK_SIZE_AND_OFFSET(addrinfo, ai_flags);
156 CHECK_SIZE_AND_OFFSET(addrinfo, ai_family);
157 CHECK_SIZE_AND_OFFSET(addrinfo, ai_socktype);
158 CHECK_SIZE_AND_OFFSET(addrinfo, ai_protocol);
159 CHECK_SIZE_AND_OFFSET(addrinfo, ai_addrlen);
160 CHECK_SIZE_AND_OFFSET(addrinfo, ai_addr);
161 CHECK_SIZE_AND_OFFSET(addrinfo, ai_canonname);
162 CHECK_SIZE_AND_OFFSET(addrinfo, ai_next);
H A Dsanitizer_platform_limits_solaris.cpp209 CHECK_TYPE_SIZE(addrinfo); variable
210 CHECK_SIZE_AND_OFFSET(addrinfo, ai_flags);
211 CHECK_SIZE_AND_OFFSET(addrinfo, ai_family);
212 CHECK_SIZE_AND_OFFSET(addrinfo, ai_socktype);
213 CHECK_SIZE_AND_OFFSET(addrinfo, ai_protocol);
214 CHECK_SIZE_AND_OFFSET(addrinfo, ai_protocol);
215 CHECK_SIZE_AND_OFFSET(addrinfo, ai_addrlen);
216 CHECK_SIZE_AND_OFFSET(addrinfo, ai_canonname);
217 CHECK_SIZE_AND_OFFSET(addrinfo, ai_addr);
H A Dsanitizer_platform_limits_freebsd.cpp381 CHECK_TYPE_SIZE(addrinfo); variable
382 CHECK_SIZE_AND_OFFSET(addrinfo, ai_flags);
383 CHECK_SIZE_AND_OFFSET(addrinfo, ai_family);
384 CHECK_SIZE_AND_OFFSET(addrinfo, ai_socktype);
385 CHECK_SIZE_AND_OFFSET(addrinfo, ai_protocol);
386 CHECK_SIZE_AND_OFFSET(addrinfo, ai_protocol);
387 CHECK_SIZE_AND_OFFSET(addrinfo, ai_addrlen);
388 CHECK_SIZE_AND_OFFSET(addrinfo, ai_canonname);
389 CHECK_SIZE_AND_OFFSET(addrinfo, ai_addr);
H A Dsanitizer_platform_limits_posix.cpp979 CHECK_TYPE_SIZE(addrinfo); variable
980 CHECK_SIZE_AND_OFFSET(addrinfo, ai_flags);
981 CHECK_SIZE_AND_OFFSET(addrinfo, ai_family);
982 CHECK_SIZE_AND_OFFSET(addrinfo, ai_socktype);
983 CHECK_SIZE_AND_OFFSET(addrinfo, ai_protocol);
984 CHECK_SIZE_AND_OFFSET(addrinfo, ai_protocol);
985 CHECK_SIZE_AND_OFFSET(addrinfo, ai_addrlen);
986 CHECK_SIZE_AND_OFFSET(addrinfo, ai_canonname);
987 CHECK_SIZE_AND_OFFSET(addrinfo, ai_addr);
H A Dsanitizer_platform_limits_netbsd.cpp2255 CHECK_TYPE_SIZE(addrinfo); variable
2256 CHECK_SIZE_AND_OFFSET(addrinfo, ai_flags);
2257 CHECK_SIZE_AND_OFFSET(addrinfo, ai_family);
2258 CHECK_SIZE_AND_OFFSET(addrinfo, ai_socktype);
2259 CHECK_SIZE_AND_OFFSET(addrinfo, ai_protocol);
2260 CHECK_SIZE_AND_OFFSET(addrinfo, ai_protocol);
2261 CHECK_SIZE_AND_OFFSET(addrinfo, ai_addrlen);
2262 CHECK_SIZE_AND_OFFSET(addrinfo, ai_canonname);
2263 CHECK_SIZE_AND_OFFSET(addrinfo, ai_addr);
/freebsd-head/contrib/tnftp/
H A Dtnftp.h299 struct addrinfo { struct
307 struct addrinfo *ai_next; /* next structure in linked list */
311 const struct addrinfo *, struct addrinfo **);
314 void freeaddrinfo(struct addrinfo *);
/freebsd-head/sys/rpc/
H A Drpcb_prot.h324 rpcbs_addrlist_ptr addrinfo; member in struct:rpcb_stat
474 rpcbs_addrlist_ptr addrinfo; member in struct:rpcb_stat
/freebsd-head/include/
H A Dnetdb.h135 struct addrinfo { struct
143 struct addrinfo *ai_next; /* next structure in linked list */
193 /* valid flags for addrinfo (not a standard def, apps should not use it) */
250 const struct addrinfo *, struct addrinfo **);
253 void freeaddrinfo(struct addrinfo *);
/freebsd-head/contrib/libpcap/
H A Dsockutils.c276 * \param addrinfo: pointer to an addrinfo variable which will be used to
296 SOCKET sock_open(struct addrinfo *addrinfo, int server, int nconn, char *errbuf, int errbuflen) argument
303 sock = socket(addrinfo->ai_family, addrinfo->ai_socktype, addrinfo->ai_protocol);
372 if (addrinfo->ai_family == PF_INET6)
386 if (bind(sock, addrinfo->ai_addr, (int) addrinfo
697 sock_initaddress(const char *host, const char *port, struct addrinfo *hints, struct addrinfo **addrinfo, char *errbuf, int errbuflen) argument
1264 struct addrinfo *addrinfo, *ai_next; local
1611 struct addrinfo *addrinfo; local
[all...]
H A Dpcap-rpcap.c951 struct addrinfo hints, *addrinfo, *ai_next; /* temp var needed to translate between hostname to its address */ local
955 addrinfo = NULL;
956 memset(&hints, 0, sizeof(struct addrinfo));
960 retval = getaddrinfo(host, "0", &hints, &addrinfo);
973 ai_next = addrinfo;
979 freeaddrinfo(addrinfo);
988 if (addrinfo)
989 freeaddrinfo(addrinfo);
1024 struct addrinfo hint
1025 struct addrinfo *addrinfo; /* temp, needed to open a socket connection */ local
2094 struct addrinfo *addrinfo; /* temp variable needed to resolve hostnames into to socket representation */ local
2633 struct addrinfo *addrinfo; /* keeps the addrinfo chain; required to open a new socket */ local
2770 struct addrinfo hints, *addrinfo, *ai_next; /* temp var needed to translate between hostname to its address */ local
[all...]
H A Dgencode.c120 struct addrinfo { struct
128 struct addrinfo *ai_next; /* next structure in linked list */
134 #include <netdb.h> /* for "struct addrinfo" */
277 * any addrinfo structure that would need to be freed.
279 struct addrinfo *ai;
541 struct addrinfo *, int, int);
5203 struct addrinfo *alist, int proto, int dir)
5206 struct addrinfo *ai;
6641 struct addrinfo *res, *res0;
7125 struct addrinfo *re
[all...]

Completed in 138 milliseconds