diff options
author | Claudio Jeker <claudio@cvs.openbsd.org> | 2004-02-01 19:46:06 +0000 |
---|---|---|
committer | Claudio Jeker <claudio@cvs.openbsd.org> | 2004-02-01 19:46:06 +0000 |
commit | 6b28dc4d8b23f52cf7773f469198e947187b6251 (patch) | |
tree | bbd458632bd2ceee9f346f0ede02cbdd49e37b23 /usr.sbin/bgpd/rde_decide.c | |
parent | 3fd41d6dc00ba0ff9f58cae245b2b0a876dc97b6 (diff) |
Set sane default announce types according to the peer type. For IBGP use
announce all and for EBGP use announce self. OK henning@
Diffstat (limited to 'usr.sbin/bgpd/rde_decide.c')
-rw-r--r-- | usr.sbin/bgpd/rde_decide.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.sbin/bgpd/rde_decide.c b/usr.sbin/bgpd/rde_decide.c index a52ba3eedd0..15116572788 100644 --- a/usr.sbin/bgpd/rde_decide.c +++ b/usr.sbin/bgpd/rde_decide.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rde_decide.c,v 1.25 2004/01/27 16:49:53 henning Exp $ */ +/* $OpenBSD: rde_decide.c,v 1.26 2004/02/01 19:46:05 claudio Exp $ */ /* * Copyright (c) 2003, 2004 Claudio Jeker <claudio@openbsd.org> @@ -437,6 +437,7 @@ up_generate_updates(struct rde_peer *peer, /* announce type handling */ switch (peer->conf.announce_type) { + case ANNOUNCE_UNDEF: case ANNOUNCE_NONE: return; case ANNOUNCE_ALL: @@ -471,6 +472,7 @@ up_generate_updates(struct rde_peer *peer, /* announce type handling */ switch (peer->conf.announce_type) { + case ANNOUNCE_UNDEF: case ANNOUNCE_NONE: return; case ANNOUNCE_ALL: |