rib_xif.hh

来自「BCAST Implementation for NS2」· HH 代码 · 共 812 行 · 第 1/2 页

HH
812
字号
/* * Copyright (c) 2001-2003 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/rib_xif.hh,v 1.14 2003/09/30 03:08:02 pavlin Exp $ */#ifndef __XRL_INTERFACES_RIB_XIF_HH__#define __XRL_INTERFACES_RIB_XIF_HH__#undef XORP_LIBRARY_NAME#define XORP_LIBRARY_NAME "XifRib"#include "libxorp/xlog.h"#include "libxorp/callback.hh"#include "libxipc/xrl.hh"#include "libxipc/xrl_error.hh"#include "libxipc/xrl_sender.hh"class XrlRibV0p1Client {public:    XrlRibV0p1Client(XrlSender* s) : _sender(s) {}    virtual ~XrlRibV0p1Client() {}    typedef XorpCallback1<void, const XrlError&>::RefPtr EnableRibCB;    /**     *  Send Xrl intended to:     *       *  Enable/disable/start/stop RIB.     *       *  @param tgt_name Xrl Target name     */    bool send_enable_rib(	const char*	target_name, 	const EnableRibCB&	cb    );    typedef XorpCallback1<void, const XrlError&>::RefPtr DisableRibCB;    bool send_disable_rib(	const char*	target_name, 	const DisableRibCB&	cb    );    typedef XorpCallback1<void, const XrlError&>::RefPtr StartRibCB;    bool send_start_rib(	const char*	target_name, 	const StartRibCB&	cb    );    typedef XorpCallback1<void, const XrlError&>::RefPtr StopRibCB;    bool send_stop_rib(	const char*	target_name, 	const StopRibCB&	cb    );    typedef XorpCallback1<void, const XrlError&>::RefPtr AddRibClient4CB;    /**     *  Send Xrl intended to:     *       *  Add/delete/enable/disable a RIB client. Add/delete/enable/disable a RIB     *  client for a given target name, address family, and unicast/multicast     *  flags.     *       *  @param tgt_name Xrl Target name     *       *  @param target_name the target name of the RIB client.     *       *  @param unicast true if a client for the unicast RIB.     *       *  @param multicast true if a client for the multicast RIB.     */    bool send_add_rib_client4(	const char*	target_name, 	const string&	target_name, 	const bool&	unicast, 	const bool&	multicast, 	const AddRibClient4CB&	cb    );    typedef XorpCallback1<void, const XrlError&>::RefPtr AddRibClient6CB;    bool send_add_rib_client6(	const char*	target_name, 	const string&	target_name, 	const bool&	unicast, 	const bool&	multicast, 	const AddRibClient6CB&	cb    );    typedef XorpCallback1<void, const XrlError&>::RefPtr DeleteRibClient4CB;    bool send_delete_rib_client4(	const char*	target_name, 	const string&	target_name, 	const bool&	unicast, 	const bool&	multicast, 	const DeleteRibClient4CB&	cb    );    typedef XorpCallback1<void, const XrlError&>::RefPtr DeleteRibClient6CB;    bool send_delete_rib_client6(	const char*	target_name, 	const string&	target_name, 	const bool&	unicast, 	const bool&	multicast, 	const DeleteRibClient6CB&	cb    );    typedef XorpCallback1<void, const XrlError&>::RefPtr EnableRibClient4CB;    bool send_enable_rib_client4(	const char*	target_name, 	const string&	target_name, 	const bool&	unicast, 	const bool&	multicast, 	const EnableRibClient4CB&	cb    );    typedef XorpCallback1<void, const XrlError&>::RefPtr EnableRibClient6CB;    bool send_enable_rib_client6(	const char*	target_name, 	const string&	target_name, 	const bool&	unicast, 	const bool&	multicast, 	const EnableRibClient6CB&	cb    );    typedef XorpCallback1<void, const XrlError&>::RefPtr DisableRibClient4CB;    bool send_disable_rib_client4(	const char*	target_name, 	const string&	target_name, 	const bool&	unicast, 	const bool&	multicast, 	const DisableRibClient4CB&	cb    );    typedef XorpCallback1<void, const XrlError&>::RefPtr DisableRibClient6CB;    bool send_disable_rib_client6(	const char*	target_name, 	const string&	target_name, 	const bool&	unicast, 	const bool&	multicast, 	const DisableRibClient6CB&	cb    );    typedef XorpCallback1<void, const XrlError&>::RefPtr NoFeaCB;    /**     *  Send Xrl intended to:     *       *  Don't send anything to the FEA - used for testing only     *       *  @param tgt_name Xrl Target name     */    bool send_no_fea(	const char*	target_name, 	const NoFeaCB&	cb    );    typedef XorpCallback1<void, const XrlError&>::RefPtr MakeErrorsFatalCB;    /**     *  Send Xrl intended to:     *       *  Make errors fatal; used to detect errors we'd normally mask     *       *  @param tgt_name Xrl Target name     */    bool send_make_errors_fatal(	const char*	target_name, 	const MakeErrorsFatalCB&	cb    );    typedef XorpCallback1<void, const XrlError&>::RefPtr AddIgpTable4CB;    bool send_add_igp_table4(	const char*	target_name, 	const string&	protocol, 	const string&	tgt_class, 	const string&	tgt_instance, 	const bool&	unicast, 	const bool&	multicast, 	const AddIgpTable4CB&	cb    );    typedef XorpCallback1<void, const XrlError&>::RefPtr AddIgpTable6CB;    bool send_add_igp_table6(	const char*	target_name, 	const string&	protocol, 	const string&	tgt_class, 	const string&	tgt_instance, 	const bool&	unicast, 	const bool&	multicast, 	const AddIgpTable6CB&	cb    );    typedef XorpCallback1<void, const XrlError&>::RefPtr DeleteIgpTable4CB;    bool send_delete_igp_table4(	const char*	target_name, 	const string&	protocol, 	const string&	tgt_class, 	const string&	tgt_instance, 	const bool&	unicast, 	const bool&	multicast, 	const DeleteIgpTable4CB&	cb    );    typedef XorpCallback1<void, const XrlError&>::RefPtr DeleteIgpTable6CB;    bool send_delete_igp_table6(	const char*	target_name, 	const string&	protocol, 	const string&	tgt_class, 	const string&	tgt_instance, 	const bool&	unicast, 	const bool&	multicast, 	const DeleteIgpTable6CB&	cb    );    typedef XorpCallback1<void, const XrlError&>::RefPtr AddEgpTable4CB;    bool send_add_egp_table4(	const char*	target_name, 	const string&	protocol, 	const string&	tgt_class, 	const string&	tgt_instance, 	const bool&	unicast, 	const bool&	multicast, 	const AddEgpTable4CB&	cb    );    typedef XorpCallback1<void, const XrlError&>::RefPtr AddEgpTable6CB;    bool send_add_egp_table6(	const char*	target_name, 	const string&	protocol, 	const string&	tgt_class, 	const string&	tgt_instance, 	const bool&	unicast, 	const bool&	multicast, 	const AddEgpTable6CB&	cb    );    typedef XorpCallback1<void, const XrlError&>::RefPtr DeleteEgpTable4CB;    bool send_delete_egp_table4(	const char*	target_name, 	const string&	protocol, 	const string&	tgt_class, 	const string&	tgt_instance, 	const bool&	unicast, 	const bool&	multicast, 	const DeleteEgpTable4CB&	cb    );    typedef XorpCallback1<void, const XrlError&>::RefPtr DeleteEgpTable6CB;    bool send_delete_egp_table6(	const char*	target_name, 	const string&	protocol, 	const string&	tgt_class, 	const string&	tgt_instance, 	const bool&	unicast, 	const bool&	multicast, 	const DeleteEgpTable6CB&	cb    );    typedef XorpCallback1<void, const XrlError&>::RefPtr AddRoute4CB;    bool send_add_route4(	const char*	target_name, 	const string&	protocol, 	const bool&	unicast, 	const bool&	multicast, 	const IPv4Net&	network, 	const IPv4&	nexthop, 	const uint32_t&	metric, 	const AddRoute4CB&	cb    );    typedef XorpCallback1<void, const XrlError&>::RefPtr AddRoute6CB;    bool send_add_route6(	const char*	target_name, 	const string&	protocol, 	const bool&	unicast, 	const bool&	multicast, 	const IPv6Net&	network, 	const IPv6&	nexthop, 	const uint32_t&	metric, 	const AddRoute6CB&	cb    );    typedef XorpCallback1<void, const XrlError&>::RefPtr ReplaceRoute4CB;    bool send_replace_route4(	const char*	target_name, 	const string&	protocol, 	const bool&	unicast, 	const bool&	multicast, 	const IPv4Net&	network, 	const IPv4&	nexthop, 	const uint32_t&	metric, 	const ReplaceRoute4CB&	cb    );    typedef XorpCallback1<void, const XrlError&>::RefPtr ReplaceRoute6CB;    bool send_replace_route6(	const char*	target_name, 	const string&	protocol, 	const bool&	unicast, 	const bool&	multicast, 	const IPv6Net&	network, 	const IPv6&	nexthop, 	const uint32_t&	metric, 	const ReplaceRoute6CB&	cb    );    typedef XorpCallback1<void, const XrlError&>::RefPtr DeleteRoute4CB;    bool send_delete_route4(	const char*	target_name, 	const string&	protocol, 	const bool&	unicast, 	const bool&	multicast, 	const IPv4Net&	network, 	const DeleteRoute4CB&	cb    );    typedef XorpCallback1<void, const XrlError&>::RefPtr DeleteRoute6CB;    bool send_delete_route6(	const char*	target_name, 	const string&	protocol, 	const bool&	unicast, 	const bool&	multicast, 	const IPv6Net&	network, 	const DeleteRoute6CB&	cb    );    typedef XorpCallback2<void, const XrlError&, const IPv4*>::RefPtr LookupRoute4CB;    /**     *  Send Xrl intended to:     *       *  Lookup nexthop.     *       *  @param tgt_name Xrl Target name     *       *  @param addr address to lookup.     *       *  @param unicast look in unicast RIB.     *       *  @param multicast look in multicast RIB.     */    bool send_lookup_route4(	const char*	target_name, 	const IPv4&	addr, 	const bool&	unicast, 	const bool&	multicast, 	const LookupRoute4CB&	cb    );    typedef XorpCallback2<void, const XrlError&, const IPv6*>::RefPtr LookupRoute6CB;    /**     *  Send Xrl intended to:     *       *  Lookup nexthop.     *       *  @param tgt_name Xrl Target name     *       *  @param addr address to lookup.     *       *  @param unicast look in unicast RIB.     *       *  @param multicast look in multicast RIB.     */    bool send_lookup_route6(	const char*	target_name, 	const IPv6&	addr, 	const bool&	unicast, 	const bool&	multicast, 	const LookupRoute6CB&	cb    );    typedef XorpCallback1<void, const XrlError&>::RefPtr NewVifCB;    bool send_new_vif(	const char*	target_name, 	const string&	name, 	const NewVifCB&	cb    );

⌨️ 快捷键说明

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