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

« back to all changes in this revision

Viewing changes to fea/fibconfig_forwarding.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) 2007 International Computer Science Institute
 
3
// Copyright (c) 2007-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_forwarding.hh,v 1.1 2007/07/17 22:53:55 pavlin Exp $
 
15
// $XORP: xorp/fea/fibconfig_forwarding.hh,v 1.4 2008/01/04 03:15:44 pavlin Exp $
16
16
 
17
17
#ifndef __FEA_FIBCONFIG_FORWARDING_HH__
18
18
#define __FEA_FIBCONFIG_FORWARDING_HH__
28
28
     * Constructor.
29
29
     *
30
30
     * @param fea_data_plane_manager the corresponding data plane manager
31
 
     * (@see FeaDataPlaneManager).
 
31
     * (@ref FeaDataPlaneManager).
32
32
     */
33
33
    FibConfigForwarding(FeaDataPlaneManager& fea_data_plane_manager);
34
34
 
42
42
     *
43
43
     * @return the @ref FibConfig instance.
44
44
     */
45
 
    FibConfig&  fibconfig() { return _fibconfig; }
 
45
    FibConfig& fibconfig() { return _fibconfig; }
46
46
 
47
47
    /**
48
48
     * Get the @ref FeaDataPlaneManager instance.
52
52
    FeaDataPlaneManager& fea_data_plane_manager() { return _fea_data_plane_manager; }
53
53
 
54
54
    /**
 
55
     * Get the const @ref FeaDataPlaneManager instance.
 
56
     *
 
57
     * @return the const @ref FeaDataPlaneManager instance.
 
58
     */
 
59
    const FeaDataPlaneManager& fea_data_plane_manager() const { return _fea_data_plane_manager; }
 
60
 
 
61
    /**
55
62
     * Test whether this instance is running.
56
63
     *
57
64
     * @return true if the instance is running, otherwise false.
75
82
    virtual int stop(string& error_msg);
76
83
    
77
84
    /**
78
 
     * Return true if the underlying system supports IPv4.
79
 
     * 
80
 
     * @return true if the underlying system supports IPv4, otherwise false.
81
 
     */
82
 
    virtual bool have_ipv4() const { return (_have_ipv4); }
83
 
 
84
 
    /**
85
 
     * Return true if the underlying system supports IPv6.
86
 
     * 
87
 
     * @return true if the underlying system supports IPv6, otherwise false.
88
 
     */
89
 
    virtual bool have_ipv6() const { return (_have_ipv6); }
90
 
 
91
 
    /**
92
 
     * Test whether the underlying system supports IPv4.
93
 
     * 
94
 
     * @return true if the underlying system supports IPv4, otherwise false.
95
 
     */
96
 
    virtual bool test_have_ipv4() const = 0;
97
 
 
98
 
    /**
99
 
     * Test whether the underlying system supports IPv6.
100
 
     * 
101
 
     * @return true if the underlying system supports IPv6, otherwise false.
102
 
     */
103
 
    virtual bool test_have_ipv6() const = 0;
104
 
 
105
 
    /**
106
85
     * Test whether the IPv4 unicast forwarding engine is enabled or disabled
107
86
     * to forward packets.
108
87
     * 
184
163
    bool        _orig_unicast_forwarding_enabled6;
185
164
    bool        _orig_accept_rtadv_enabled6;
186
165
 
187
 
    // Cached state whether the system has IPv4 or IPv6 support
188
 
    bool        _have_ipv4;
189
 
    bool        _have_ipv6;
190
 
 
191
166
    bool        _first_start;   // True if started for first time
192
167
};
193
168