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

« back to all changes in this revision

Viewing changes to fea/fibconfig_entry_get.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
 
3
 
// Copyright (c) 2001-2007 International Computer Science Institute
 
3
// Copyright (c) 2001-2008 International Computer Science Institute
4
4
//
5
5
// Permission is hereby granted, free of charge, to any person obtaining a
6
6
// copy of this software and associated documentation files (the "Software")
12
12
// notice is a summary of the XORP LICENSE file; the license in that file is
13
13
// legally binding.
14
14
 
15
 
// $XORP: xorp/fea/fibconfig_entry_get.hh,v 1.11 2007/07/16 23:54:05 pavlin Exp $
 
15
// $XORP: xorp/fea/fibconfig_entry_get.hh,v 1.14 2008/01/04 03:15:44 pavlin Exp $
16
16
 
17
17
#ifndef __FEA_FIBCONFIG_ENTRY_GET_HH__
18
18
#define __FEA_FIBCONFIG_ENTRY_GET_HH__
30
30
     * Constructor.
31
31
     *
32
32
     * @param fea_data_plane_manager the corresponding data plane manager
33
 
     * (@see FeaDataPlaneManager).
 
33
     * (@ref FeaDataPlaneManager).
34
34
     */
35
35
    FibConfigEntryGet(FeaDataPlaneManager& fea_data_plane_manager)
36
36
        : _is_running(false),
85
85
     *
86
86
     * @param dst host address to resolve.
87
87
     * @param fte return-by-reference forwarding table entry.
88
 
     *
89
 
     * @return bool on success, otherwise false.
 
88
     * @return XORP_OK on success, otherwise XORP_ERROR.
90
89
     */
91
 
    virtual bool lookup_route_by_dest4(const IPv4& dst, Fte4& fte) = 0;
 
90
    virtual int lookup_route_by_dest4(const IPv4& dst, Fte4& fte) = 0;
92
91
 
93
92
    /**
94
93
     * Lookup route by network address.
95
94
     *
96
95
     * @param dst network address to resolve.
97
96
     * @param fte return-by-reference forwarding table entry.
98
 
     *
99
 
     * @return true on success, otherwise false.
 
97
     * @return XORP_OK on success, otherwise XORP_ERROR.
100
98
     */
101
 
    virtual bool lookup_route_by_network4(const IPv4Net& dst, Fte4& fte) = 0;
 
99
    virtual int lookup_route_by_network4(const IPv4Net& dst, Fte4& fte) = 0;
102
100
 
103
101
    /**
104
102
     * Lookup a route by destination address.
105
103
     *
106
104
     * @param dst host address to resolve.
107
105
     * @param fte return-by-reference forwarding table entry.
108
 
     *
109
 
     * @return true on success, otherwise false.
 
106
     * @return XORP_OK on success, otherwise XORP_ERROR.
110
107
     */
111
 
    virtual bool lookup_route_by_dest6(const IPv6& dst, Fte6& fte) = 0;
 
108
    virtual int lookup_route_by_dest6(const IPv6& dst, Fte6& fte) = 0;
112
109
 
113
110
    /**
114
111
     * Lookup route by network address.
115
112
     *
116
113
     * @param dst network address to resolve.
117
114
     * @param fte return-by-reference forwarding table entry.
118
 
     *
119
 
     * @return true on success, otherwise false.
 
115
     * @return XORP_OK on success, otherwise XORP_ERROR.
120
116
     */
121
 
    virtual bool lookup_route_by_network6(const IPv6Net& dst, Fte6& fte) = 0;
 
117
    virtual int lookup_route_by_network6(const IPv6Net& dst, Fte6& fte) = 0;
122
118
 
123
119
protected:
124
120
    // Misc other state