diff options
author | Reyk Floeter <reyk@cvs.openbsd.org> | 2008-05-08 02:27:59 +0000 |
---|---|---|
committer | Reyk Floeter <reyk@cvs.openbsd.org> | 2008-05-08 02:27:59 +0000 |
commit | 4704fc6bbd2a784c0b2d7c7dfc6908cf5d3037a6 (patch) | |
tree | 633fae97ec332f132b065def17fa6846d302d4f1 /usr.sbin/relayd/relayd.h | |
parent | e583009078bed3a510608f33a7e9b9239be7eb58 (diff) |
move the session keys used by dns in a protocol-specific private ptr.
Diffstat (limited to 'usr.sbin/relayd/relayd.h')
-rw-r--r-- | usr.sbin/relayd/relayd.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/usr.sbin/relayd/relayd.h b/usr.sbin/relayd/relayd.h index e6cd963a3bf..bfe368e4ec2 100644 --- a/usr.sbin/relayd/relayd.h +++ b/usr.sbin/relayd/relayd.h @@ -1,4 +1,4 @@ -/* $OpenBSD: relayd.h,v 1.101 2008/05/07 01:49:29 reyk Exp $ */ +/* $OpenBSD: relayd.h,v 1.102 2008/05/08 02:27:58 reyk Exp $ */ /* * Copyright (c) 2006, 2007 Pierre-Yves Ritschard <pyr@openbsd.org> @@ -421,11 +421,11 @@ TAILQ_HEAD(rdrlist, rdr); struct relay; struct session { objid_t se_id; - u_int32_t se_key; objid_t se_relayid; struct ctl_relay_event se_in; struct ctl_relay_event se_out; - u_int32_t se_outkey; + void *se_priv; + u_int32_t se_hashkey; struct event se_ev; struct timeval se_timeout; struct timeval se_tv_start; @@ -541,9 +541,9 @@ struct protocol { struct proto_tree response_tree; int (*cmp)(struct session *, struct session *); - int (*validate)(struct relay *, + void *(*validate)(struct relay *, struct sockaddr_storage *, - u_int8_t *, size_t, u_int32_t *); + u_int8_t *, size_t); int (*request)(struct session *); TAILQ_ENTRY(protocol) entry; |