From a92fe607173b52cf28256f00399953c623788c35 Mon Sep 17 00:00:00 2001 From: Ondrej Zajicek Date: Sat, 1 Nov 2008 12:55:43 +0100 Subject: Implementation of route server. --- proto/bgp/bgp.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'proto/bgp/bgp.c') diff --git a/proto/bgp/bgp.c b/proto/bgp/bgp.c index 0d580be..a34545b 100644 --- a/proto/bgp/bgp.c +++ b/proto/bgp/bgp.c @@ -492,6 +492,8 @@ bgp_start_locked(struct object_lock *lock) p->rr_client = cf->rr_client; } + p->rs_client = cf->rs_client; + if (!p->neigh) { log(L_ERR "%s: Invalid next hop %I", p->p.name, p->next_hop); @@ -644,6 +646,8 @@ bgp_check(struct bgp_config *c) cf_error("Neighbor AS number out of range"); if ((c->local_as != c->remote_as) && (c->rr_client)) cf_error("Only internal neighbor can be RR client"); + if ((c->local_as == c->remote_as) && (c->rs_client)) + cf_error("Only external neighbor can be RS client"); } static void -- cgit v1.2.3