/***** **** *** ** * * * * * * * * * ** *** **** *****\ logresolve 2.0 - http://www.net/~tomr/progs/logresolve/ lr-nsrec.h - configuration & global structures 2.0n1 Tom Rathborne - tomr@uunet.ca - http://www.net/~tomr/ \***** **** *** ** * * * * * * * * * ** *** **** *****/ #ifndef LR_NSREC_H #define LR_NSREC_H #include "logresolve.h" /* * struct nsrec - cached record of nameservice * * ipnum - IP number * hostname - hostname * status - value of h_errno from last lookup * lookuptime - when last looked up * usagecount - times this record has been used * * next - pointer to next record in linked list (for hash-table cache) */ struct nsrec { unsigned char ipnum[4]; char *hostname; int status; int tries; int lookuptime; int usagecount; struct nsrec *next; }; /* * nsrec_new - mallocs a new record */ struct nsrec *nsrec_new(); /* * nsrec_del - frees a record */ void nsrec_del(struct nsrec *record); #endif /*** end of lr-nsrec.h ***/