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

« back to all changes in this revision

Viewing changes to xrl/targets/fea_base.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
/*
2
 
 * Copyright (c) 2001-2007 International Computer Science Institute
 
2
 * Copyright (c) 2001-2008 International Computer Science Institute
3
3
 * See LICENSE file for licensing, conditions, and warranties on use.
4
4
 *
5
5
 * DO NOT EDIT THIS FILE - IT IS PROGRAMMATICALLY GENERATED
6
6
 *
7
7
 * Generated by 'tgt-gen'.
8
8
 *
9
 
 * $XORP: xorp/xrl/targets/fea_base.hh,v 1.82 2007/08/21 00:10:39 pavlin Exp $
 
9
 * $XORP: xorp/xrl/targets/fea_base.hh,v 1.89 2008/01/04 03:18:07 pavlin Exp $
10
10
 */
11
11
 
12
12
 
458
458
        // Output values,
459
459
        bool&   discard) = 0;
460
460
 
 
461
    virtual XrlCmdError ifmgr_0_1_get_configured_interface_unreachable(
 
462
        // Input values,
 
463
        const string&   ifname,
 
464
        // Output values,
 
465
        bool&   unreachable) = 0;
 
466
 
 
467
    virtual XrlCmdError ifmgr_0_1_get_configured_interface_management(
 
468
        // Input values,
 
469
        const string&   ifname,
 
470
        // Output values,
 
471
        bool&   management) = 0;
 
472
 
461
473
    virtual XrlCmdError ifmgr_0_1_get_configured_mac(
462
474
        // Input values,
463
475
        const string&   ifname,
552
564
     *  from the underlying system.
553
565
     *
554
566
     *  @param tid the transaction ID.
 
567
     *
 
568
     *  @param enable if true, then enable the implicit configuration,
 
569
     *  otherwise disable it.
555
570
     */
556
571
    virtual XrlCmdError ifmgr_0_1_configure_all_interfaces_from_system(
557
572
        // Input values,
558
 
        const uint32_t& tid) = 0;
 
573
        const uint32_t& tid,
 
574
        const bool&     enable) = 0;
559
575
 
560
576
    /**
561
577
     *  Pure-virtual function that needs to be implemented to:
566
582
     *  @param tid the transaction ID.
567
583
     *
568
584
     *  @param ifname the name of the interface to configure.
 
585
     *
 
586
     *  @param enable if true, then enable the implicit configuration,
 
587
     *  otherwise disable it.
569
588
     */
570
589
    virtual XrlCmdError ifmgr_0_1_configure_interface_from_system(
571
590
        // Input values,
572
591
        const uint32_t& tid,
573
 
        const string&   ifname) = 0;
 
592
        const string&   ifname,
 
593
        const bool&     enable) = 0;
574
594
 
575
595
    virtual XrlCmdError ifmgr_0_1_set_interface_enabled(
576
596
        // Input values,
584
604
        const string&   ifname,
585
605
        const bool&     discard) = 0;
586
606
 
 
607
    virtual XrlCmdError ifmgr_0_1_set_interface_unreachable(
 
608
        // Input values,
 
609
        const uint32_t& tid,
 
610
        const string&   ifname,
 
611
        const bool&     unreachable) = 0;
 
612
 
 
613
    virtual XrlCmdError ifmgr_0_1_set_interface_management(
 
614
        // Input values,
 
615
        const uint32_t& tid,
 
616
        const string&   ifname,
 
617
        const bool&     management) = 0;
 
618
 
587
619
    virtual XrlCmdError ifmgr_0_1_set_mac(
588
620
        // Input values,
589
621
        const uint32_t& tid,
609
641
    /**
610
642
     *  Pure-virtual function that needs to be implemented to:
611
643
     *
612
 
     *  Create a vif
 
644
     *  Create a vif.
613
645
     *
614
646
     *  @param ifname the name of the physical interface associated with the
615
647
     *  new vif.
636
668
        const string&   vif,
637
669
        const bool&     enabled) = 0;
638
670
 
 
671
    /**
 
672
     *  Pure-virtual function that needs to be implemented to:
 
673
     *
 
674
     *  Set VLAN vif.
 
675
     *
 
676
     *  @param ifname the name of the physical interface associated with the
 
677
     *  VLAN.
 
678
     *
 
679
     *  @param vif the name of the VLAN.
 
680
     *
 
681
     *  @param vlan_id the VLAN ID. It must be in the range 0 through 4095.
 
682
     */
 
683
    virtual XrlCmdError ifmgr_0_1_set_vif_vlan(
 
684
        // Input values,
 
685
        const uint32_t& tid,
 
686
        const string&   ifname,
 
687
        const string&   vif,
 
688
        const uint32_t& vlan_id) = 0;
 
689
 
639
690
    virtual XrlCmdError ifmgr_0_1_create_address4(
640
691
        // Input values,
641
692
        const uint32_t& tid,
2331
2382
     *  @param sockid unique socket ID.
2332
2383
     *
2333
2384
     *  @param optname name of option to be set. Valid values are:
2334
 
     *  "multicast_loopback" "multicast_hops"
 
2385
     *  "multicast_loopback" "multicast_ttl"
2335
2386
     *
2336
2387
     *  @param optval value of option to be set. If value is logically boolean
2337
2388
     *  then zero represents false and any non-zero value true.
2479
2530
 
2480
2531
    const XrlCmdError handle_ifmgr_0_1_get_configured_interface_discard(const XrlArgs& in, XrlArgs* out);
2481
2532
 
 
2533
    const XrlCmdError handle_ifmgr_0_1_get_configured_interface_unreachable(const XrlArgs& in, XrlArgs* out);
 
2534
 
 
2535
    const XrlCmdError handle_ifmgr_0_1_get_configured_interface_management(const XrlArgs& in, XrlArgs* out);
 
2536
 
2482
2537
    const XrlCmdError handle_ifmgr_0_1_get_configured_mac(const XrlArgs& in, XrlArgs* out);
2483
2538
 
2484
2539
    const XrlCmdError handle_ifmgr_0_1_get_configured_mtu(const XrlArgs& in, XrlArgs* out);
2515
2570
 
2516
2571
    const XrlCmdError handle_ifmgr_0_1_set_interface_discard(const XrlArgs& in, XrlArgs* out);
2517
2572
 
 
2573
    const XrlCmdError handle_ifmgr_0_1_set_interface_unreachable(const XrlArgs& in, XrlArgs* out);
 
2574
 
 
2575
    const XrlCmdError handle_ifmgr_0_1_set_interface_management(const XrlArgs& in, XrlArgs* out);
 
2576
 
2518
2577
    const XrlCmdError handle_ifmgr_0_1_set_mac(const XrlArgs& in, XrlArgs* out);
2519
2578
 
2520
2579
    const XrlCmdError handle_ifmgr_0_1_restore_original_mac(const XrlArgs& in, XrlArgs* out);
2529
2588
 
2530
2589
    const XrlCmdError handle_ifmgr_0_1_set_vif_enabled(const XrlArgs& in, XrlArgs* out);
2531
2590
 
 
2591
    const XrlCmdError handle_ifmgr_0_1_set_vif_vlan(const XrlArgs& in, XrlArgs* out);
 
2592
 
2532
2593
    const XrlCmdError handle_ifmgr_0_1_create_address4(const XrlArgs& in, XrlArgs* out);
2533
2594
 
2534
2595
    const XrlCmdError handle_ifmgr_0_1_delete_address4(const XrlArgs& in, XrlArgs* out);