~ubuntu-branches/ubuntu/jaunty/xorp/jaunty

« back to all changes in this revision

Viewing changes to ospf/peer_manager.hh

  • Committer: Bazaar Package Importer
  • Author(s): Jose Calhariz, Javier Fernandez-Sanguino, Jose Calhariz
  • Date: 2008-01-23 01:24:37 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20080123012437-7l2u9r0k8e7op8st
Tags: 1.5~cvs.20080128-1
[ Javier Fernandez-Sanguino ]
* Update to latest CVS contents
* Modify debian/rules to prevent autobuilders from building 
  the binary-independent components: (Closes: #441121)
  - Create a new Build-Depends-Indep with all the TeX
  components used to build documentation
  - Since autobuilders call build, which in turns calls build-indep, hack
    the debian rules file so that the documentation is only built if ps2pdf,
    dvips and pslatex are available. 
* Modify the init.d script:
  - restart action: Do not attempt to stop xorp if not running
  - stop function: fix errors in the script
  - add a try-restart action
  - restructure the init.d script, move the restart code to a function
  - review the use of echo calls and exit values
* Use, as examples, the new boot files at rtrmgr/config/

[ Jose Calhariz ]
* Add depends on ncurses-dev, I don't know why xorp use tigetstr
  function from curses.  This way the depends field change less between
  build environments.
* Removed pushd and popd commands from Makefile and replaced with cd
  commands, was a bashism and FTBFS (closes: #453637)
* debian/control converted to utf-8 (closes: #454026) (closes: #453485)
* init.d/xorp now returns 0 if disabled.
* Added Vcs-Browser and Vcs-Svn fields pointing to the repository of the
  package.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
// -*- c-basic-offset: 4; tab-width: 8; indent-tabs-mode: t -*-
2
2
// vim:set sts=4 ts=8:
3
3
 
4
 
// Copyright (c) 2001-2007 International Computer Science Institute
 
4
// Copyright (c) 2001-2008 International Computer Science Institute
5
5
//
6
6
// Permission is hereby granted, free of charge, to any person obtaining a
7
7
// copy of this software and associated documentation files (the "Software")
13
13
// notice is a summary of the XORP LICENSE file; the license in that file is
14
14
// legally binding.
15
15
 
16
 
// $XORP: xorp/ospf/peer_manager.hh,v 1.92 2007/08/22 01:35:04 atanu Exp $
 
16
// $XORP: xorp/ospf/peer_manager.hh,v 1.97 2008/01/04 03:16:57 pavlin Exp $
17
17
 
18
18
#ifndef __OSPF_PEER_MANAGER_HH__
19
19
#define __OSPF_PEER_MANAGER_HH__
144
144
                                     string& interface, string& vif) const;
145
145
 
146
146
    /**
 
147
     * Is this interface/vif/address enabled?
 
148
     * This is a question asked of the FEA, has the interface/vif been
 
149
     * marked as up.
 
150
     *
 
151
     * @return true if it is.
 
152
     */
 
153
    bool enabled(const string& interface, const string& vif, A address);
 
154
 
 
155
    /**
147
156
     * Create a peer.
148
157
     * @param interface
149
158
     * @param vif
265
274
        throw(BadPeer);
266
275
 
267
276
    /**
 
277
     * Drop all adjacencies and hence clear database.
 
278
     */
 
279
    bool clear_database();
 
280
 
 
281
    /**
268
282
     * Queue an LSA for transmission.
269
283
     *
270
284
     * @param peerid to queue the LSA on.
703
717
                          RouteEntry<A>& rt);
704
718
 
705
719
    /**
 
720
     * A route has been replaced in the routing table. If a generated
 
721
     * Summary-LSA exists it will need to have its metric or nexthop
 
722
     * modified.
 
723
     *
 
724
     * @param area that the route was introduced by.
 
725
     */
 
726
    void summary_replace(OspfTypes::AreaID area, IPNet<A> net,
 
727
                         RouteEntry<A>& rt,
 
728
                         RouteEntry<A>& previous_rt,
 
729
                         OspfTypes::AreaID previous_area);
 
730
 
 
731
    /**
706
732
     * Send all the summary information to specified area.  New areas
707
733
     * or stub areas that change from do not advertise can use this
708
734
     * hook to force all routes to be sent to the specified area.
761
787
    bool external_withdraw(OspfTypes::AreaID area, Lsa::LsaRef lsar);
762
788
 
763
789
    /**
764
 
     * Withdraw a previously createed and announced AS-External-LSA
 
790
     * Withdraw a previously created and announced AS-External-LSA
765
791
     * from all areas.
766
792
     */
767
793
    bool external_withdraw(const IPNet<A>& net);
784
810
    void external_push_routes();
785
811
 
786
812
    /**
 
813
     * Examine self originated AS-external-LSAs that may need to be
 
814
     * suppressed because another router's AS-external-LSA takes
 
815
     * precedence.
 
816
     */
 
817
    void external_suppress_lsas(OspfTypes::AreaID area);
 
818
 
 
819
    /**
787
820
     * Recompute routing calculation all areas BACKBONE first.
788
821
     */
789
822
    void routing_recompute_all_areas();