diff options
author | Henning Brauer <henning@cvs.openbsd.org> | 2004-12-23 17:26:52 +0000 |
---|---|---|
committer | Henning Brauer <henning@cvs.openbsd.org> | 2004-12-23 17:26:52 +0000 |
commit | ca9954d10d24735e439dc8235e9a466d66252396 (patch) | |
tree | 24264c478bb8cc0f713a8caec153ffd0876f1bdf /usr.sbin/bgpd/bgpd.h | |
parent | e47c1496219f0d6a6f27bc322e56b5a8a327f4b4 (diff) |
allow "bgpctl neighbor" to take the peer's descr as argument as well
as its address
so "bgpctl neighbor upstream1 clear" now works and you don't have to
remember IPs
claudio ok
Diffstat (limited to 'usr.sbin/bgpd/bgpd.h')
-rw-r--r-- | usr.sbin/bgpd/bgpd.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/usr.sbin/bgpd/bgpd.h b/usr.sbin/bgpd/bgpd.h index c88d4739102..41586b4128a 100644 --- a/usr.sbin/bgpd/bgpd.h +++ b/usr.sbin/bgpd/bgpd.h @@ -1,4 +1,4 @@ -/* $OpenBSD: bgpd.h,v 1.153 2004/12/23 15:39:22 henning Exp $ */ +/* $OpenBSD: bgpd.h,v 1.154 2004/12/23 17:26:51 henning Exp $ */ /* * Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org> @@ -409,6 +409,11 @@ struct ctl_show_nexthop { u_int8_t valid; }; +struct ctl_neighbor { + struct bgpd_addr addr; + char descr[PEER_DESCR_LEN]; +}; + #define F_RIB_ELIGIBLE 0x01 #define F_RIB_ACTIVE 0x02 #define F_RIB_INTERNAL 0x04 |