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

« back to all changes in this revision

Viewing changes to rip/route_db.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/rip/route_db.hh,v 1.26 2007/05/23 12:12:49 pavlin Exp $
 
16
// $XORP: xorp/rip/route_db.hh,v 1.28 2008/01/04 03:17:32 pavlin Exp $
17
17
 
18
18
#ifndef __RIP_ROUTE_DB_HH__
19
19
#define __RIP_ROUTE_DB_HH__
104
104
     *
105
105
     * @param net the network route being updated.
106
106
     * @param nexthop the corresponding nexthop address.
 
107
     * @param ifname the corresponding interface name toward the destination.
 
108
     * @param vifname the corresponding vif name toward the destination.
107
109
     * @param cost the corresponding metric value as received from the
108
110
     *        route originator.
109
111
     * @param tag the corresponding route tag.
115
117
     */
116
118
    bool update_route(const Net&        net,
117
119
                      const Addr&       nexthop,
 
120
                      const string&     ifname,
 
121
                      const string&     vifname,
118
122
                      uint32_t          cost,
119
123
                      uint32_t          tag,
120
124
                      RouteOrigin*      origin,
129
133
     *
130
134
     * @param net network of the route being added.
131
135
     * @param nexthop the corresponding nexthop address.
 
136
     * @param ifname the corresponding interface name toward the destination.
 
137
     * @param vifname the corresponding vif name toward the destination.
132
138
     * @param cost the corresponding metric value.
133
139
     * @param the corresponding route tag.
134
140
     * @param origin the route originator [RIB in this case].
136
142
     */
137
143
    void add_rib_route(const Net&       net,
138
144
                       const Addr&      nexthop,
 
145
                       const string&    ifname,
 
146
                       const string&    vifname,
139
147
                       uint32_t         cost,
140
148
                       uint32_t         tag,
141
149
                       RouteOrigin*     origin,