summaryrefslogtreecommitdiff
path: root/usr.sbin/bgpd/bgpd.h
diff options
context:
space:
mode:
authorClaudio Jeker <claudio@cvs.openbsd.org>2006-08-23 08:13:05 +0000
committerClaudio Jeker <claudio@cvs.openbsd.org>2006-08-23 08:13:05 +0000
commitae64b77bf4c8892086dffe7f47515b2fd04d0f1d (patch)
tree9f37556320791fc746d0db017d23a0e8de183b74 /usr.sbin/bgpd/bgpd.h
parentce7a8ba8c04f6be11323324c248d6e8299d590fc (diff)
Extend show rib interface code so that it is possible to show the adj-rib-in
and adj-rib-out. Additionally it is now possible to limit the output to a specified peer. OK henning@
Diffstat (limited to 'usr.sbin/bgpd/bgpd.h')
-rw-r--r--usr.sbin/bgpd/bgpd.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/usr.sbin/bgpd/bgpd.h b/usr.sbin/bgpd/bgpd.h
index f3d83ce7db7..38d719cf7d8 100644
--- a/usr.sbin/bgpd/bgpd.h
+++ b/usr.sbin/bgpd/bgpd.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: bgpd.h,v 1.205 2006/08/04 12:01:48 henning Exp $ */
+/* $OpenBSD: bgpd.h,v 1.206 2006/08/23 08:13:04 claudio Exp $ */
/*
* Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org>
@@ -80,6 +80,8 @@
#define F_BLACKHOLE 0x0100
#define F_LONGER 0x0200
#define F_CTL_DETAIL 0x1000 /* only used by bgpctl */
+#define F_CTL_ADJ_IN 0x2000
+#define F_CTL_ADJ_OUT 0x4000
enum {
PROC_MAIN,
@@ -518,8 +520,10 @@ struct filter_as {
};
struct ctl_show_rib_request {
+ struct ctl_neighbor neighbor;
struct bgpd_addr prefix;
struct filter_as as;
+ u_int32_t peerid;
pid_t pid;
u_int16_t flags;
sa_family_t af;