mirror of
https://github.com/3proxy/3proxy.git
synced 2026-11-22 23:59:41 +08:00
add some entropy to DNS hashtable
This commit is contained in:
1 parent
e37a7f48d7
commit
7fc43e3fbd
5 files changed
+53
-14
No files matched your search
+3
-1
@@ -583,19 +583,21 @@ struct child {
|
||||
|
||||
struct hashentry {
|
||||
unsigned char hash[sizeof(unsigned)*4];
|
||||
unsigned long value;
|
||||
unsigned value;
|
||||
time_t expires;
|
||||
struct hashentry *next;
|
||||
};
|
||||
|
||||
struct hashtable {
|
||||
unsigned hashsize;
|
||||
unsigned rnd[4];
|
||||
struct hashentry ** hashtable;
|
||||
struct hashentry * hashvalues;
|
||||
struct hashentry * hashempty;
|
||||
};
|
||||
|
||||
extern struct hashtable dns_table;
|
||||
extern struct hashtable dns6_table;
|
||||
|
||||
struct sockfuncs {
|
||||
#ifdef _WIN32
|
||||
|
||||
Reference in new issue
Block a user