X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=src%2Fadns-internal.h;h=f47fc966c7f9677a9821c587098cdb527227c92c;hb=9d95094ce421414fade949831eeb9dd3090328a7;hp=e3a013254cbc875fb76b012ad5cc76ef76887027;hpb=80917fcce9e578aaf5ebb3b5146edeada875f206;p=adns.git diff --git a/src/adns-internal.h b/src/adns-internal.h index e3a0132..f47fc96 100644 --- a/src/adns-internal.h +++ b/src/adns-internal.h @@ -21,22 +21,24 @@ struct adns__query { unsigned long sentudp, senttcp; /* bitmaps indexed by server */ struct timeval timeout; void *context; + unsigned char *querymsg; + int querylen; char owner[1]; /* Possible states: - * Queue child answer nextserver sentudp senttcp - * input null null 0 all bits zero all bits zero - * timew null null any at least 1 bit set any - * childw set partial any any any - * output null set any any any + * Queue child id answer nextserver sentudp senttcp + * tosend null >=0 null any any any + * timew null >=0 null any at least 1 bit set any + * childw set >=0 partial any any any + * output null -1 set/null any any any */ }; struct adns__state { adns_initflags iflags; - struct { adns_query head, tail; } input, timew, childw, output; + struct { adns_query head, tail; } tosend, timew, childw, output; int nextid, udpsocket; int qbufavail, tcpbufavail, tcpbufused, tcpbufdone; - char *qbuf, *tcpbuf; + unsigned char *qbuf, *tcpbuf; int nservers; struct server { struct in_addr addr;