From ae64b77bf4c8892086dffe7f47515b2fd04d0f1d Mon Sep 17 00:00:00 2001 From: Claudio Jeker Date: Wed, 23 Aug 2006 08:13:05 +0000 Subject: 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@ --- usr.sbin/bgpd/bgpd.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'usr.sbin/bgpd/bgpd.h') 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 @@ -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; -- cgit v1.2.3