Revision 4847a894 proto/bgp/bgp.c

View differences:

proto/bgp/bgp.c
485 485
  p->local_id = cf->c.global->router_id;
486 486
  p->next_hop = cf->multihop ? cf->multihop_via : cf->remote_ip;
487 487
  p->neigh = neigh_find(&p->p, &p->next_hop, NEF_STICKY);
488

  
489
  if (cf->rr_client)
490
    {
491
      p->rr_cluster_id = cf->rr_cluster_id ? cf->rr_cluster_id : p->local_id;
492
      p->rr_client = cf->rr_client;
493
    }
494

  
488 495
  if (!p->neigh)
489 496
    {
490 497
      log(L_ERR "%s: Invalid next hop %I", p->p.name, p->next_hop);
......
633 640
    cf_error("Local AS number out of range");
634 641
  if (!bgp_as4_support && (c->remote_as > 0xFFFF))
635 642
    cf_error("Neighbor AS number out of range");
643
  if ((c->local_as != c->remote_as) && (c->rr_client))
644
    cf_error("Only internal neighbor can be RR client");
636 645
}
637 646

  
638 647
static void

Also available in: Unified diff