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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user