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

« back to all changes in this revision

Viewing changes to xrl/interfaces/bgp_xif.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 'clnt-gen'.
8
8
 *
9
 
 * $XORP: xorp/xrl/interfaces/bgp_xif.hh,v 1.49 2007/07/12 21:37:27 pavlin Exp $
 
9
 * $XORP: xorp/xrl/interfaces/bgp_xif.hh,v 1.51 2008/01/04 03:17:51 pavlin Exp $
10
10
 */
11
11
 
12
12
#ifndef __XRL_INTERFACES_BGP_XIF_HH__
23
23
#include "libxipc/xrl_sender.hh"
24
24
 
25
25
 
26
 
class XrlBgpV0p2Client {
 
26
class XrlBgpV0p3Client {
27
27
public:
28
 
    XrlBgpV0p2Client(XrlSender* s) : _sender(s) {}
29
 
    virtual ~XrlBgpV0p2Client() {}
 
28
    XrlBgpV0p3Client(XrlSender* s) : _sender(s) {}
 
29
    virtual ~XrlBgpV0p3Client() {}
30
30
 
31
31
    typedef XorpCallback2<void, const XrlError&, const uint32_t*>::RefPtr GetBgpVersionCB;
32
32
    /**
53
53
     */
54
54
    bool send_local_config(
55
55
        const char*     dst_xrl_target_name,
56
 
        const uint32_t& as,
 
56
        const string&   as,
57
57
        const IPv4&     id,
 
58
        const bool&     use_4byte_asnums,
58
59
        const LocalConfigCB&    cb
59
60
    );
60
61
 
70
71
     */
71
72
    bool send_set_local_as(
72
73
        const char*     dst_xrl_target_name,
73
 
        const uint32_t& as,
 
74
        const string&   as,
74
75
        const SetLocalAsCB&     cb
75
76
    );
76
77
 
77
 
    typedef XorpCallback2<void, const XrlError&, const uint32_t*>::RefPtr GetLocalAsCB;
 
78
    typedef XorpCallback1<void, const XrlError&>::RefPtr Set4ByteAsSupportCB;
 
79
    /**
 
80
     *  Send Xrl intended to:
 
81
     *
 
82
     *  Allow 4-byte AS numbers.
 
83
     *
 
84
     *  @param dst_xrl_target_name the Xrl target name of the destination.
 
85
     *
 
86
     *  @param enable whether this is enabled.
 
87
     */
 
88
    bool send_set_4byte_as_support(
 
89
        const char*     dst_xrl_target_name,
 
90
        const bool&     enable,
 
91
        const Set4ByteAsSupportCB&      cb
 
92
    );
 
93
 
 
94
    typedef XorpCallback2<void, const XrlError&, const string*>::RefPtr GetLocalAsCB;
78
95
    /**
79
96
     *  Send Xrl intended to:
80
97
     *
130
147
     */
131
148
    bool send_set_confederation_identifier(
132
149
        const char*     dst_xrl_target_name,
133
 
        const uint32_t& as,
 
150
        const string&   as,
134
151
        const bool&     disable,
135
152
        const SetConfederationIdentifierCB&     cb
136
153
    );
199
216
        const uint32_t& local_port,
200
217
        const string&   peer_ip,
201
218
        const uint32_t& peer_port,
202
 
        const uint32_t& as,
 
219
        const string&   as,
203
220
        const IPv4&     next_hop,
204
221
        const uint32_t& holdtime,
205
222
        const AddPeerCB&        cb
354
371
        const uint32_t& local_port,
355
372
        const string&   peer_ip,
356
373
        const uint32_t& peer_port,
357
 
        const uint32_t& peer_as,
 
374
        const string&   peer_as,
358
375
        const SetPeerAsCB&      cb
359
376
    );
360
377
 
791
808
        const GetPeerNegotiatedVersionCB&       cb
792
809
    );
793
810
 
794
 
    typedef XorpCallback2<void, const XrlError&, const uint32_t*>::RefPtr GetPeerAsCB;
 
811
    typedef XorpCallback2<void, const XrlError&, const string*>::RefPtr GetPeerAsCB;
795
812
 
796
813
    bool send_get_peer_as(
797
814
        const char*     dst_xrl_target_name,
951
968
        SetLocalAsCB            cb
952
969
    );
953
970
 
 
971
    void unmarshall_set_4byte_as_support(
 
972
        const XrlError& e,
 
973
        XrlArgs*        a,
 
974
        Set4ByteAsSupportCB             cb
 
975
    );
 
976
 
954
977
    void unmarshall_get_local_as(
955
978
        const XrlError& e,
956
979
        XrlArgs*        a,