summaryrefslogtreecommitdiff
path: root/usr.sbin/bgpd/session.h
diff options
context:
space:
mode:
authorHenning Brauer <henning@cvs.openbsd.org>2006-01-24 10:03:45 +0000
committerHenning Brauer <henning@cvs.openbsd.org>2006-01-24 10:03:45 +0000
commit6bf83ade2a4168a5228b22830193d9ed67ef7f5d (patch)
treeb5cdecba6b979689e359ea17392418291e51908e /usr.sbin/bgpd/session.h
parent5cd3175274d02b20fea399bceaa0d520d67688b7 (diff)
introduce a second control socket, which is restricted to certain messages,
nameley the show ones. needed for looking glass style applications, monitoring etc. claudio ok
Diffstat (limited to 'usr.sbin/bgpd/session.h')
-rw-r--r--usr.sbin/bgpd/session.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/usr.sbin/bgpd/session.h b/usr.sbin/bgpd/session.h
index a310266573a..0322a0ffcb4 100644
--- a/usr.sbin/bgpd/session.h
+++ b/usr.sbin/bgpd/session.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: session.h,v 1.80 2006/01/03 22:19:59 claudio Exp $ */
+/* $OpenBSD: session.h,v 1.81 2006/01/24 10:03:44 henning Exp $ */
/*
* Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org>
@@ -128,6 +128,7 @@ struct bgpd_sysdep {
struct ctl_conn {
TAILQ_ENTRY(ctl_conn) entry;
struct imsgbuf ibuf;
+ int restricted;
};
TAILQ_HEAD(ctl_conns, ctl_conn) ctl_conns;
@@ -214,10 +215,11 @@ pid_t rde_main(struct bgpd_config *, struct peer *, struct network_head *,
struct filter_head *, struct mrt_head *, int[2], int[2], int[2]);
/* control.c */
-int control_listen(void);
-void control_shutdown(void);
+int control_init(int, char *);
+int control_listen(int);
+void control_shutdown(int);
int control_dispatch_msg(struct pollfd *, u_int *);
-int control_accept(int);
+int control_accept(int, int);
/* pfkey.c */
int pfkey_establish(struct peer *);