diff options
author | Claudio Jeker <claudio@cvs.openbsd.org> | 2004-07-30 14:44:31 +0000 |
---|---|---|
committer | Claudio Jeker <claudio@cvs.openbsd.org> | 2004-07-30 14:44:31 +0000 |
commit | 6f31625bc9c9324e216ae595bf936070a14ed0ad (patch) | |
tree | c9ea2d93a187ad06df2e36ddb687f3d2a5e42fe1 /usr.sbin/bgpd/rde.c | |
parent | 306decf1e1aa0fee1e041fd60f3ddb4b1b3ec1ef (diff) |
Add new announce type "default-route" which will only announce the default
route to the specified neighbor. Idea and OK henning@
Diffstat (limited to 'usr.sbin/bgpd/rde.c')
-rw-r--r-- | usr.sbin/bgpd/rde.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/usr.sbin/bgpd/rde.c b/usr.sbin/bgpd/rde.c index 247bd52b400..54499d1ac62 100644 --- a/usr.sbin/bgpd/rde.c +++ b/usr.sbin/bgpd/rde.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rde.c,v 1.129 2004/07/29 17:05:13 claudio Exp $ */ +/* $OpenBSD: rde.c,v 1.130 2004/07/30 14:44:30 claudio Exp $ */ /* * Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org> @@ -1432,6 +1432,11 @@ peer_dump(u_int32_t id, u_int16_t afi, u_int8_t safi) if (afi == AFI_ALL || afi == AFI_IPv4) if (safi == SAFI_ALL || safi == SAFI_UNICAST || safi == SAFI_BOTH) { + if (peer->conf.announce_type == + ANNOUNCE_DEFAULT_ROUTE) { + up_generate_default(peer, AF_INET); + return; + } pt_dump(up_dump_upcall, peer, AF_INET); return; } |