diff options
author | Reyk Floeter <reyk@cvs.openbsd.org> | 2007-09-05 08:48:43 +0000 |
---|---|---|
committer | Reyk Floeter <reyk@cvs.openbsd.org> | 2007-09-05 08:48:43 +0000 |
commit | 1074ccbebd18c34270e1184e07b0bd2173585f78 (patch) | |
tree | 4e1dd9bdf76b0296cd3f1b85b41014e259405ed9 /usr.sbin/relayd/parse.y | |
parent | b774198ec751ffa1f4a79ba09b955577f3da58b0 (diff) |
store relay sessions in SPLAY trees instead of TAILQ lists. this will
be used for faster lookups of sessions based on different criteria.
ok pyr@
Diffstat (limited to 'usr.sbin/relayd/parse.y')
-rw-r--r-- | usr.sbin/relayd/parse.y | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/relayd/parse.y b/usr.sbin/relayd/parse.y index 0e7d448fd63..1c7d83d8d0b 100644 --- a/usr.sbin/relayd/parse.y +++ b/usr.sbin/relayd/parse.y @@ -1,4 +1,4 @@ -/* $OpenBSD: parse.y,v 1.51 2007/09/04 14:15:05 pyr Exp $ */ +/* $OpenBSD: parse.y,v 1.52 2007/09/05 08:48:42 reyk Exp $ */ /* * Copyright (c) 2006 Pierre-Yves Ritschard <pyr@spootnik.org> @@ -906,7 +906,7 @@ relay : RELAY STRING { rlay->conf.proto = conf->proto_default.id; } conf->relaycount++; - TAILQ_INIT(&rlay->sessions); + SPLAY_INIT(&rlay->sessions); TAILQ_INSERT_HEAD(&conf->relays, rlay, entry); } ; |