/freebsd-current/contrib/libpcap/ |
H A D | sockutils.c | 1016 "%sInvalid value for hints when looking up %s", 1058 * \param hints: an addrinfo variable (passed by reference) containing the flags needed to create the 1079 * \warning This function requires the 'hints' variable as parameter. The semantic of this variable is the same 1081 * the programmer to look at that function in order to set the 'hints' variable appropriately. 1084 struct addrinfo *hints, struct addrinfo **addrinfo, char *errbuf, int errbuflen) 1097 retval = getaddrinfo(host, port == NULL ? "0" : port, hints, addrinfo); 1110 try_retval = getaddrinfo(host, NULL, hints, 1761 struct addrinfo hints; local 1765 memset(&hints, 0, sizeof(struct addrinfo)); 1766 hints 1083 sock_initaddress(const char *host, const char *port, struct addrinfo *hints, struct addrinfo **addrinfo, char *errbuf, int errbuflen) argument 2087 struct addrinfo hints; local [all...] |
H A D | pcap-rpcap.c | 1023 struct addrinfo hints, *addrinfo, *ai_next; /* temp var needed to translate between hostname to its address */ local 1028 memset(&hints, 0, sizeof(struct addrinfo)); 1029 hints.ai_family = PF_UNSPEC; 1030 hints.ai_socktype = SOCK_STREAM; 1032 retval = sock_initaddress(host, NULL, &hints, &addrinfo, errbuf, 1095 struct addrinfo hints; /* temp, needed to open a socket connection */ local 1179 memset(&hints, 0, sizeof(struct addrinfo)); 1181 hints.ai_family = ai_family; /* Use the same address family of the control socket */ 1182 hints.ai_socktype = (pr->rmt_flags & PCAP_OPENFLAG_DATATX_UDP) ? SOCK_DGRAM : SOCK_STREAM; 1183 hints 2318 struct addrinfo hints; /* temp variable needed to resolve hostnames into to socket representation */ local 2923 struct addrinfo hints; /* temporary struct to keep settings needed to open the new socket */ local 3121 struct addrinfo hints, *addrinfo, *ai_next; /* temp var needed to translate between hostname to its address */ local [all...] |
/freebsd-current/contrib/unbound/services/ |
H A D | listen_dnsport.c | 1009 struct addrinfo *hints, int v6only, int* noip6, size_t rcv, size_t snd, 1015 hints->ai_socktype = stype; 1017 if((r=getaddrinfo(ifname, port, hints, &res)) != 0 || !res) { 1019 if(r == EAI_NONAME && hints->ai_family == AF_INET6){ 1042 } else if(s == -1 && noproto && hints->ai_family == AF_INET6){ 1049 if(s == -1 && noproto && hints->ai_family == AF_INET6){ 1071 ub_sock->fam = hints->ai_family; 1080 struct addrinfo *hints, int v6only, int* noip6, size_t rcv, size_t snd, 1103 return make_sock(stype, newif, p, hints, v6only, noip6, rcv, 1107 return make_sock(stype, ifname, port, hints, v6onl 1008 make_sock(int stype, const char* ifname, const char* port, struct addrinfo *hints, int v6only, int* noip6, size_t rcv, size_t snd, int* reuseport, int transparent, int tcp_mss, int nodelay, int freebind, int use_systemd, int dscp, struct unbound_socket* ub_sock) argument 1079 make_sock_port(int stype, const char* ifname, const char* port, struct addrinfo *hints, int v6only, int* noip6, size_t rcv, size_t snd, int* reuseport, int transparent, int tcp_mss, int nodelay, int freebind, int use_systemd, int dscp, struct unbound_socket* ub_sock) argument 1263 ports_create_if(const char* ifname, int do_auto, int do_udp, int do_tcp, struct addrinfo *hints, const char* port, struct listen_port** list, size_t rcv, size_t snd, int ssl_port, struct config_strlist* tls_additional_port, int https_port, struct config_strlist* proxy_protocol_port, int* reuseport, int transparent, int tcp_mss, int freebind, int http2_nodelay, int use_systemd, int dnscrypt_port, int dscp, int sock_queue_timeout) argument 1798 struct addrinfo hints; local [all...] |
/freebsd-current/contrib/ofed/librdmacm/examples/ |
H A D | cmtime.c | 48 static struct rdma_addrinfo hints, *rai; variable in typeref:struct:rdma_addrinfo 365 hints.ai_port_space); 457 ret = rdma_create_id(channel, &listen_id, NULL, hints.ai_port_space); 463 ret = get_rdma_addr(src_addr, dst_addr, port, &hints, &rai); 492 ret = get_rdma_addr(src_addr, dst_addr, port, &hints, &rai); 615 hints.ai_port_space = RDMA_PS_TCP; 616 hints.ai_qp_type = IBV_QPT_RC; 665 hints.ai_flags |= RAI_PASSIVE;
|
H A D | rcopy.c | 182 struct addrinfo hints, *res; local 185 memset(&hints, 0, sizeof hints); 186 hints.ai_flags = RAI_PASSIVE; 187 ret = getaddrinfo(NULL, port, &hints, &res);
|
/freebsd-current/lib/libc/net/ |
H A D | getaddrinfo.c | 390 const struct addrinfo *hints, struct addrinfo **res) 426 if (hints) { 427 /* error check for hints */ 428 if (hints->ai_addrlen || hints->ai_canonname || 429 hints->ai_addr || hints->ai_next) 431 if (hints->ai_flags & ~AI_MASK) 433 switch (hints->ai_family) { 444 memcpy(pai, hints, sizeo 389 getaddrinfo(const char *hostname, const char *servname, const struct addrinfo *hints, struct addrinfo **res) argument 1741 struct addrinfo *hints; local 2403 struct addrinfo hints, *res0, *res; local 2533 struct addrinfo hints, *res, *res0; local [all...] |
/freebsd-current/usr.sbin/iscsid/ |
H A D | iscsid.c | 151 struct addrinfo hints; local 204 memset(&hints, 0, sizeof(hints)); 205 hints.ai_family = PF_UNSPEC; 206 hints.ai_socktype = SOCK_STREAM; 207 hints.ai_flags = AI_ADDRCONFIG | AI_NUMERICSERV; 209 hints.ai_flags |= AI_PASSIVE; 211 error = getaddrinfo(addr, port, &hints, ai);
|
/freebsd-current/sbin/umount/ |
H A D | umount.c | 91 struct addrinfo hints; local 150 memset(&hints, 0, sizeof hints); 151 error = getaddrinfo(nfshost, NULL, &hints, &nfshost_ai); 339 struct addrinfo *ai, hints; local 352 memset(&hints, 0, sizeof hints); 369 getaddrinfo(hostp, NULL, &hints, &ai);
|
/freebsd-current/contrib/netcat/ |
H A D | netcat.c | 161 struct addrinfo hints; local 403 memset(&hints, 0, sizeof(struct addrinfo)); 404 hints.ai_family = family; 405 hints.ai_socktype = uflag ? SOCK_DGRAM : SOCK_STREAM; 406 hints.ai_protocol = uflag ? IPPROTO_UDP : 409 hints.ai_flags |= AI_NUMERICHOST; 457 s = local_listen(host, uport, hints); 543 s = socks_connect(host, portlist[i], hints, 547 s = remote_connect(host, portlist[i], hints); 684 remote_connect(const char *host, const char *port, struct addrinfo hints) argument 782 local_listen(char *host, char *port, struct addrinfo hints) argument [all...] |
/freebsd-current/share/man/man5/ |
H A D | Makefile | 12 device.hints.5 \
|
/freebsd-current/tools/regression/gaithrstress/ |
H A D | gaithrstress.c | 54 static const struct addrinfo *hints, hintipv4only = { .ai_family = AF_INET }; variable in typeref:struct:addrinfo 124 error = getaddrinfo(hostname, NULL, hints, &res); 200 hints = &hintipv4only;
|
/freebsd-current/etc/ |
H A D | Makefile | 95 .if exists(${SRCTOP}/sys/${MACHINE}/conf/GENERIC.hints) 98 ${SRCTOP}/sys/${MACHINE}/conf/GENERIC.hints \ 99 ${DESTDIR}/boot/device.hints
|
/freebsd-current/lib/libfetch/ |
H A D | common.c | 312 struct addrinfo hints, *res; local 362 memset(&hints, 0, sizeof(hints)); 363 hints.ai_family = af; 364 hints.ai_socktype = SOCK_STREAM; 365 hints.ai_flags = AI_ADDRCONFIG; 366 if ((err = getaddrinfo(host, service, &hints, &res)) != 0) { 863 struct addrinfo hints, *res; local 869 memset(&hints, 0, sizeof(hints)); [all...] |
/freebsd-current/lib/libc/tests/nss/ |
H A D | getaddrinfo_test.c | 51 static struct addrinfo hints; variable in typeref:struct:addrinfo 387 rv = getaddrinfo(line, NULL, &hints, &result); 423 memset(&hints, 0, sizeof(struct addrinfo)); 424 hints.ai_family = ai_family; 425 hints.ai_flags = AI_CANONNAME;
|
/freebsd-current/lib/libpam/modules/pam_unix/ |
H A D | pam_unix.c | 164 struct addrinfo hints, *res; local 248 memset(&hints, 0, sizeof(hints)); 249 hints.ai_family = AF_UNSPEC; 250 if (getaddrinfo(rhost, NULL, &hints, &res) == 0) {
|
/freebsd-current/contrib/tnftp/src/ |
H A D | main.c | 434 struct addrinfo hints; local 437 memset(&hints, 0, sizeof(hints)); 438 hints.ai_family = family; 439 hints.ai_socktype = SOCK_STREAM; 440 hints.ai_flags = AI_PASSIVE; 441 error = getaddrinfo(src_addr, NULL, &hints, &bindai);
|
/freebsd-current/usr.bin/w/ |
H A D | w.c | 201 struct addrinfo hints, *res; local 280 memset(&hints, 0, sizeof(hints)); 281 hints.ai_flags = AI_PASSIVE; 282 hints.ai_family = AF_UNSPEC; 283 hints.ai_socktype = SOCK_STREAM; 284 if (getaddrinfo(p, NULL, &hints, &res) == 0) {
|
/freebsd-current/lib/libc/rpc/ |
H A D | clnt_bcast.c | 126 struct addrinfo hints, *res; local 131 memset(&hints, 0, sizeof hints); 133 hints.ai_family = af; 134 hints.ai_protocol = proto; 135 hints.ai_socktype = socktype; 137 if (getaddrinfo(NULL, "sunrpc", &hints, &res) != 0) {
|
/freebsd-current/crypto/openssh/ |
H A D | ssh.c | 257 struct addrinfo hints, *res; local 268 memset(&hints, 0, sizeof(hints)); 269 hints.ai_family = options.address_family == -1 ? 271 hints.ai_socktype = SOCK_STREAM; 273 hints.ai_flags = AI_CANONNAME; 274 if ((gaierr = getaddrinfo(name, strport, &hints, &res)) != 0) { 308 struct addrinfo hints, *res; local 314 memset(&hints, 0, sizeof(hints)); 339 struct addrinfo hints, *res; local 1443 struct addrinfo hints; local [all...] |
/freebsd-current/contrib/ntp/ntpd/ |
H A D | ntp_config.c | 2640 struct addrinfo hints; local 2929 ZERO(hints); 2930 hints.ai_protocol = IPPROTO_UDP; 2931 hints.ai_socktype = SOCK_DGRAM; 2932 hints.ai_family = my_node->addr->type; 2934 "ntp", &hints, 3761 struct addrinfo hints; local 3829 ZERO(hints); 3830 hints.ai_protocol = IPPROTO_UDP; 3831 hints 3883 trap_name_resolved( int rescode, int gai_errno, void * context, const char * name, const char * service, const struct addrinfo * hints, const struct addrinfo * res ) argument 4405 struct addrinfo hints; local 4562 peer_name_resolved( int rescode, int gai_errno, void * context, const char * name, const char * service, const struct addrinfo * hints, const struct addrinfo * res ) argument 4674 struct addrinfo hints; local 4752 unpeer_name_resolved( int rescode, int gai_errno, void * context, const char * name, const char * service, const struct addrinfo * hints, const struct addrinfo * res ) argument 5054 struct addrinfo hints; local [all...] |
/freebsd-current/usr.sbin/traceroute6/ |
H A D | traceroute6.c | 353 struct addrinfo hints, *res; local 623 memset(&hints, 0, sizeof(hints)); 624 hints.ai_family = PF_INET6; 625 hints.ai_socktype = SOCK_RAW; 626 hints.ai_protocol = IPPROTO_ICMPV6; 627 hints.ai_flags = AI_CANONNAME; 629 error = cap_getaddrinfo(capdns, *argv, NULL, &hints, &res); 821 memset(&hints, 0, sizeof(hints)); [all...] |
/freebsd-current/lib/libcasper/services/cap_net/tests/ |
H A D | net_test.c | 190 struct addrinfo hints, *capres, *origres, *res0, *res1; local 194 memset(&hints, 0, sizeof(hints)); 195 hints.ai_family = family; 196 hints.ai_socktype = SOCK_STREAM; 198 capret = cap_getaddrinfo(chan, domain, servname, &hints, &capres); 202 sysret = getaddrinfo(domain, servname, &hints, &origres); 375 struct addrinfo hints, *capres; local 379 memset(&hints, 0, sizeof(hints)); 1238 struct addrinfo hints, *capres, *res; local [all...] |
/freebsd-current/crypto/heimdal/appl/telnet/telnet/ |
H A D | commands.c | 1580 struct addrinfo hints, *ai, *a; 1582 memset (&hints, 0, sizeof(hints)); 1583 hints.ai_flags = AI_CANONNAME; 1585 error = getaddrinfo (hbuf, NULL, &hints, &ai); 2165 struct addrinfo *ai, *a, hints; 2169 memset (&hints, 0, sizeof(hints)); 2170 hints.ai_socktype = SOCK_STREAM; 2171 hints 1572 struct addrinfo hints, *ai, *a; local 2157 struct addrinfo *ai, *a, hints; local 2516 struct addrinfo hints, *res; local [all...] |
/freebsd-current/contrib/ntp/ntpdate/ |
H A D | ntpdate.c | 1353 /* Address infos structure to store hints for getaddrinfo */ 1354 struct addrinfo hints; local 1364 ZERO(hints); 1365 hints.ai_family = ai_fam_templ; 1366 hints.ai_socktype = SOCK_DGRAM; 1373 error = getaddrinfo(serv, service, &hints, &addrResult); 1376 error = getaddrinfo(serv, service, &hints, &addrResult); 1688 struct addrinfo hints; local 1707 * Init hints addrinfo structure 1709 ZERO(hints); [all...] |
/freebsd-current/crypto/heimdal/appl/push/ |
H A D | push.c | 98 struct addrinfo hints; local 103 memset (&hints, 0, sizeof(hints)); 104 hints.ai_socktype = SOCK_STREAM; 105 hints.ai_protocol = IPPROTO_TCP; 109 error = getaddrinfo (hostname, portstr, &hints, &ai);
|