Lines Matching defs:gabn

281 	lwres_gabnrequest_t *gabn;
310 gabn = CTXMALLOC(sizeof(lwres_gabnrequest_t));
311 if (gabn == NULL)
314 gabn->flags = flags;
315 gabn->addrtypes = addrtypes;
316 gabn->name = name;
317 gabn->namelen = namelen;
319 *structp = gabn;
334 lwres_gabnresponse_t *gabn;
343 gabn = NULL;
357 gabn = CTXMALLOC(sizeof(lwres_gabnresponse_t));
358 if (gabn == NULL)
360 gabn->aliases = NULL;
361 gabn->aliaslen = NULL;
362 LWRES_LIST_INIT(gabn->addrs);
363 gabn->base = NULL;
365 gabn->flags = flags;
366 gabn->naliases = naliases;
367 gabn->naddrs = naddrs;
372 gabn->aliases = CTXMALLOC(sizeof(char *) * naliases);
373 if (gabn->aliases == NULL) {
378 gabn->aliaslen = CTXMALLOC(sizeof(lwres_uint16_t) * naliases);
379 if (gabn->aliaslen == NULL) {
398 ret = lwres_string_parse(b, &gabn->realname, &gabn->realnamelen);
405 for (x = 0; x < gabn->naliases; x++) {
406 ret = lwres_string_parse(b, &gabn->aliases[x],
407 &gabn->aliaslen[x]);
417 for (x = 0; x < gabn->naddrs; x++) {
430 gabn->addrs = addrlist;
432 *structp = gabn;
436 if (gabn != NULL) {
437 if (gabn->aliases != NULL)
438 CTXFREE(gabn->aliases, sizeof(char *) * naliases);
439 if (gabn->aliaslen != NULL)
440 CTXFREE(gabn->aliaslen,
448 CTXFREE(gabn, sizeof(lwres_gabnresponse_t));
458 lwres_gabnrequest_t *gabn;
463 gabn = *structp;
466 CTXFREE(gabn, sizeof(lwres_gabnrequest_t));
473 lwres_gabnresponse_t *gabn;
479 gabn = *structp;
482 if (gabn->naliases > 0) {
483 CTXFREE(gabn->aliases, sizeof(char *) * gabn->naliases);
484 CTXFREE(gabn->aliaslen,
485 sizeof(lwres_uint16_t) * gabn->naliases);
487 addr = LWRES_LIST_HEAD(gabn->addrs);
489 LWRES_LIST_UNLINK(gabn->addrs, addr, link);
491 addr = LWRES_LIST_HEAD(gabn->addrs);
493 if (gabn->base != NULL)
494 CTXFREE(gabn->base, gabn->baselen);
495 CTXFREE(gabn, sizeof(lwres_gabnresponse_t));