Home
last modified time | relevance | path

Searched refs:addrinfo (Results 1 – 25 of 305) sorted by relevance

12345678910>>...13

/freebsd/lib/libc/tests/nss/
H A Dgetaddrinfo_test.c51 static struct addrinfo hints;
54 DECLARE_TEST_DATA(addrinfo)
55 DECLARE_TEST_FILE_SNAPSHOT(addrinfo)
56 DECLARE_2PASS_TEST(addrinfo)
58 static void clone_addrinfo(struct addrinfo *, struct addrinfo const *);
59 static int compare_addrinfo(struct addrinfo *, struct addrinfo *, void *);
60 static void dump_addrinfo(struct addrinfo *);
62 static void sdump_addrinfo(struct addrinfo *, char *, size_t);
64 IMPLEMENT_TEST_DATA(addrinfo)
65 IMPLEMENT_TEST_FILE_SNAPSHOT(addrinfo) in IMPLEMENT_TEST_FILE_SNAPSHOT() argument
[all …]
/freebsd/contrib/libpcap/
H A Dsockutils.c393 struct addrinfo *info;
430 static PCAP_SOCKET sock_create_socket(struct addrinfo *addrinfo, char *errbuf, in sock_create_socket() argument
438 sock = socket(addrinfo->ai_family, addrinfo->ai_socktype, in sock_create_socket()
439 addrinfo->ai_protocol); in sock_create_socket()
499 PCAP_SOCKET sock_open(const char *host, struct addrinfo *addrinfo, in sock_open() argument
512 sock = sock_create_socket(addrinfo, errbuf, errbuflen); in sock_open()
561 if (addrinfo->ai_family == PF_INET6) in sock_open()
576 if (bind(sock, addrinfo->ai_addr, (int) addrinfo->ai_addrlen) != 0) in sock_open()
583 if (addrinfo->ai_socktype == SOCK_STREAM) in sock_open()
598 struct addrinfo *tempaddrinfo; in sock_open()
[all …]
H A Dpcap-rpcap.c1024 …struct addrinfo hints, *addrinfo, *ai_next; /* temp var needed to translate between hostname to it… in rpcap_remoteact_getsock() local
1027 addrinfo = NULL; in rpcap_remoteact_getsock()
1028 memset(&hints, 0, sizeof(struct addrinfo)); in rpcap_remoteact_getsock()
1032 addrinfo = sock_initaddress(host, NULL, &hints, errbuf, in rpcap_remoteact_getsock()
1034 if (addrinfo == NULL) in rpcap_remoteact_getsock()
1044 ai_next = addrinfo; in rpcap_remoteact_getsock()
1050 freeaddrinfo(addrinfo); in rpcap_remoteact_getsock()
1059 if (addrinfo) in rpcap_remoteact_getsock()
1060 freeaddrinfo(addrinfo); in rpcap_remoteact_getsock()
1095 struct addrinfo hints; /* temp, needed to open a socket connection */ in pcap_startcapture_remote()
[all …]
H A Dsockutils.h141 struct addrinfo *sock_initaddress(const char *address, const char *port,
142 struct addrinfo *hints, char *errbuf, int errbuflen);
147 PCAP_SOCKET sock_open(const char *host, struct addrinfo *addrinfo, int server,
/freebsd/lib/libc/net/
H A Dgetaddrinfo.c224 struct addrinfo *aio_ai;
252 static int explore_copy(const struct addrinfo *, const struct addrinfo *,
253 struct addrinfo **);
254 static int explore_null(const struct addrinfo *,
255 const char *, struct addrinfo **);
256 static int explore_numeric(const struct addrinfo *, const char *,
257 const char *, struct addrinfo **, const char *);
258 static int explore_numeric_scope(const struct addrinfo *, const char *,
259 const char *, struct addrinfo **);
260 static int get_canonname(const struct addrinfo *,
[all …]
/freebsd/contrib/ntp/libntp/
H A Dntp_rfc2553.c110 struct addrinfo * copy_addrinfo_common(const struct addrinfo *, int
118 struct addrinfo *
120 const struct addrinfo * src in copy_addrinfo_impl()
137 struct addrinfo *
139 const struct addrinfo * src in copy_addrinfo_list_impl()
156 struct addrinfo *
158 const struct addrinfo * src, in copy_addrinfo_common()
167 const struct addrinfo * ai_src; in copy_addrinfo_common()
168 const struct addrinfo * ai_nxt; in copy_addrinfo_common()
169 struct addrinfo * ai_cpy; in copy_addrinfo_common()
[all …]
/freebsd/crypto/heimdal/lib/roken/
H A Dgetaddrinfo.c44 const struct addrinfo *hints, in get_port_protocol_socktype()
105 struct addrinfo ***ptr, in add_one()
106 int (*func)(struct addrinfo *, void *data, int port), in add_one() argument
110 struct addrinfo *a; in add_one()
133 const_v4 (struct addrinfo *a, void *data, int port) in const_v4()
153 const_v6 (struct addrinfo *a, void *data, int port) in const_v6()
180 get_null (const struct addrinfo *hints, in get_null()
182 struct addrinfo **res) in get_null()
188 struct addrinfo *first = NULL; in get_null()
189 struct addrinfo **current = &first; in get_null()
[all …]
/freebsd/usr.bin/getaddrinfo/
H A Dgetaddrinfo.c51 static void printaddrinfo(struct addrinfo *);
61 static const struct addrinfo zero_addrinfo; in main()
62 struct addrinfo hints = zero_addrinfo; in main()
63 struct addrinfo *addrinfo; in main() local
150 error = getaddrinfo(hostname, service, &hints, &addrinfo); in main()
154 if ((hints.ai_flags & AI_CANONNAME) && (addrinfo != NULL)) { in main()
155 if (printf("canonname %s\n", addrinfo->ai_canonname) < 0) in main()
159 printaddrinfo(addrinfo); in main()
161 freeaddrinfo(addrinfo); in main()
260 printaddrinfo(struct addrinfo *addrinfo) in printaddrinfo() argument
[all …]
/freebsd/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 *
183 struct addrinfo { struct
191 struct addrinfo *ai_next; /* next structure in linked list */ argument
214 const struct addrinfo *, struct addrinfo **);
217 void freeaddrinfo (struct addrinfo *);
H A Dntp_intres.h21 const struct addrinfo *, const struct addrinfo *);
23 const struct addrinfo *, int,
26 const struct addrinfo *, int,
/freebsd/contrib/bsnmp/lib/
H A Dsupport.h53 struct addrinfo { struct
60 struct addrinfo *ai_next; argument
64 int getaddrinfo(const char *, const char *, const struct addrinfo *,
65 struct addrinfo **);
67 void freeaddrinfo(struct addrinfo *);
/freebsd/contrib/unbound/compat/
H A Dfake-rfc2553.c105 freeaddrinfo(struct addrinfo *ai) in freeaddrinfo()
107 struct addrinfo *next; in freeaddrinfo()
119 addrinfo *malloc_ai(int port, u_long addr, const struct addrinfo *hints) in malloc_ai()
121 struct addrinfo *ai; in malloc_ai()
149 const struct addrinfo *hints, struct addrinfo **res) in getaddrinfo()
201 struct addrinfo *cur, *prev; in getaddrinfo()
H A Dfake-rfc2553.h136 struct addrinfo { struct
144 struct addrinfo *ai_next; /* next structure in linked list */ argument
154 const struct addrinfo *, struct addrinfo **);
164 void freeaddrinfo(struct addrinfo *);
/freebsd/crypto/openssh/openbsd-compat/
H A Dfake-rfc2553.c110 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()
H A Dfake-rfc2553.h138 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 *);
/freebsd/contrib/ldns/compat/
H A Dfake-rfc2553.c107 freeaddrinfo(struct addrinfo *ai) in freeaddrinfo()
109 struct addrinfo *next; in freeaddrinfo()
121 addrinfo *malloc_ai(int port, u_long addr, const struct addrinfo *hints) in malloc_ai()
123 struct addrinfo *ai; in malloc_ai()
153 const struct addrinfo *hints, struct addrinfo **res) in getaddrinfo()
205 struct addrinfo *cur, *prev; in getaddrinfo()
H A Dfake-rfc2553.h141 struct addrinfo { struct
149 struct addrinfo *ai_next; /* next structure in linked list */ argument
159 const struct addrinfo *, struct addrinfo **);
169 void freeaddrinfo(struct addrinfo *);
/freebsd/contrib/libpcap/rpcapd/
H A Drpcapd.c85 static struct addrinfo mainhints; //!< temporary struct to keep settings needed to open the new so…
204 memset(&mainhints, 0, sizeof(struct addrinfo)); in main()
563 struct addrinfo *addrinfo; // keeps the addrinfo chain; required to open a new socket in main_startup() local
572 addrinfo = NULL; in main_startup()
613 struct addrinfo *tempaddrinfo; in main_startup()
618 addrinfo = sock_initaddress((address[0]) ? address : NULL, in main_startup()
620 if (addrinfo == NULL) in main_startup()
626 for (tempaddrinfo = addrinfo; tempaddrinfo; in main_startup()
684 freeaddrinfo(addrinfo); in main_startup()
1338 struct addrinfo hints; // temporary struct to keep settings needed to open the new socket in main_active()
[all …]
/freebsd/usr.bin/finger/
H A Dnet.c52 static int do_protocol(const char *name, const struct addrinfo *ai);
53 static void trying(const struct addrinfo *ai);
60 struct addrinfo *ai, *ai0; in netfinger()
61 static struct addrinfo hint; in netfinger()
101 do_protocol(const char *name, const struct addrinfo *ai) in do_protocol()
212 trying(const struct addrinfo *ai) in trying()
/freebsd/sbin/setkey/
H A Dparse.y69 struct addrinfo *p_natt_oai, *p_natt_oar;
77 static struct addrinfo *parse_addr(char *, char *);
85 struct addrinfo *, int, struct addrinfo *, int);
87 struct addrinfo *, struct addrinfo *, int);
89 struct addrinfo *, struct addrinfo *);
102 struct addrinfo *res;
563 struct addrinfo *sr
[all...]
/freebsd/contrib/llvm-project/compiler-rt/lib/sanitizer_common/
H A Dsanitizer_platform_limits_solaris.cpp212 CHECK_TYPE_SIZE(addrinfo);
213 CHECK_SIZE_AND_OFFSET(addrinfo, ai_flags);
214 CHECK_SIZE_AND_OFFSET(addrinfo, ai_family);
215 CHECK_SIZE_AND_OFFSET(addrinfo, ai_socktype);
216 CHECK_SIZE_AND_OFFSET(addrinfo, ai_protocol);
217 CHECK_SIZE_AND_OFFSET(addrinfo, ai_protocol);
218 CHECK_SIZE_AND_OFFSET(addrinfo, ai_addrlen);
219 CHECK_SIZE_AND_OFFSET(addrinfo, ai_canonname);
220 CHECK_SIZE_AND_OFFSET(addrinfo, ai_addr);
/freebsd/include/
H A Dnetdb.h133 struct addrinfo { struct
141 struct addrinfo *ai_next; /* next structure in linked list */ argument
251 const struct addrinfo *, struct addrinfo **);
254 void freeaddrinfo(struct addrinfo *);
/freebsd/contrib/ntp/sntp/tests/
H A Dutilities.c13 struct addrinfo CreateAddrinfo(sockaddr_u* sock);
36 struct addrinfo
38 struct addrinfo a; in CreateAddrinfo()
87 struct addrinfo inputA = CreateAddrinfo(&input); in test_IPv4Address()
104 struct addrinfo inputA; in test_IPv6Address()
/freebsd/contrib/netbsd-tests/lib/libc/net/getaddrinfo/
H A Dh_gai.c45 struct addrinfo ai;
52 static void print1(const char *, const struct addrinfo *, char *, char *);
62 print1(const char *title, const struct addrinfo *res, char *h, char *s) in print1()
108 struct addrinfo *res; in main()
/freebsd/crypto/openssh/regress/
H A Dnetcat.c129 int local_listen(char *, char *, struct addrinfo);
132 int remote_connect(const char *, const char *, struct addrinfo);
134 int socks_connect(const char *, const char *, struct addrinfo,
135 const char *, const char *, struct addrinfo, int, const char *);
153 struct addrinfo hints; in main()
159 struct addrinfo proxyhints; in main()
340 memset(&hints, 0, sizeof(struct addrinfo)); in main()
368 memset(&proxyhints, 0, sizeof(struct addrinfo)); in main()
613 remote_connect(const char *host, const char *port, struct addrinfo hints) in remote_connect()
615 struct addrinfo *res, *res0; in remote_connect()
[all …]

12345678910>>...13