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

📄 fea_ifmgr_xif.hh

📁 xorp源码hg
💻 HH
📖 第 1 页 / 共 2 页
字号:
/* * 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/fea_ifmgr_xif.hh,v 1.29 2007/02/16 22:47:37 pavlin Exp $ */#ifndef __XRL_INTERFACES_FEA_IFMGR_XIF_HH__#define __XRL_INTERFACES_FEA_IFMGR_XIF_HH__#undef XORP_LIBRARY_NAME#define XORP_LIBRARY_NAME "XifFeaIfmgr"#include "libxorp/xlog.h"#include "libxorp/callback.hh"#include "libxipc/xrl.hh"#include "libxipc/xrl_error.hh"#include "libxipc/xrl_sender.hh"class XrlIfmgrV0p1Client {public:    XrlIfmgrV0p1Client(XrlSender* s) : _sender(s) {}    virtual ~XrlIfmgrV0p1Client() {}    typedef XorpCallback1<void, const XrlError&>::RefPtr SetRestoreOriginalConfigOnShutdownCB;    bool send_set_restore_original_config_on_shutdown(	const char*	dst_xrl_target_name,	const bool&	enable,	const SetRestoreOriginalConfigOnShutdownCB&	cb    );    typedef XorpCallback2<void, const XrlError&, const XrlAtomList*>::RefPtr GetConfiguredInterfaceNamesCB;    bool send_get_configured_interface_names(	const char*	dst_xrl_target_name,	const GetConfiguredInterfaceNamesCB&	cb    );    typedef XorpCallback2<void, const XrlError&, const XrlAtomList*>::RefPtr GetConfiguredVifNamesCB;    bool send_get_configured_vif_names(	const char*	dst_xrl_target_name,	const string&	ifname,	const GetConfiguredVifNamesCB&	cb    );    typedef XorpCallback6<void, const XrlError&, const bool*, const bool*, const bool*, const bool*, const bool*>::RefPtr GetConfiguredVifFlagsCB;    bool send_get_configured_vif_flags(	const char*	dst_xrl_target_name,	const string&	ifname,	const string&	vif,	const GetConfiguredVifFlagsCB&	cb    );    typedef XorpCallback2<void, const XrlError&, const uint32_t*>::RefPtr GetConfiguredVifPifIndexCB;    bool send_get_configured_vif_pif_index(	const char*	dst_xrl_target_name,	const string&	ifname,	const string&	vif,	const GetConfiguredVifPifIndexCB&	cb    );    typedef XorpCallback2<void, const XrlError&, const XrlAtomList*>::RefPtr GetConfiguredVifAddresses4CB;    bool send_get_configured_vif_addresses4(	const char*	dst_xrl_target_name,	const string&	ifname,	const string&	vif,	const GetConfiguredVifAddresses4CB&	cb    );    typedef XorpCallback2<void, const XrlError&, const XrlAtomList*>::RefPtr GetConfiguredVifAddresses6CB;    bool send_get_configured_vif_addresses6(	const char*	dst_xrl_target_name,	const string&	ifname,	const string&	vif,	const GetConfiguredVifAddresses6CB&	cb    );    typedef XorpCallback6<void, const XrlError&, const bool*, const bool*, const bool*, const bool*, const bool*>::RefPtr GetConfiguredAddressFlags4CB;    bool send_get_configured_address_flags4(	const char*	dst_xrl_target_name,	const string&	ifname,	const string&	vif,	const IPv4&	address,	const GetConfiguredAddressFlags4CB&	cb    );    typedef XorpCallback5<void, const XrlError&, const bool*, const bool*, const bool*, const bool*>::RefPtr GetConfiguredAddressFlags6CB;    bool send_get_configured_address_flags6(	const char*	dst_xrl_target_name,	const string&	ifname,	const string&	vif,	const IPv6&	address,	const GetConfiguredAddressFlags6CB&	cb    );    typedef XorpCallback2<void, const XrlError&, const bool*>::RefPtr GetConfiguredInterfaceEnabledCB;    bool send_get_configured_interface_enabled(	const char*	dst_xrl_target_name,	const string&	ifname,	const GetConfiguredInterfaceEnabledCB&	cb    );    typedef XorpCallback2<void, const XrlError&, const bool*>::RefPtr GetConfiguredInterfaceDiscardCB;    bool send_get_configured_interface_discard(	const char*	dst_xrl_target_name,	const string&	ifname,	const GetConfiguredInterfaceDiscardCB&	cb    );    typedef XorpCallback2<void, const XrlError&, const Mac*>::RefPtr GetConfiguredMacCB;    bool send_get_configured_mac(	const char*	dst_xrl_target_name,	const string&	ifname,	const GetConfiguredMacCB&	cb    );    typedef XorpCallback2<void, const XrlError&, const uint32_t*>::RefPtr GetConfiguredMtuCB;    bool send_get_configured_mtu(	const char*	dst_xrl_target_name,	const string&	ifname,	const GetConfiguredMtuCB&	cb    );    typedef XorpCallback2<void, const XrlError&, const bool*>::RefPtr GetConfiguredNoCarrierCB;    bool send_get_configured_no_carrier(	const char*	dst_xrl_target_name,	const string&	ifname,	const GetConfiguredNoCarrierCB&	cb    );    typedef XorpCallback2<void, const XrlError&, const bool*>::RefPtr GetConfiguredVifEnabledCB;    bool send_get_configured_vif_enabled(	const char*	dst_xrl_target_name,	const string&	ifname,	const string&	vif,	const GetConfiguredVifEnabledCB&	cb    );    typedef XorpCallback2<void, const XrlError&, const uint32_t*>::RefPtr GetConfiguredPrefix4CB;    bool send_get_configured_prefix4(	const char*	dst_xrl_target_name,	const string&	ifname,	const string&	vif,	const IPv4&	address,	const GetConfiguredPrefix4CB&	cb    );    typedef XorpCallback2<void, const XrlError&, const IPv4*>::RefPtr GetConfiguredBroadcast4CB;    bool send_get_configured_broadcast4(	const char*	dst_xrl_target_name,	const string&	ifname,	const string&	vif,	const IPv4&	address,	const GetConfiguredBroadcast4CB&	cb    );    typedef XorpCallback2<void, const XrlError&, const IPv4*>::RefPtr GetConfiguredEndpoint4CB;    bool send_get_configured_endpoint4(	const char*	dst_xrl_target_name,	const string&	ifname,	const string&	vif,	const IPv4&	address,	const GetConfiguredEndpoint4CB&	cb    );    typedef XorpCallback2<void, const XrlError&, const uint32_t*>::RefPtr GetConfiguredPrefix6CB;    bool send_get_configured_prefix6(	const char*	dst_xrl_target_name,	const string&	ifname,	const string&	vif,	const IPv6&	address,	const GetConfiguredPrefix6CB&	cb    );    typedef XorpCallback2<void, const XrlError&, const IPv6*>::RefPtr GetConfiguredEndpoint6CB;    bool send_get_configured_endpoint6(	const char*	dst_xrl_target_name,	const string&	ifname,	const string&	vif,	const IPv6&	address,	const GetConfiguredEndpoint6CB&	cb    );    typedef XorpCallback2<void, const XrlError&, const uint32_t*>::RefPtr StartTransactionCB;    bool send_start_transaction(	const char*	dst_xrl_target_name,	const StartTransactionCB&	cb    );    typedef XorpCallback1<void, const XrlError&>::RefPtr CommitTransactionCB;    bool send_commit_transaction(	const char*	dst_xrl_target_name,	const uint32_t&	tid,	const CommitTransactionCB&	cb    );    typedef XorpCallback1<void, const XrlError&>::RefPtr AbortTransactionCB;    bool send_abort_transaction(	const char*	dst_xrl_target_name,	const uint32_t&	tid,	const AbortTransactionCB&	cb    );    typedef XorpCallback1<void, const XrlError&>::RefPtr CreateInterfaceCB;    bool send_create_interface(	const char*	dst_xrl_target_name,	const uint32_t&	tid,	const string&	ifname,	const CreateInterfaceCB&	cb    );    typedef XorpCallback1<void, const XrlError&>::RefPtr DeleteInterfaceCB;    bool send_delete_interface(	const char*	dst_xrl_target_name,	const uint32_t&	tid,	const string&	ifname,	const DeleteInterfaceCB&	cb    );    typedef XorpCallback1<void, const XrlError&>::RefPtr ConfigureInterfaceFromSystemCB;    /**     *  Send Xrl intended to:     *     *  Implicitly configure an interface within the FEA by using information     *  from the underlying system.     *     *  @param dst_xrl_target_name the Xrl target name of the destination.     *     *  @param tid the transaction ID.     *     *  @param ifname the name of the interface to configure.     */    bool send_configure_interface_from_system(	const char*	dst_xrl_target_name,	const uint32_t&	tid,	const string&	ifname,	const ConfigureInterfaceFromSystemCB&	cb    );    typedef XorpCallback1<void, const XrlError&>::RefPtr SetInterfaceEnabledCB;    bool send_set_interface_enabled(	const char*	dst_xrl_target_name,	const uint32_t&	tid,	const string&	ifname,	const bool&	enabled,	const SetInterfaceEnabledCB&	cb    );    typedef XorpCallback1<void, const XrlError&>::RefPtr SetInterfaceDiscardCB;    bool send_set_interface_discard(	const char*	dst_xrl_target_name,	const uint32_t&	tid,	const string&	ifname,	const bool&	discard,	const SetInterfaceDiscardCB&	cb    );    typedef XorpCallback1<void, const XrlError&>::RefPtr SetMacCB;    bool send_set_mac(	const char*	dst_xrl_target_name,	const uint32_t&	tid,	const string&	ifname,	const Mac&	mac,	const SetMacCB&	cb    );    typedef XorpCallback1<void, const XrlError&>::RefPtr RestoreOriginalMacCB;    bool send_restore_original_mac(	const char*	dst_xrl_target_name,	const uint32_t&	tid,	const string&	ifname,	const RestoreOriginalMacCB&	cb    );    typedef XorpCallback1<void, const XrlError&>::RefPtr SetMtuCB;    bool send_set_mtu(	const char*	dst_xrl_target_name,	const uint32_t&	tid,	const string&	ifname,	const uint32_t&	mtu,	const SetMtuCB&	cb    );    typedef XorpCallback1<void, const XrlError&>::RefPtr RestoreOriginalMtuCB;    bool send_restore_original_mtu(	const char*	dst_xrl_target_name,	const uint32_t&	tid,	const string&	ifname,	const RestoreOriginalMtuCB&	cb    );    typedef XorpCallback1<void, const XrlError&>::RefPtr CreateVifCB;    /**     *  Send Xrl intended to:     *     *  Create a vif     *     *  @param dst_xrl_target_name the Xrl target name of the destination.     *     *  @param ifname the name of the physical interface associated with the     *  new vif.     *     *  @param vif name for new vif, must be unique across all the vifs in the     *  system.     */    bool send_create_vif(	const char*	dst_xrl_target_name,	const uint32_t&	tid,	const string&	ifname,	const string&	vif,	const CreateVifCB&	cb    );    typedef XorpCallback1<void, const XrlError&>::RefPtr DeleteVifCB;    bool send_delete_vif(	const char*	dst_xrl_target_name,	const uint32_t&	tid,	const string&	ifname,	const string&	vif,	const DeleteVifCB&	cb    );    typedef XorpCallback1<void, const XrlError&>::RefPtr SetVifEnabledCB;    bool send_set_vif_enabled(	const char*	dst_xrl_target_name,	const uint32_t&	tid,	const string&	ifname,	const string&	vif,	const bool&	enabled,	const SetVifEnabledCB&	cb    );    typedef XorpCallback1<void, const XrlError&>::RefPtr CreateAddress4CB;    bool send_create_address4(	const char*	dst_xrl_target_name,	const uint32_t&	tid,	const string&	ifname,	const string&	vif,	const IPv4&	address,	const CreateAddress4CB&	cb    );    typedef XorpCallback1<void, const XrlError&>::RefPtr DeleteAddress4CB;    bool send_delete_address4(	const char*	dst_xrl_target_name,	const uint32_t&	tid,	const string&	ifname,	const string&	vif,	const IPv4&	address,	const DeleteAddress4CB&	cb    );    typedef XorpCallback1<void, const XrlError&>::RefPtr SetAddressEnabled4CB;    bool send_set_address_enabled4(	const char*	dst_xrl_target_name,	const uint32_t&	tid,	const string&	ifname,	const string&	vif,	const IPv4&	address,	const bool&	enabled,	const SetAddressEnabled4CB&	cb    );    typedef XorpCallback2<void, const XrlError&, const bool*>::RefPtr GetConfiguredAddressEnabled4CB;    bool send_get_configured_address_enabled4(	const char*	dst_xrl_target_name,	const string&	ifname,	const string&	vif,	const IPv4&	address,	const GetConfiguredAddressEnabled4CB&	cb    );    typedef XorpCallback1<void, const XrlError&>::RefPtr SetPrefix4CB;    bool send_set_prefix4(	const char*	dst_xrl_target_name,	const uint32_t&	tid,	const string&	ifname,	const string&	vif,	const IPv4&	address,	const uint32_t&	prefix_len,	const SetPrefix4CB&	cb    );    typedef XorpCallback1<void, const XrlError&>::RefPtr SetBroadcast4CB;    bool send_set_broadcast4(	const char*	dst_xrl_target_name,	const uint32_t&	tid,	const string&	ifname,	const string&	vif,	const IPv4&	address,	const IPv4&	broadcast,	const SetBroadcast4CB&	cb    );    typedef XorpCallback1<void, const XrlError&>::RefPtr SetEndpoint4CB;    bool send_set_endpoint4(	const char*	dst_xrl_target_name,	const uint32_t&	tid,	const string&	ifname,	const string&	vif,	const IPv4&	address,	const IPv4&	endpoint,	const SetEndpoint4CB&	cb    );    typedef XorpCallback1<void, const XrlError&>::RefPtr CreateAddress6CB;    bool send_create_address6(	const char*	dst_xrl_target_name,	const uint32_t&	tid,	const string&	ifname,	const string&	vif,	const IPv6&	address,	const CreateAddress6CB&	cb    );    typedef XorpCallback1<void, const XrlError&>::RefPtr DeleteAddress6CB;    bool send_delete_address6(	const char*	dst_xrl_target_name,	const uint32_t&	tid,	const string&	ifname,	const string&	vif,	const IPv6&	address,	const DeleteAddress6CB&	cb    );    typedef XorpCallback1<void, const XrlError&>::RefPtr SetAddressEnabled6CB;    bool send_set_address_enabled6(	const char*	dst_xrl_target_name,	const uint32_t&	tid,	const string&	ifname,	const string&	vif,	const IPv6&	address,	const bool&	enabled,	const SetAddressEnabled6CB&	cb    );    typedef XorpCallback2<void, const XrlError&, const bool*>::RefPtr GetConfiguredAddressEnabled6CB;    bool send_get_configured_address_enabled6(	const char*	dst_xrl_target_name,	const string&	ifname,	const string&	vif,	const IPv6&	address,	const GetConfiguredAddressEnabled6CB&	cb    );    typedef XorpCallback1<void, const XrlError&>::RefPtr SetPrefix6CB;    bool send_set_prefix6(	const char*	dst_xrl_target_name,	const uint32_t&	tid,	const string&	ifname,	const string&	vif,	const IPv6&	address,	const uint32_t&	prefix_len,	const SetPrefix6CB&	cb    );    typedef XorpCallback1<void, const XrlError&>::RefPtr SetEndpoint6CB;    bool send_set_endpoint6(	const char*	dst_xrl_target_name,	const uint32_t&	tid,	const string&	ifname,	const string&	vif,	const IPv6&	address,	const IPv6&	endpoint,	const SetEndpoint6CB&	cb    );    typedef XorpCallback1<void, const XrlError&>::RefPtr RegisterClientCB;    /**     *  Send Xrl intended to:     *     *  Register network interface observer for configured interfaces.     *     *  @param dst_xrl_target_name the Xrl target name of the destination.     *     *  @param clientname name of xrl entity supporting fea_ifmgr_client.xif     *  methods.     */    bool send_register_client(	const char*	dst_xrl_target_name,	const string&	clientname,	const RegisterClientCB&	cb    );    typedef XorpCallback1<void, const XrlError&>::RefPtr UnregisterClientCB;    /**     *  Send Xrl intended to:     *     *  Unregister network interface observer for configured interfaces. This     *  method is not strictly necessary, the fea will remove the interface     *  observer from its list of known observers if interface update XRLs     *  fail.     *     *  @param dst_xrl_target_name the Xrl target name of the destination.     */    bool send_unregister_client(	const char*	dst_xrl_target_name,	const string&	clientname,	const UnregisterClientCB&	cb    );    typedef XorpCallback2<void, const XrlError&, const XrlAtomList*>::RefPtr GetSystemInterfaceNamesCB;    bool send_get_system_interface_names(	const char*	dst_xrl_target_name,	const GetSystemInterfaceNamesCB&	cb    );    typedef XorpCallback2<void, const XrlError&, const XrlAtomList*>::RefPtr GetSystemVifNamesCB;    bool send_get_system_vif_names(	const char*	dst_xrl_target_name,	const string&	ifname,	const GetSystemVifNamesCB&	cb    );    typedef XorpCallback6<void, const XrlError&, const bool*, const bool*, const bool*, const bool*, const bool*>::RefPtr GetSystemVifFlagsCB;    bool send_get_system_vif_flags(	const char*	dst_xrl_target_name,	const string&	ifname,	const string&	vif,	const GetSystemVifFlagsCB&	cb    );    typedef XorpCallback2<void, const XrlError&, const uint32_t*>::RefPtr GetSystemVifPifIndexCB;    bool send_get_system_vif_pif_index(	const char*	dst_xrl_target_name,	const string&	ifname,	const string&	vif,	const GetSystemVifPifIndexCB&	cb    );    typedef XorpCallback2<void, const XrlError&, const XrlAtomList*>::RefPtr GetSystemVifAddresses4CB;    bool send_get_system_vif_addresses4(	const char*	dst_xrl_target_name,	const string&	ifname,	const string&	vif,	const GetSystemVifAddresses4CB&	cb    );    typedef XorpCallback6<void, const XrlError&, const bool*, const bool*, const bool*, const bool*, const bool*>::RefPtr GetSystemAddressFlags4CB;    bool send_get_system_address_flags4(	const char*	dst_xrl_target_name,	const string&	ifname,	const string&	vif,	const IPv4&	address,	const GetSystemAddressFlags4CB&	cb    );    typedef XorpCallback2<void, const XrlError&, const XrlAtomList*>::RefPtr GetSystemVifAddresses6CB;    bool send_get_system_vif_addresses6(	const char*	dst_xrl_target_name,	const string&	ifname,	const string&	vif,	const GetSystemVifAddresses6CB&	cb

⌨️ 快捷键说明

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