From be9ffd24301fedb5aadb8657fe46bc0d52fa88db Mon Sep 17 00:00:00 2001 From: brain Date: Wed, 2 Aug 2006 21:39:12 +0000 Subject: 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 --- include/dns.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include') 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); -- cgit v1.2.3