summaryrefslogtreecommitdiff
path: root/usr.sbin/relayd/relayd.h
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin/relayd/relayd.h')
-rw-r--r--usr.sbin/relayd/relayd.h34
1 files changed, 31 insertions, 3 deletions
diff --git a/usr.sbin/relayd/relayd.h b/usr.sbin/relayd/relayd.h
index f68b58457b9..0667258ae35 100644
--- a/usr.sbin/relayd/relayd.h
+++ b/usr.sbin/relayd/relayd.h
@@ -1,8 +1,8 @@
-/* $OpenBSD: relayd.h,v 1.156 2012/07/09 09:52:05 deraadt Exp $ */
+/* $OpenBSD: relayd.h,v 1.157 2012/09/20 12:30:20 reyk Exp $ */
/*
+ * Copyright (c) 2006 - 2012 Reyk Floeter <reyk@openbsd.org>
* Copyright (c) 2006, 2007 Pierre-Yves Ritschard <pyr@openbsd.org>
- * Copyright (c) 2006, 2007, 2008 Reyk Floeter <reyk@openbsd.org>
* Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org>
*
* Permission to use, copy, modify, and distribute this software for any
@@ -18,6 +18,9 @@
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
+#ifndef _RELAYD_H
+#define _RELAYD_H
+
#include <sys/tree.h>
#include <sys/param.h> /* MAXHOSTNAMELEN */
@@ -959,11 +962,34 @@ int relay_socket_af(struct sockaddr_storage *, in_port_t);
in_port_t
relay_socket_getport(struct sockaddr_storage *);
int relay_cmp_af(struct sockaddr_storage *,
- struct sockaddr_storage *);
+ struct sockaddr_storage *);
+void relay_write(struct bufferevent *, void *);
+void relay_read(struct bufferevent *, void *);
+void relay_error(struct bufferevent *, short, void *);
+int relay_lognode(struct rsession *,
+ struct protonode *, struct protonode *, char *, size_t);
+int relay_connect(struct rsession *);
+void relay_connected(int, short, void *);
+void relay_bindanyreq(struct rsession *, in_port_t, int);
+void relay_bindany(int, short, void *);
+void relay_dump(struct ctl_relay_event *, const void *, size_t);
+int relay_bufferevent_add(struct event *, int);
+int relay_bufferevent_print(struct ctl_relay_event *, char *);
+int relay_bufferevent_write_buffer(struct ctl_relay_event *,
+ struct evbuffer *);
+int relay_bufferevent_write_chunk(struct ctl_relay_event *,
+ struct evbuffer *, size_t);
+int relay_bufferevent_write(struct ctl_relay_event *,
+ void *, size_t);
RB_PROTOTYPE(proto_tree, protonode, se_nodes, relay_proto_cmp);
SPLAY_PROTOTYPE(session_tree, rsession, se_nodes, relay_session_cmp);
+/* relay_http.c */
+void relay_abort_http(struct rsession *, u_int, const char *,
+ u_int16_t);
+void relay_read_http(struct bufferevent *, void *);
+
/* relay_udp.c */
void relay_udp_privinit(struct relayd *, struct relay *);
void relay_udp_init(struct relay *);
@@ -1115,3 +1141,5 @@ int config_setprotonode(struct relayd *, enum privsep_procid,
int config_getprotonode(struct relayd *, struct imsg *);
int config_setrelay(struct relayd *env, struct relay *);
int config_getrelay(struct relayd *, struct imsg *);
+
+#endif /* _RELAYD_H */