diff options
author | Reyk Floeter <reyk@cvs.openbsd.org> | 2007-09-07 08:20:25 +0000 |
---|---|---|
committer | Reyk Floeter <reyk@cvs.openbsd.org> | 2007-09-07 08:20:25 +0000 |
commit | 7d6452ec8d956a17399de68eba735e1ff8e3b888 (patch) | |
tree | 9267657dba4f16aa548452613f9faaa68cf340f5 /usr.sbin/relayd/relayd.h | |
parent | 6c6a99174bd611c2b66a1833a523dbd08564d814 (diff) |
add an interface to dump running relay sessions to the control socket
Diffstat (limited to 'usr.sbin/relayd/relayd.h')
-rw-r--r-- | usr.sbin/relayd/relayd.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/usr.sbin/relayd/relayd.h b/usr.sbin/relayd/relayd.h index 9682ca5a55a..cd22d7bf4cd 100644 --- a/usr.sbin/relayd/relayd.h +++ b/usr.sbin/relayd/relayd.h @@ -1,4 +1,4 @@ -/* $OpenBSD: relayd.h,v 1.58 2007/09/07 07:59:18 reyk Exp $ */ +/* $OpenBSD: relayd.h,v 1.59 2007/09/07 08:20:24 reyk Exp $ */ /* * Copyright (c) 2006, 2007 Pierre-Yves Ritschard <pyr@spootnik.org> @@ -105,6 +105,7 @@ enum imsg_type { IMSG_CTL_TABLE, IMSG_CTL_HOST, IMSG_CTL_RELAY, + IMSG_CTL_SESSION, IMSG_CTL_TABLE_CHANGED, IMSG_CTL_PULL_RULESET, IMSG_CTL_PUSH_RULESET, @@ -389,6 +390,7 @@ TAILQ_HEAD(servicelist, service); struct session { objid_t id; + objid_t relayid; struct ctl_relay_event in; struct ctl_relay_event out; u_int32_t outkey; @@ -669,6 +671,7 @@ int imsg_get_fd(struct imsgbuf *); pid_t pfe(struct hoststated *, int [2], int [2], int [RELAY_MAXPROC][2], int [2], int [RELAY_MAXPROC][2]); void show(struct ctl_conn *); +void show_sessions(struct ctl_conn *); int enable_service(struct ctl_conn *, struct ctl_id *); int enable_table(struct ctl_conn *, struct ctl_id *); int enable_host(struct ctl_conn *, struct ctl_id *); |