1
0
mirror of https://gitlab.labs.nic.cz/labs/bird.git synced 2024-05-11 16:54:54 +00:00

Added proto->hash_key which contains randomly generated hash key used

for calculation of hash functions depending on proto.
This commit is contained in:
Martin Mares
2000-03-01 14:49:07 +00:00
parent 62ab789de5
commit 7293c5dd81
2 changed files with 3 additions and 1 deletions

View File

@@ -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;
}