diff options
| author | 2004-06-22 03:44:26 +0000 | |
|---|---|---|
| committer | 2004-06-22 03:44:26 +0000 | |
| commit | d53c37b98c97dce6cd05dbde3336de1fe1c984c5 (patch) | |
| tree | c98f4a0c122eb47792edd10f16cf649a9a1a3be1 | |
| parent | In draft-ietf-ipsec-nat-t-ike-01,02,03, NAT-D is payload 130. Rewrite a bit (diff) | |
| download | wireguard-openbsd-d53c37b98c97dce6cd05dbde3336de1fe1c984c5.tar.xz wireguard-openbsd-d53c37b98c97dce6cd05dbde3336de1fe1c984c5.zip | |
Templates with unknown AS where always configured as ebgp peers even if
they were ibgp ones. OK henning@
| -rw-r--r-- | usr.sbin/bgpd/session.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/usr.sbin/bgpd/session.c b/usr.sbin/bgpd/session.c index f2f334107dd..544066d5f37 100644 --- a/usr.sbin/bgpd/session.c +++ b/usr.sbin/bgpd/session.c @@ -1,4 +1,4 @@ -/* $OpenBSD: session.c,v 1.177 2004/06/22 03:17:01 henning Exp $ */ +/* $OpenBSD: session.c,v 1.178 2004/06/22 03:44:26 claudio Exp $ */ /* * Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org> @@ -1617,8 +1617,10 @@ parse_open(struct peer *peer) p += sizeof(as); /* if remote-as is zero and it's a cloned neighbor, accept any */ - if (peer->conf.cloned && !peer->conf.remote_as) + if (peer->conf.cloned && !peer->conf.remote_as) { peer->conf.remote_as = ntohs(as); + peer->conf.ebgp = (peer->conf.remote_as != conf->as); + } if (peer->conf.remote_as != ntohs(as)) { log_peer_warnx(&peer->conf, "peer sent wrong AS %u", ntohs(as)); |
