/freebsd-9.3-release/contrib/ntp/ntpq/ |
H A D | ntpq.c | 611 struct addrinfo hints, *ai; local 647 ai = NULL; 649 a_info = getaddrinfo(hname, svc, &hints, &ai); 659 a_info = getaddrinfo(hname, svc, &hints, &ai); 665 a_info = getaddrinfo(hname, svc, &hints, &ai); 673 INSIST(ai != NULL); 675 octets = min(sizeof(addr), ai->ai_addrlen); 676 memcpy(&addr, ai->ai_addr, octets); 678 if (ai->ai_canonname == NULL) { 682 strlcpy(temphost, ai 1869 struct addrinfo hints, *ai = NULL; local [all...] |
/freebsd-9.3-release/contrib/ntp/ntpd/ |
H A D | refclock_gpsdjson.c | 1853 addrinfoT * ai; local 1860 ai = up->addr; 1861 up->addr = ai->ai_next; 1865 ai->ai_family, ai->ai_socktype, ai->ai_protocol); 1905 rc = connect(up->fdt, ai->ai_addr, ai->ai_addrlen);
|
H A D | ntp_proto.c | 4301 if (NULL == pool->ai) { 4331 rmtadr = (sockaddr_u *)(void *)pool->ai->ai_addr; 4332 pool->ai = pool->ai->ai_next; 4334 } while (p != NULL && pool->ai != NULL); 4433 pool->ai = pool->addrs;
|
/freebsd-9.3-release/contrib/ntp/libntp/ |
H A D | ntp_intres.c | 317 struct addrinfo * ai; local 364 ai = ai_res; 365 while (NULL != ai) { 367 if (ai->ai_canonname) 368 canons_octets += strlen(ai->ai_canonname) + 1; 369 ai = ai->ai_next; 406 ai = ai_res; 407 while (NULL != ai) { 408 memcpy(cp, ai, sizeo 484 struct addrinfo * ai; local [all...] |
H A D | ntp_rfc2553.c | 277 static int do_nodename (const char *nodename, struct addrinfo *ai, 286 struct addrinfo *ai = NULL; local 298 ai = calloc(sizeof(struct addrinfo), 1); 299 if (ai == 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; 368 rval = do_nodename(nodename, ai, hints); 370 freeaddrinfo(ai); 417 freeaddrinfo(struct addrinfo *ai) argument 464 do_nodename( const char *nodename, struct addrinfo *ai, const struct addrinfo *hints) argument [all...] |
H A D | socktohost.c | 35 struct addrinfo * ai; local 89 for (ai = alist; ai != NULL; ai = ai->ai_next) { 91 * Make a convenience sockaddr_u copy from ai->ai_addr 98 octets = min(sizeof(addr), ai->ai_addrlen); 99 memcpy(&addr, ai->ai_addr, octets); 105 if (ai != NULL) {
|
/freebsd-9.3-release/contrib/ntp/include/ |
H A D | ntp.h | 265 struct addrinfo *ai; /* position within addrs */ member in struct:peer
|
/freebsd-9.3-release/contrib/bind9/lib/dns/ |
H A D | resolver.c | 2469 dns_adbaddrinfo_t *ai; local 2515 for (ai = ISC_LIST_HEAD(find->list); 2516 ai != NULL; 2517 ai = ISC_LIST_NEXT(ai, publink)) { 2518 ai->flags |= flags; 2520 isc_sockaddr_setport(&ai->sockaddr, 2589 dns_adbaddrinfo_t *ai; local 2672 ai = NULL; 2674 sa, &ai, [all...] |
/freebsd-9.3-release/contrib/ntp/ntpdc/ |
H A D | ntpdc.c | 397 struct addrinfo hints, *ai = NULL; local 436 a_info = getaddrinfo(hname, service, &hints, &ai); 446 a_info = getaddrinfo(hname, service, &hints, &ai); 451 a_info = getaddrinfo(hname, service, &hints, &ai); 455 if (ai != NULL) 456 freeaddrinfo(ai); 461 * getaddrinfo() has returned without error so ai should not 464 INSIST(ai != NULL); 466 octets = min(sizeof(addr), ai->ai_addrlen); 467 memcpy(&addr, ai 1449 struct addrinfo hints, *ai = NULL; local [all...] |
/freebsd-9.3-release/crypto/openssl/ssl/ |
H A D | ssl_asn1.c | 298 ASN1_INTEGER ai, *aip; local 302 aip = &ai; 308 ai.data = NULL; 309 ai.length = 0; 311 if (ai.data != NULL) { 312 OPENSSL_free(ai.data); 313 ai.data = NULL; 314 ai.length = 0; 321 if (ai.data != NULL) { 322 OPENSSL_free(ai [all...] |
/freebsd-9.3-release/crypto/openssl/crypto/x509/ |
H A D | x509_cmp.c | 70 X509_CINF *ai, *bi; local 72 ai = a->cert_info; 74 i = M_ASN1_INTEGER_cmp(ai->serialNumber, bi->serialNumber); 77 return (X509_NAME_cmp(ai->issuer, bi->issuer));
|
/freebsd-9.3-release/crypto/openssl/crypto/asn1/ |
H A D | a_int.c | 411 ASN1_INTEGER *BN_to_ASN1_INTEGER(BIGNUM *bn, ASN1_INTEGER *ai) argument 416 if (ai == NULL) 419 ret = ai; 446 if (ret != ai) 451 BIGNUM *ASN1_INTEGER_to_BN(ASN1_INTEGER *ai, BIGNUM *bn) argument 455 if ((ret = BN_bin2bn(ai->data, ai->length, bn)) == NULL) 457 else if (ai->type == V_ASN1_NEG_INTEGER)
|
H A D | a_enum.c | 136 ASN1_ENUMERATED *BN_to_ASN1_ENUMERATED(BIGNUM *bn, ASN1_ENUMERATED *ai) argument 141 if (ai == NULL) 144 ret = ai; 167 if (ret != ai) 172 BIGNUM *ASN1_ENUMERATED_to_BN(ASN1_ENUMERATED *ai, BIGNUM *bn) argument 176 if ((ret = BN_bin2bn(ai->data, ai->length, bn)) == NULL) 178 else if (ai->type == V_ASN1_NEG_ENUMERATED)
|
H A D | asn1.h | 903 ASN1_INTEGER *BN_to_ASN1_INTEGER(BIGNUM *bn, ASN1_INTEGER *ai); 904 BIGNUM *ASN1_INTEGER_to_BN(ASN1_INTEGER *ai, BIGNUM *bn); 908 ASN1_ENUMERATED *BN_to_ASN1_ENUMERATED(BIGNUM *bn, ASN1_ENUMERATED *ai); 909 BIGNUM *ASN1_ENUMERATED_to_BN(ASN1_ENUMERATED *ai, BIGNUM *bn);
|
H A D | evp_asn1.c | 146 ASN1_INTEGER *ai = NULL; local 165 if ((ai = d2i_ASN1_INTEGER(NULL, &c.p, c.slen)) == NULL) 176 *num = ASN1_INTEGER_get(ai); 192 if (ai != NULL) 193 M_ASN1_INTEGER_free(ai);
|
/freebsd-9.3-release/crypto/openssl/apps/ |
H A D | apps.c | 1435 ASN1_INTEGER *ai = NULL; local 1437 ai = ASN1_INTEGER_new(); 1438 if (ai == NULL) 1452 if (ret == NULL || !rand_serial(ret, ai)) 1456 if (!a2i_ASN1_INTEGER(in, ai, buf, 1024)) { 1461 ret = ASN1_INTEGER_to_BN(ai, NULL); 1470 *retai = ai; 1471 ai = NULL; 1476 if (ai != NULL) 1477 ASN1_INTEGER_free(ai); 1487 ASN1_INTEGER *ai = NULL; local 1599 rand_serial(BIGNUM *b, ASN1_INTEGER *ai) argument [all...] |
H A D | apps.h | 328 int rand_serial(BIGNUM *b, ASN1_INTEGER *ai);
|
/freebsd-9.3-release/contrib/ntp/sntp/ |
H A D | main.c | 111 int check_kod(const struct addrinfo *ai); 447 const struct addrinfo * ai; local 473 for (ai = addr; ai != NULL; ai = ai->ai_next) { 475 if (check_kod(ai)) 478 switch (ai->ai_family) { 497 ai->ai_family); 512 octets = min(ai [all...] |
/freebsd-9.3-release/contrib/ntp/sntp/libevent/ |
H A D | bufferevent_sock.c | 437 bufferevent_connect_getaddrinfo_cb(int result, struct evutil_addrinfo *ai, argument 453 if (ai) 454 evutil_freeaddrinfo(ai); 460 r = bufferevent_socket_connect(bev, ai->ai_addr, (int)ai->ai_addrlen); 463 evutil_freeaddrinfo(ai);
|
H A D | evdns.c | 4303 struct evutil_addrinfo *ai) 4305 if (data->cname_result && ai) { 4306 ai->ai_canonname = data->cname_result; 4512 struct evutil_addrinfo *ai; local 4514 ai = evutil_new_addrinfo_(sa, socklen, &data->hints); 4515 if (!ai) { 4527 res = evutil_addrinfo_append_(res, ai); 4583 struct evutil_addrinfo *ai=NULL; local 4600 ai = evutil_addrinfo_append_(ai, ai_ne 4302 add_cname_to_reply(struct evdns_getaddrinfo_request *data, struct evutil_addrinfo *ai) argument [all...] |
H A D | evutil.c | 845 struct evutil_addrinfo *ai = first; local 846 if (!ai) 848 while (ai->ai_next) 849 ai = ai->ai_next; 850 ai->ai_next = append; 1143 struct evutil_addrinfo *res=NULL, *ai; local 1173 ai = evutil_new_addrinfo_(sa, socklen, hints); 1174 if (!ai) { 1178 res = evutil_addrinfo_append_(res, ai); 1241 struct evutil_addrinfo *ai=NULL, *ai2=NULL; local 1288 apply_numeric_port_hack(int port, struct evutil_addrinfo **ai) argument 1312 apply_socktype_protocol_hack(struct evutil_addrinfo *ai) argument 1527 evutil_freeaddrinfo(struct evutil_addrinfo *ai) argument 1567 struct evutil_addrinfo *ai=NULL; local [all...] |
H A D | http.c | 4151 bind_socket_ai(struct evutil_addrinfo *ai, int reuse) argument 4159 fd = evutil_socket_(ai ? ai->ai_family : AF_INET, 4173 if (ai != NULL) { 4174 r = bind(fd, ai->ai_addr, (ev_socklen_t)ai->ai_addrlen); 4191 struct evutil_addrinfo *ai = NULL; local 4204 if ((ai_result = evutil_getaddrinfo(address, strport, &hints, &ai)) 4214 return (ai);
|
/freebsd-9.3-release/contrib/ntp/sntp/libevent/test/ |
H A D | regress.h | 110 struct evutil_addrinfo *ai_find_by_family(struct evutil_addrinfo *ai, int f); 111 struct evutil_addrinfo *ai_find_by_protocol(struct evutil_addrinfo *ai, int p); 112 int test_ai_eq_(const struct evutil_addrinfo *ai, const char *sockaddr_port, 115 #define test_ai_eq(ai, str, s, p) do { \ 116 if (test_ai_eq_((ai), (str), (s), (p), __LINE__)<0) \
|
H A D | regress_dns.c | 1235 struct evutil_addrinfo hints, *ai = NULL; local 1241 "nonesuch.nowhere.example.com", "80", &hints, &ai); 1284 struct evutil_addrinfo *ai; member in struct:gai_outcome 1295 go->ai = res; 1349 tt_ptr_op(local_outcome.ai,!=,NULL); 1350 test_ai_eq(local_outcome.ai, "1.2.3.4:80", SOCK_STREAM, IPPROTO_TCP); 1351 evutil_freeaddrinfo(local_outcome.ai); 1352 local_outcome.ai = NULL; 1366 tt_ptr_op(local_outcome.ai,==,NULL); 1377 tt_assert(local_outcome.ai); [all...] |
H A D | regress_http.c | 157 struct evutil_addrinfo ai, *aitop; local 164 memset(&ai, 0, sizeof(ai)); 165 ai.ai_family = AF_INET; 166 ai.ai_socktype = SOCK_STREAM; 168 if (evutil_getaddrinfo(address, strport, &ai, &aitop) != 0) {
|