Commit bb2b91d9 authored by Mark Andrews's avatar Mark Andrews
Browse files

add more comments

parent 8f02cfa4
...@@ -177,12 +177,12 @@ struct summary { ...@@ -177,12 +177,12 @@ struct summary {
struct summary *next; struct summary *next;
int linked; int linked;
} link; } link;
char zone[1024]; char zone[1024]; /* the zone's name */
char ns[1024]; char ns[1024]; /* the server's name */
struct sockaddr_storage storage; struct sockaddr_storage storage;/* server we are talking to */
int tests; /* number of outstanding tests */ int tests; /* number of outstanding tests */
int deferred; /* was the printing deferred */ int deferred; /* was the printing deferred */
int done; int done; /* we are done */
int type; /* recursive query lookup type */ int type; /* recursive query lookup type */
int nodataa; /* recursive query got nodata */ int nodataa; /* recursive query got nodata */
int nodataaaaa; /* recursive query got nodata */ int nodataaaaa; /* recursive query got nodata */
...@@ -205,22 +205,21 @@ struct workitem { ...@@ -205,22 +205,21 @@ struct workitem {
struct workitem *prev; struct workitem *prev;
int linked; int linked;
} link, clink, rlink, idlink; } link, clink, rlink, idlink;
unsigned short id; unsigned short id; /* the query id we are waiting for */
struct timeval when; struct timeval when; /* when we will timeout */
int type; int type; /* the query type being looked up */
int test; /* test number / server number */ int test; /* test number / server number */
int sends; /* number of times this UDP request int sends; /* number of times this UDP request
* has been sent */ * has been sent */
int buflen; int buflen; /* the size of the request to be sent */
int tcpfd; int tcpfd; /* the tcp file descriptor */
int outstanding; /* outstanding has been set */ int outstanding; /* outstanding has been set */
int havelen; /* readlen is tcp message length */ int havelen; /* readlen is tcp message length */
int readlen; int readlen; /* how much we need to read */
int read; int read; /* how much has been read so far */
unsigned char buf[512]; unsigned char buf[512]; /* the question we sent */
unsigned char tcpbuf[0x10000]; unsigned char tcpbuf[0x10000]; /* where to accumulate the tcp response */
char result[100]; struct summary *summary; /* where this test is summaried */
struct summary *summary;
}; };
/* /*
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment