summaryrefslogtreecommitdiff
path: root/nest/proto.c
diff options
context:
space:
mode:
authorMartin Mares <mj@ucw.cz>2000-03-01 14:49:07 +0000
committerMartin Mares <mj@ucw.cz>2000-03-01 14:49:07 +0000
commit7293c5dd8175aac4650cb48c68c7dd278a74371e (patch)
treefd299303a66bb21dc91d56f39d7791772259e8be /nest/proto.c
parent62ab789de5f5ace97a93fce551469f0229ba8c92 (diff)
Added proto->hash_key which contains randomly generated hash key used
for calculation of hash functions depending on proto.
Diffstat (limited to 'nest/proto.c')
-rw-r--r--nest/proto.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/nest/proto.c b/nest/proto.c
index da758665..68975add 100644
--- a/nest/proto.c
+++ b/nest/proto.c
@@ -89,6 +89,7 @@ proto_new(struct proto_config *c, unsigned size)
p->in_filter = c->in_filter;
p->out_filter = c->out_filter;
p->min_scope = SCOPE_SITE;
+ p->hash_key = random_u32();
c->proto = p;
return p;
}