Revision bf47fe4b proto/bgp/bgp.c

View differences:

proto/bgp/bgp.c
676 676
    }
677 677
}
678 678

  
679
static int
680
bgp_reload_routes(struct proto *P)
681
{
682
  struct bgp_proto *p = (struct bgp_proto *) P;
683
  if (!p->conn || !p->conn->peer_refresh_support)
684
    return 0;
685

  
686
  bgp_schedule_packet(p->conn, PKT_ROUTE_REFRESH);
687
  return 1;
688
}
689

  
679 690
static void
680 691
bgp_start_locked(struct object_lock *lock)
681 692
{
......
792 803
  P->rte_better = bgp_rte_better;
793 804
  P->import_control = bgp_import_control;
794 805
  P->neigh_notify = bgp_neigh_notify;
806
  P->reload_routes = bgp_reload_routes;
795 807
  p->cf = c;
796 808
  p->local_as = c->local_as;
797 809
  p->remote_as = c->remote_as;

Also available in: Unified diff