/freebsd-current/contrib/unbound/iterator/ |
H A D | iter_hints.h | 2 * iterator/iter_hints.h - iterative resolver module stub and root hints. 40 * Keep track of stub and root hints, and read those from config. 52 * Iterator hints structure 71 * Iterator hints for a particular stub. 83 * Create hints 84 * @return new hints or NULL on error. 89 * Delete hints. 90 * @param hints: to delete. 92 void hints_delete(struct iter_hints* hints); 95 * Process hints confi [all...] |
H A D | iter_hints.c | 2 * iterator/iter_hints.c - iterative resolver module stub and root hints. 40 * Keep track of stub and root hints, and read those from config. 56 struct iter_hints* hints = (struct iter_hints*)calloc(1, local 58 if(!hints) 60 lock_rw_init(&hints->lock); 61 lock_protect(&hints->lock, &hints->tree, sizeof(hints->tree)); 62 return hints; 78 static void hints_del_tree(struct iter_hints* hints) argument 84 hints_delete(struct iter_hints* hints) argument 171 hints_insert(struct iter_hints* hints, uint16_t c, struct delegpt* dp, int noprime) argument 280 read_stubs(struct iter_hints* hints, struct config_file* cfg) argument 310 read_root_hints(struct iter_hints* hints, char* fname) argument 423 read_root_hints_list(struct iter_hints* hints, struct config_file* cfg) argument 442 hints_apply_cfg(struct iter_hints* hints, struct config_file* cfg) argument 482 hints_find(struct iter_hints* hints, uint8_t* qname, uint16_t qclass, int nolock) argument 499 hints_find_root(struct iter_hints* hints, uint16_t qclass, int nolock) argument 506 hints_lookup_stub(struct iter_hints* hints, uint8_t* qname, uint16_t qclass, struct delegpt* cache_dp, int nolock) argument 549 hints_next_root(struct iter_hints* hints, uint16_t* qclass, int nolock) argument 560 hints_get_mem(struct iter_hints* hints) argument 575 hints_add_stub(struct iter_hints* hints, uint16_t c, struct delegpt* dp, int noprime, int nolock) argument 596 hints_delete_stub(struct iter_hints* hints, uint16_t c, uint8_t* nm, int nolock) argument [all...] |
/freebsd-current/contrib/less/ |
H A D | scrsize.c | 55 XSizeHints hints; local 60 if (!XGetWMNormalHints(dpy, window, &hints, &longjunk)) 62 if (!(hints.flags & PResizeInc)) 64 if (hints.width_inc == 0 || hints.height_inc == 0) 66 if (!(hints.flags & (PBaseSize|PMinSize))) 68 if (hints.flags & PBaseSize) 70 win_attributes.width -= hints.base_width; 71 win_attributes.height -= hints.base_height; 74 win_attributes.width -= hints [all...] |
/freebsd-current/contrib/ntp/libntp/ |
H A D | socktohost.c | 33 struct addrinfo hints; local 58 ZERO(hints); 59 hints.ai_family = AF(sock); 60 hints.ai_protocol = IPPROTO_UDP; 61 hints.ai_socktype = SOCK_DGRAM; 62 hints.ai_flags = 0; 65 a_info = getaddrinfo(pbuf, svc, &hints, &alist); 71 hints.ai_flags = AI_CANONNAME; 73 hints.ai_flags |= AI_ADDRCONFIG; 75 a_info = getaddrinfo(pbuf, svc, &hints, [all...] |
H A D | is_ip_address.c | 34 struct addrinfo hints; local 72 ZERO(hints); 73 hints.ai_family = AF_INET6; 74 hints.ai_flags |= AI_NUMERICHOST; 75 if (getaddrinfo(tmpbuf, NULL, &hints, &result) == 0) {
|
H A D | ntp_rfc2553.c | 246 "Invalid value for hints", /* EAI_BADHINTS */ 278 const struct addrinfo *hints); 282 const struct addrinfo *hints, struct addrinfo **res) 303 * Copy default values from hints, if available 305 if (hints != NULL) { 306 ai->ai_flags = hints->ai_flags; 307 ai->ai_family = hints->ai_family; 308 ai->ai_socktype = hints->ai_socktype; 309 ai->ai_protocol = hints->ai_protocol; 311 family = hints 281 getaddrinfo(const char *nodename, const char *servname, const struct addrinfo *hints, struct addrinfo **res) argument 464 do_nodename( const char *nodename, struct addrinfo *ai, const struct addrinfo *hints) argument [all...] |
/freebsd-current/crypto/heimdal/lib/roken/ |
H A D | getaddrinfo_hostspec.c | 49 struct addrinfo hints; local 65 memset(&hints, 0, sizeof(hints)); 67 hints.ai_socktype = socktype; 71 hints.ai_socktype = hstp->socktype; 72 hints.ai_protocol = hstp->protocol; 92 return getaddrinfo (host, portstr, &hints, ai);
|
H A D | getaddrinfo.c | 39 * uses hints->ai_socktype and hints->ai_protocol 44 const struct addrinfo *hints, 54 if (hints != NULL && hints->ai_protocol != 0) { 55 struct protoent *protoent = getprotobynumber (hints->ai_protocol); 64 if (hints != NULL) 65 *socktype = hints->ai_socktype; 180 get_null (const struct addrinfo *hints, argument 193 if (hints ! 43 get_port_protocol_socktype(const char *servname, const struct addrinfo *hints, int *port, int *protocol, int *socktype) argument 273 get_number(const char *nodename, const struct addrinfo *hints, int port, int protocol, int socktype, struct addrinfo **res) argument 313 get_nodes(const char *nodename, const struct addrinfo *hints, int port, int protocol, int socktype, struct addrinfo **res) argument 371 getaddrinfo(const char *nodename, const char *servname, const struct addrinfo *hints, struct addrinfo **res) argument [all...] |
H A D | getaddrinfo-test.c | 69 struct addrinfo hints; local 76 memset (&hints, 0, sizeof(hints)); 77 hints.ai_flags = flags; 78 hints.ai_family = family; 79 hints.ai_socktype = socktype; 81 ret = getaddrinfo (nodename, servname, &hints, &res);
|
H A D | getnameinfo_verified.c | 55 struct addrinfo hints; local 72 memset (&hints, 0, sizeof(hints)); 73 hints.ai_socktype = SOCK_STREAM; 74 ret = getaddrinfo (host, serv, &hints, &ai);
|
/freebsd-current/crypto/openssh/openbsd-compat/ |
H A D | fake-rfc2553.c | 124 addrinfo *malloc_ai(int port, u_long addr, const struct addrinfo *hints) argument 143 if (hints->ai_socktype) 144 ai->ai_socktype = hints->ai_socktype; 148 if (hints->ai_protocol) 149 ai->ai_protocol = hints->ai_protocol; 156 const struct addrinfo *hints, struct addrinfo **res) 166 if (hints && hints->ai_family != AF_UNSPEC && 167 hints->ai_family != AF_INET) 181 if (hints 155 getaddrinfo(const char *hostname, const char *servname, const struct addrinfo *hints, struct addrinfo **res) argument [all...] |
/freebsd-current/usr.sbin/nfsd/ |
H A D | nfsd.c | 111 struct addrinfo hints); 147 struct addrinfo *ai_udp, *ai_tcp, *ai_udp6, *ai_tcp6, hints; local 317 memset(&hints, 0, sizeof hints); 318 hints.ai_flags = AI_PASSIVE; 319 hints.ai_family = AF_INET; 320 hints.ai_socktype = SOCK_DGRAM; 321 hints.ai_protocol = IPPROTO_UDP; 322 ecode = getaddrinfo(NULL, "nfs", &hints, &ai_udp); 341 memset(&hints, 853 setbindhost(struct addrinfo **ai, const char *bindhost, struct addrinfo hints) argument 1010 struct addrinfo *aip, hints; local 1174 struct addrinfo hints, *ai_tcp, *res; local [all...] |
/freebsd-current/contrib/ofed/librdmacm/ |
H A D | addrinfo.c | 145 const struct rdma_addrinfo *hints, 150 if (hints->ai_qp_type) { 151 rai->ai_qp_type = hints->ai_qp_type; 163 if (hints->ai_port_space) { 164 rai->ai_port_space = hints->ai_port_space; 181 if ((hints->ai_flags & RAI_FAMILY) && (hints->ai_family == AF_IB) && 182 (hints->ai_flags & RAI_NUMERICHOST)) { 198 if ((hints->ai_flags & RAI_FAMILY) && (hints 144 ucma_convert_to_rai(struct rdma_addrinfo *rai, const struct rdma_addrinfo *hints, const struct addrinfo *ai) argument 215 ucma_getaddrinfo(const char *node, const char *service, const struct rdma_addrinfo *hints, struct rdma_addrinfo *rai) argument 237 rdma_getaddrinfo(const char *node, const char *service, const struct rdma_addrinfo *hints, struct rdma_addrinfo **res) argument [all...] |
/freebsd-current/crypto/heimdal/lib/krb5/ |
H A D | expand_hostname.c | 71 struct addrinfo *ai, *a, hints; local 77 memset (&hints, 0, sizeof(hints)); 78 hints.ai_flags = AI_CANONNAME; 80 error = getaddrinfo (orig_hostname, NULL, &hints, &ai); 149 struct addrinfo *ai, *a, hints; local 157 memset (&hints, 0, sizeof(hints)); 158 hints.ai_flags = AI_CANONNAME; 160 error = getaddrinfo (orig_hostname, NULL, &hints, [all...] |
/freebsd-current/contrib/ldns/compat/ |
H A D | fake-rfc2553.c | 121 addrinfo *malloc_ai(int port, u_long addr, const struct addrinfo *hints) argument 140 if (hints->ai_socktype) 141 ai->ai_socktype = hints->ai_socktype; 145 if (hints->ai_protocol) 146 ai->ai_protocol = hints->ai_protocol; 153 const struct addrinfo *hints, struct addrinfo **res) 175 if (hints && hints->ai_flags & AI_PASSIVE) { 179 *res = malloc_ai(port, addr, hints); 186 *res = malloc_ai(port, htonl(0x7f000001), hints); 152 getaddrinfo(const char *hostname, const char *servname, const struct addrinfo *hints, struct addrinfo **res) argument [all...] |
/freebsd-current/contrib/unbound/compat/ |
H A D | fake-rfc2553.c | 119 addrinfo *malloc_ai(int port, u_long addr, const struct addrinfo *hints) argument 136 if (hints->ai_socktype) 137 ai->ai_socktype = hints->ai_socktype; 141 if (hints->ai_protocol) 142 ai->ai_protocol = hints->ai_protocol; 149 const struct addrinfo *hints, struct addrinfo **res) 171 if (hints && hints->ai_flags & AI_PASSIVE) { 175 *res = malloc_ai(port, addr, hints); 182 *res = malloc_ai(port, htonl(0x7f000001), hints); 148 getaddrinfo(const char *hostname, const char *servname, const struct addrinfo *hints, struct addrinfo **res) argument [all...] |
/freebsd-current/crypto/heimdal/lib/ipc/ |
H A D | ts-http.c | 77 struct addrinfo hints, *res, *res0; local 81 memset(&hints, 0, sizeof(hints)); 82 hints.ai_family = PF_UNSPEC; 83 hints.ai_socktype = SOCK_STREAM; 84 hints.ai_flags = AI_PASSIVE; 85 ret = getaddrinfo(NULL, "8080", &hints, &res0);
|
/freebsd-current/sbin/ipf/libipf/ |
H A D | gethost.c | 57 struct addrinfo hints, *res; local 60 bzero((char *)&hints, sizeof(hints)); 61 hints.ai_family = PF_INET6; 63 getaddrinfo(name, NULL, &hints, &res);
|
/freebsd-current/usr.sbin/lpr/common_source/ |
H A D | net.c | 89 struct addrinfo hints, *res, *ai; local 98 memset(&hints, 0, sizeof(hints)); 99 hints.ai_family = family; 100 hints.ai_socktype = SOCK_STREAM; 101 hints.ai_protocol = 0; 103 &hints, &res); 183 struct addrinfo hints, *local_res, *remote_res, *lr, *rr; local 201 memset(&hints, 0, sizeof(hints)); [all...] |
/freebsd-current/contrib/netbsd-tests/net/net/ |
H A D | t_udp.c | 19 struct addrinfo hints; local 25 memset(&hints, 0, sizeof(hints)); 26 hints.ai_family = family; 27 hints.ai_socktype = SOCK_DGRAM; 28 hints.ai_protocol = IPPROTO_UDP; 29 hints.ai_flags = 0; 31 e = getaddrinfo("localhost", "9999", &hints, &res);
|
/freebsd-current/contrib/ofed/librdmacm/examples/ |
H A D | rdma_xclient.c | 46 static struct rdma_addrinfo hints; variable in typeref:struct:rdma_addrinfo 66 if (hints.ai_qp_type == IBV_QPT_XRC_SEND) 83 ret = rdma_getaddrinfo(server, port, &hints, &res); 112 if (hints.ai_qp_type == IBV_QPT_XRC_SEND) 137 hints.ai_port_space = RDMA_PS_TCP; 138 hints.ai_qp_type = IBV_QPT_RC; 153 hints.ai_port_space = RDMA_PS_IB; 154 hints.ai_qp_type = IBV_QPT_XRC_SEND;
|
/freebsd-current/usr.bin/getaddrinfo/ |
H A D | getaddrinfo.c | 62 struct addrinfo hints = zero_addrinfo; local 70 hints.ai_family = AF_UNSPEC; 71 hints.ai_socktype = 0; 72 hints.ai_protocol = 0; 73 hints.ai_flags = 0; 78 hints.ai_flags |= AI_CANONNAME; 82 if (!parse_af(optarg, &hints.ai_family)) { 89 hints.ai_flags |= AI_NUMERICHOST; 93 hints.ai_flags |= AI_NUMERICSERV; 101 if (!parse_protocol(optarg, &hints [all...] |
/freebsd-current/contrib/ntp/include/ |
H A D | intreswork.h | 20 const struct addrinfo *hints,
|
/freebsd-current/lib/libc/net/ |
H A D | rcmdsh.c | 62 struct addrinfo hints, *res; local 82 memset(&hints, 0, sizeof(hints)); 83 hints.ai_flags = AI_CANONNAME; 84 hints.ai_family = PF_UNSPEC; 85 hints.ai_socktype = SOCK_STREAM; 88 error = getaddrinfo(*ahost, num, &hints, &res);
|
/freebsd-current/contrib/netbsd-tests/net/sys/ |
H A D | t_rfc6056.c | 56 struct addrinfo hints, *res; local 58 memset(&hints, 0, sizeof(hints)); 59 hints.ai_family = family; 60 hints.ai_socktype = SOCK_DGRAM; 75 error = getaddrinfo(hostname, service, &hints, &res);
|