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

« back to all changes in this revision

Viewing changes to libxorp/vif.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/libxorp/vif.hh,v 1.18 2007/05/04 19:57:34 pavlin Exp $
 
15
// $XORP: xorp/libxorp/vif.hh,v 1.21 2008/01/04 03:16:45 pavlin Exp $
16
16
 
17
17
#ifndef __LIBXORP_VIF_HH__
18
18
#define __LIBXORP_VIF_HH__
175
175
 * 
176
176
 * Vif holds information about a virtual interface.  A Vif may
177
177
 * represent a physical interface, or may represent more abstract
178
 
 * entities such as the Discard interface, or a VLAN on a physical
179
 
 * interface.
 
178
 * entities such as the Discard or Unreachable interface, or a VLAN
 
179
 * on a physical interface.
180
180
 */
181
181
class Vif {
182
182
public:
302
302
     * @return true if this vif is a discard interface, otherwise false.
303
303
     */
304
304
    bool        is_discard()            const   { return _is_discard; }
 
305
 
 
306
    /**
 
307
     * Test if this vif is an unreachable interface.
 
308
     * 
 
309
     * @return true if this vif is an unreachable interface, otherwise false.
 
310
     */
 
311
    bool        is_unreachable()        const   { return _is_unreachable; }
 
312
 
 
313
    /**
 
314
     * Test if this vif is a management interface.
 
315
     * 
 
316
     * @return true if this vif is a management interface, otherwise false.
 
317
     */
 
318
    bool        is_management() const   { return _is_management; }
305
319
    
306
320
    /**
307
321
     * Test if this vif is multicast capable.
367
381
     * otherwise reset it.
368
382
     */
369
383
    void        set_discard(bool v)             { _is_discard = v; }
 
384
 
 
385
    /**
 
386
     * Set/reset the vif as an unreachable interface.
 
387
     * 
 
388
     * @param v if true, then set this vif as an unreachable interface,
 
389
     * otherwise reset it.
 
390
     */
 
391
    void        set_unreachable(bool v)         { _is_unreachable = v; }
 
392
 
 
393
    /**
 
394
     * Set/reset the vif as a management interface.
 
395
     * 
 
396
     * @param v if true, then set this vif as a management interface,
 
397
     * otherwise reset it.
 
398
     */
 
399
    void        set_management(bool v)          { _is_management = v; }
370
400
    
371
401
    /**
372
402
     * Set/reset the vif as multicast capable.
531
561
    bool        _is_p2p;                // Point-to-point interface
532
562
    bool        _is_loopback;           // Loopback interface
533
563
    bool        _is_discard;            // Discard interface
 
564
    bool        _is_unreachable;        // Unreachable interface
 
565
    bool        _is_management;         // Management interface
534
566
    bool        _is_multicast_capable;  // Multicast-capable interface
535
567
    bool        _is_broadcast_capable;  // Broadcast-capable interface
536
568
    bool        _is_underlying_vif_up;  // True if underlying vif is up