diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-08-02 21:39:12 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-08-02 21:39:12 +0000 |
commit | be9ffd24301fedb5aadb8657fe46bc0d52fa88db (patch) | |
tree | 7b2226b3f6d2c4aa5c98c9731d05be10925f9cbf /include | |
parent | daf12f4d06f7815d01d3a8c3d6dfd0e0007a7ba6 (diff) |
Allocate request id's in sequence, which means we wont get a duplicate id until 65536 id's have been given out.
Much safer than rand()
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4659 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'include')
-rw-r--r-- | include/dns.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/dns.h b/include/dns.h index 9d5906d3b..834f401ae 100644 --- a/include/dns.h +++ b/include/dns.h @@ -164,6 +164,7 @@ class DNS : public Extensible requestlist requests; insp_inaddr myserver; static int MasterSocket; + int currid; Resolver* Classes[MAX_REQUEST_ID]; int MakePayload(const char* name, const QueryType rr, const unsigned short rr_class, unsigned char* payload); |