7 /* return list of ip addresses for a name */
9 ndbgetipaddr(Ndb *db, char *val)
12 Ndbtuple *it, *first, *last, *next;
15 /* already an IP address? */
17 if(strcmp(attr, "ip") == 0){
18 it = ndbnew("ip", val);
19 ndbsetmalloctag(it, getcallerpc(&db));
24 p = ndbgetvalue(db, &s, attr, val, "ip", &it);
29 /* remove the non-ip entries */
33 if(strcmp(it->attr, "ip") == 0){
47 ndbsetmalloctag(first, getcallerpc(&db));