Lines Matching defs:gabn

290 	lwres_gabnrequest_t *gabn;
319 gabn = CTXMALLOC(sizeof(lwres_gabnrequest_t));
320 if (gabn == NULL)
323 gabn->flags = flags;
324 gabn->addrtypes = addrtypes;
325 gabn->name = name;
326 gabn->namelen = namelen;
328 *structp = gabn;
343 lwres_gabnresponse_t *gabn;
352 gabn = NULL;
366 gabn = CTXMALLOC(sizeof(lwres_gabnresponse_t));
367 if (gabn == NULL)
369 gabn->aliases = NULL;
370 gabn->aliaslen = NULL;
371 LWRES_LIST_INIT(gabn->addrs);
372 gabn->base = NULL;
374 gabn->flags = flags;
375 gabn->naliases = naliases;
376 gabn->naddrs = naddrs;
381 gabn->aliases = CTXMALLOC(sizeof(char *) * naliases);
382 if (gabn->aliases == NULL) {
387 gabn->aliaslen = CTXMALLOC(sizeof(lwres_uint16_t) * naliases);
388 if (gabn->aliaslen == NULL) {
407 ret = lwres_string_parse(b, &gabn->realname, &gabn->realnamelen);
414 for (x = 0; x < gabn->naliases; x++) {
415 ret = lwres_string_parse(b, &gabn->aliases[x],
416 &gabn->aliaslen[x]);
426 for (x = 0; x < gabn->naddrs; x++) {
439 gabn->addrs = addrlist;
441 *structp = gabn;
445 if (gabn != NULL) {
446 if (gabn->aliases != NULL)
447 CTXFREE(gabn->aliases, sizeof(char *) * naliases);
448 if (gabn->aliaslen != NULL)
449 CTXFREE(gabn->aliaslen,
457 CTXFREE(gabn, sizeof(lwres_gabnresponse_t));
467 lwres_gabnrequest_t *gabn;
472 gabn = *structp;
475 CTXFREE(gabn, sizeof(lwres_gabnrequest_t));
482 lwres_gabnresponse_t *gabn;
488 gabn = *structp;
491 if (gabn->naliases > 0) {
492 CTXFREE(gabn->aliases, sizeof(char *) * gabn->naliases);
493 CTXFREE(gabn->aliaslen,
494 sizeof(lwres_uint16_t) * gabn->naliases);
496 addr = LWRES_LIST_HEAD(gabn->addrs);
498 LWRES_LIST_UNLINK(gabn->addrs, addr, link);
500 addr = LWRES_LIST_HEAD(gabn->addrs);
502 if (gabn->base != NULL)
503 CTXFREE(gabn->base, gabn->baselen);
504 CTXFREE(gabn, sizeof(lwres_gabnresponse_t));