⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 bgp_xif.hh

📁 xorp源码hg
💻 HH
📖 第 1 页 / 共 3 页
字号:
/* * Copyright (c) 2001-2007 International Computer Science Institute * See LICENSE file for licensing, conditions, and warranties on use. * * DO NOT EDIT THIS FILE - IT IS PROGRAMMATICALLY GENERATED * * Generated by 'clnt-gen'. * * $XORP: xorp/xrl/interfaces/bgp_xif.hh,v 1.48 2007/02/16 22:47:35 pavlin Exp $ */#ifndef __XRL_INTERFACES_BGP_XIF_HH__#define __XRL_INTERFACES_BGP_XIF_HH__#undef XORP_LIBRARY_NAME#define XORP_LIBRARY_NAME "XifBgp"#include "libxorp/xlog.h"#include "libxorp/callback.hh"#include "libxipc/xrl.hh"#include "libxipc/xrl_error.hh"#include "libxipc/xrl_sender.hh"class XrlBgpV0p2Client {public:    XrlBgpV0p2Client(XrlSender* s) : _sender(s) {}    virtual ~XrlBgpV0p2Client() {}    typedef XorpCallback2<void, const XrlError&, const uint32_t*>::RefPtr GetBgpVersionCB;    /**     *  Send Xrl intended to:     *     *  Get the BGP version currently running.     *     *  @param dst_xrl_target_name the Xrl target name of the destination.     */    bool send_get_bgp_version(	const char*	dst_xrl_target_name,	const GetBgpVersionCB&	cb    );    typedef XorpCallback1<void, const XrlError&>::RefPtr LocalConfigCB;    /**     *  Send Xrl intended to:     *     *  Get local config     *     *  @param dst_xrl_target_name the Xrl target name of the destination.     *     *  @param id our BGP ID.     */    bool send_local_config(	const char*	dst_xrl_target_name,	const uint32_t&	as,	const IPv4&	id,	const LocalConfigCB&	cb    );    typedef XorpCallback1<void, const XrlError&>::RefPtr SetLocalAsCB;    /**     *  Send Xrl intended to:     *     *  Set the local AS number.     *     *  @param dst_xrl_target_name the Xrl target name of the destination.     *     *  @param as our AS number.     */    bool send_set_local_as(	const char*	dst_xrl_target_name,	const uint32_t&	as,	const SetLocalAsCB&	cb    );    typedef XorpCallback2<void, const XrlError&, const uint32_t*>::RefPtr GetLocalAsCB;    /**     *  Send Xrl intended to:     *     *  Get the local AS number.     *     *  @param dst_xrl_target_name the Xrl target name of the destination.     */    bool send_get_local_as(	const char*	dst_xrl_target_name,	const GetLocalAsCB&	cb    );    typedef XorpCallback1<void, const XrlError&>::RefPtr SetBgpIdCB;    /**     *  Send Xrl intended to:     *     *  Set the BGP id.     *     *  @param dst_xrl_target_name the Xrl target name of the destination.     *     *  @param id our BGP ID.     */    bool send_set_bgp_id(	const char*	dst_xrl_target_name,	const IPv4&	id,	const SetBgpIdCB&	cb    );    typedef XorpCallback2<void, const XrlError&, const IPv4*>::RefPtr GetBgpIdCB;    /**     *  Send Xrl intended to:     *     *  Get the BGP id.     *     *  @param dst_xrl_target_name the Xrl target name of the destination.     */    bool send_get_bgp_id(	const char*	dst_xrl_target_name,	const GetBgpIdCB&	cb    );    typedef XorpCallback1<void, const XrlError&>::RefPtr SetConfederationIdentifierCB;    /**     *  Send Xrl intended to:     *     *  Confederation identifier.     *     *  @param dst_xrl_target_name the Xrl target name of the destination.     *     *  @param as externally visible AS number.     *     *  @param disable true if confederations are disabled.     */    bool send_set_confederation_identifier(	const char*	dst_xrl_target_name,	const uint32_t&	as,	const bool&	disable,	const SetConfederationIdentifierCB&	cb    );    typedef XorpCallback1<void, const XrlError&>::RefPtr SetClusterIdCB;    /**     *  Send Xrl intended to:     *     *  Route reflection.     *     *  @param dst_xrl_target_name the Xrl target name of the destination.     *     *  @param cluster_id the route reflection cluster ID.     *     *  @param disable if true this router is a router reflector.     */    bool send_set_cluster_id(	const char*	dst_xrl_target_name,	const IPv4&	cluster_id,	const bool&	disable,	const SetClusterIdCB&	cb    );    typedef XorpCallback1<void, const XrlError&>::RefPtr SetDampingCB;    /**     *  Send Xrl intended to:     *     *  Route Flap Damping. RFC 2439     *     *  @param dst_xrl_target_name the Xrl target name of the destination.     *     *  @param half_life decay half life in minutes.     *     *  @param max_suppress maximum time in minutes a route can be held down.     *     *  @param reuse threshold, point at which a route can be reused.     */    bool send_set_damping(	const char*	dst_xrl_target_name,	const uint32_t&	half_life,	const uint32_t&	max_suppress,	const uint32_t&	reuse,	const uint32_t&	suppress,	const bool&	disable,	const SetDampingCB&	cb    );    typedef XorpCallback1<void, const XrlError&>::RefPtr AddPeerCB;    /**     *  Send Xrl intended to:     *     *  Add peer.     *     *  @param dst_xrl_target_name the Xrl target name of the destination.     *     *  @param as the peer's AS number.     *     *  @param next_hop the local next hop.     *     *  @param holdtime if traffic is not received in holdtime seconds a     *  peering is considered down.     */    bool send_add_peer(	const char*	dst_xrl_target_name,	const string&	local_ip,	const uint32_t&	local_port,	const string&	peer_ip,	const uint32_t&	peer_port,	const uint32_t&	as,	const IPv4&	next_hop,	const uint32_t&	holdtime,	const AddPeerCB&	cb    );    typedef XorpCallback1<void, const XrlError&>::RefPtr DeletePeerCB;    /**     *  Send Xrl intended to:     *     *  Delete peer.     *     *  @param dst_xrl_target_name the Xrl target name of the destination.     */    bool send_delete_peer(	const char*	dst_xrl_target_name,	const string&	local_ip,	const uint32_t&	local_port,	const string&	peer_ip,	const uint32_t&	peer_port,	const DeletePeerCB&	cb    );    typedef XorpCallback1<void, const XrlError&>::RefPtr EnablePeerCB;    /**     *  Send Xrl intended to:     *     *  Enable this peer.     *     *  @param dst_xrl_target_name the Xrl target name of the destination.     */    bool send_enable_peer(	const char*	dst_xrl_target_name,	const string&	local_ip,	const uint32_t&	local_port,	const string&	peer_ip,	const uint32_t&	peer_port,	const EnablePeerCB&	cb    );    typedef XorpCallback1<void, const XrlError&>::RefPtr DisablePeerCB;    /**     *  Send Xrl intended to:     *     *  Disable this peer.     *     *  @param dst_xrl_target_name the Xrl target name of the destination.     */    bool send_disable_peer(	const char*	dst_xrl_target_name,	const string&	local_ip,	const uint32_t&	local_port,	const string&	peer_ip,	const uint32_t&	peer_port,	const DisablePeerCB&	cb    );    typedef XorpCallback1<void, const XrlError&>::RefPtr ChangeLocalIpCB;    /**     *  Send Xrl intended to:     *     *  Change the local IP address.     *     *  @param dst_xrl_target_name the Xrl target name of the destination.     *     *  @param local_ip current IP address.     *     *  @param local_port server port.     *     *  @param peer_ip IP address.     *     *  @param peer_port peer port.     *     *  @param new_local_ip new IP address.     */    bool send_change_local_ip(	const char*	dst_xrl_target_name,	const string&	local_ip,	const uint32_t&	local_port,	const string&	peer_ip,	const uint32_t&	peer_port,	const string&	new_local_ip,	const ChangeLocalIpCB&	cb    );    typedef XorpCallback1<void, const XrlError&>::RefPtr ChangeLocalPortCB;    /**     *  Send Xrl intended to:     *     *  Change the local port.     *     *  @param dst_xrl_target_name the Xrl target name of the destination.     *     *  @param local_ip current IP address.     *     *  @param local_port server port.     *     *  @param peer_ip IP address.     *     *  @param peer_port peer port.     *     *  @param new_local_port new local port.     */    bool send_change_local_port(	const char*	dst_xrl_target_name,	const string&	local_ip,	const uint32_t&	local_port,	const string&	peer_ip,	const uint32_t&	peer_port,	const uint32_t&	new_local_port,	const ChangeLocalPortCB&	cb    );    typedef XorpCallback1<void, const XrlError&>::RefPtr ChangePeerPortCB;    /**     *  Send Xrl intended to:     *     *  Change the peer port.     *     *  @param dst_xrl_target_name the Xrl target name of the destination.     *     *  @param local_ip current IP address.     *     *  @param local_port server port.     *     *  @param peer_ip IP address.     *     *  @param peer_port peer port.     */    bool send_change_peer_port(	const char*	dst_xrl_target_name,	const string&	local_ip,	const uint32_t&	local_port,	const string&	peer_ip,	const uint32_t&	peer_port,	const uint32_t&	new_peer_port,	const ChangePeerPortCB&	cb    );    typedef XorpCallback1<void, const XrlError&>::RefPtr SetPeerAsCB;    /**     *  Send Xrl intended to:     *     *  Set the peer's AS number.     *     *  @param dst_xrl_target_name the Xrl target name of the destination.     *     *  @param peer_as the peer's AS number.     */    bool send_set_peer_as(	const char*	dst_xrl_target_name,	const string&	local_ip,	const uint32_t&	local_port,	const string&	peer_ip,	const uint32_t&	peer_port,	const uint32_t&	peer_as,	const SetPeerAsCB&	cb    );    typedef XorpCallback1<void, const XrlError&>::RefPtr SetHoldtimeCB;    /**     *  Send Xrl intended to:     *     *  Set the holdtime     *     *  @param dst_xrl_target_name the Xrl target name of the destination.     *     *  @param holdtime if traffic is not received in holdtime seconds a     *  peering is considered down.     */    bool send_set_holdtime(	const char*	dst_xrl_target_name,	const string&	local_ip,	const uint32_t&	local_port,	const string&	peer_ip,	const uint32_t&	peer_port,	const uint32_t&	holdtime,	const SetHoldtimeCB&	cb    );    typedef XorpCallback1<void, const XrlError&>::RefPtr SetDelayOpenTimeCB;    /**     *  Send Xrl intended to:     *     *  Set the delay open time     *     *  @param dst_xrl_target_name the Xrl target name of the destination.     *     *  @param delay_open_time to wait is seconds before sending an open.     */    bool send_set_delay_open_time(	const char*	dst_xrl_target_name,	const string&	local_ip,	const uint32_t&	local_port,	const string&	peer_ip,	const uint32_t&	peer_port,	const uint32_t&	delay_open_time,	const SetDelayOpenTimeCB&	cb    );    typedef XorpCallback1<void, const XrlError&>::RefPtr SetRouteReflectorClientCB;    /**     *  Send Xrl intended to:     *     *  Set the route reflection client state. Is this peer a route reflector     *  client.     *     *  @param dst_xrl_target_name the Xrl target name of the destination.     *     *  @param state true if peer is a route reflector client.

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -