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

« back to all changes in this revision

Viewing changes to fea/data_plane/ifconfig/ifconfig_vlan_get_linux.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
// -*- c-basic-offset: 4; tab-width: 8; indent-tabs-mode: t -*-
 
2
 
 
3
// Copyright (c) 2007-2008 International Computer Science Institute
 
4
//
 
5
// Permission is hereby granted, free of charge, to any person obtaining a
 
6
// copy of this software and associated documentation files (the "Software")
 
7
// to deal in the Software without restriction, subject to the conditions
 
8
// listed in the XORP LICENSE file. These conditions include: you must
 
9
// preserve this copyright notice, and you cannot mention the copyright
 
10
// holders in advertising related to the Software without their permission.
 
11
// The Software is provided WITHOUT ANY WARRANTY, EXPRESS OR IMPLIED. This
 
12
// notice is a summary of the XORP LICENSE file; the license in that file is
 
13
// legally binding.
 
14
 
 
15
// $XORP: xorp/fea/data_plane/ifconfig/ifconfig_vlan_get_linux.hh,v 1.3 2008/01/04 03:16:12 pavlin Exp $
 
16
 
 
17
#ifndef __FEA_DATA_PLANE_IFCONFIG_IFCONFIG_VLAN_GET_LINUX_HH__
 
18
#define __FEA_DATA_PLANE_IFCONFIG_IFCONFIG_VLAN_GET_LINUX_HH__
 
19
 
 
20
#include "fea/ifconfig_vlan_get.hh"
 
21
 
 
22
 
 
23
class IfConfigVlanGetLinux : public IfConfigVlanGet {
 
24
public:
 
25
    /**
 
26
     * Constructor.
 
27
     *
 
28
     * @param fea_data_plane_manager the corresponding data plane manager
 
29
     * (@ref FeaDataPlaneManager).
 
30
     */
 
31
    IfConfigVlanGetLinux(FeaDataPlaneManager& fea_data_plane_manager);
 
32
 
 
33
    /**
 
34
     * Virtual destructor.
 
35
     */
 
36
    virtual ~IfConfigVlanGetLinux();
 
37
 
 
38
    /**
 
39
     * Start operation.
 
40
     * 
 
41
     * @param error_msg the error message (if error).
 
42
     * @return XORP_OK on success, otherwise XORP_ERROR.
 
43
     */
 
44
    virtual int start(string& error_msg);
 
45
    
 
46
    /**
 
47
     * Stop operation.
 
48
     * 
 
49
     * @param error_msg the error message (if error).
 
50
     * @return XORP_OK on success, otherwise XORP_ERROR.
 
51
     */
 
52
    virtual int stop(string& error_msg);
 
53
 
 
54
    /**
 
55
     * Pull the VLAN network interface information from the underlying system.
 
56
     * 
 
57
     * The VLAN information is added to the existing state in the iftree.
 
58
     *
 
59
     * @param iftree the IfTree storage to store the pulled information.
 
60
     * @return XORP_OK on success, otherwise XORP_ERROR.
 
61
     */
 
62
    virtual int pull_config(IfTree& iftree);
 
63
 
 
64
private:
 
65
    int read_config(IfTree& iftree);
 
66
 
 
67
    int _s4;
 
68
};
 
69
 
 
70
#endif // __FEA_DATA_PLANE_IFCONFIG_IFCONFIG_VLAN_GET_LINUX_HH__