[Dnsmasq-discuss] crec structure

dnsmasq dnsmasq dnsmasq2012 at gmail.com
Fri Apr 13 15:33:29 BST 2012


 Hello,

Can anyone explain to me the utility and the meaning of the  structure "
crec" in the source code(in cache.c file), is it a representation of the
buffer where cache entries are stored?

struct crec {

  struct crec *next, *prev, *hash_next;
  time_t ttd; /* time to die */
  int uid;
  union {
    struct all_addr addr;
    struct {
      struct crec *cache;
      int uid;
    } cname;
  } addr;
  unsigned short flags;
  union {
    char sname[SMALLDNAME];
    union bigname *bname;
    char *namep;
  } name;
};
thanks.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.thekelleys.org.uk/pipermail/dnsmasq-discuss/attachments/20120413/2201ebc7/attachment.html>


More information about the Dnsmasq-discuss mailing list