bgp_xif.hh

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

HH
654
字号
    bool send_get_peer_msg_stats(	const char*	target_name, 	const IPv4&	local_ip, 	const uint32_t&	local_port, 	const IPv4&	peer_ip, 	const uint32_t&	peer_port, 	const GetPeerMsgStatsCB&	cb    );    typedef XorpCallback3<void, const XrlError&, const uint32_t*, const uint32_t*>::RefPtr GetPeerEstablishedStatsCB;    bool send_get_peer_established_stats(	const char*	target_name, 	const IPv4&	local_ip, 	const uint32_t&	local_port, 	const IPv4&	peer_ip, 	const uint32_t&	peer_port, 	const GetPeerEstablishedStatsCB&	cb    );    typedef XorpCallback8<void, const XrlError&, const uint32_t*, const uint32_t*, const uint32_t*, const uint32_t*, const uint32_t*, const uint32_t*, const uint32_t*>::RefPtr GetPeerTimerConfigCB;    bool send_get_peer_timer_config(	const char*	target_name, 	const IPv4&	local_ip, 	const uint32_t&	local_port, 	const IPv4&	peer_ip, 	const uint32_t&	peer_port, 	const GetPeerTimerConfigCB&	cb    );    typedef XorpCallback1<void, const XrlError&>::RefPtr RegisterRibCB;    /**     *  Send Xrl intended to:     *       *  Register rib.     *       *  @param tgt_name Xrl Target name     *       *  @param name rib name.     */    bool send_register_rib(	const char*	target_name, 	const string&	name, 	const RegisterRibCB&	cb    );    typedef XorpCallback1<void, const XrlError&>::RefPtr AddRouteCB;    /**     *  Send Xrl intended to:     *       *  add route     *       *  @param tgt_name Xrl Target name     *       *  @param origin the origin of the path information.     *       *  @param next_hop the border router that should be used as a detination     *  for the nlri.     *       *  @param nlri network level reachability information.     */    bool send_add_route(	const char*	target_name, 	const int32_t&	origin, 	const int32_t&	asnum, 	const IPv4&	next_hop, 	const IPv4Net&	nlri, 	const AddRouteCB&	cb    );    typedef XorpCallback1<void, const XrlError&>::RefPtr DeleteRouteCB;    /**     *  Send Xrl intended to:     *       *  delete route     *       *  @param tgt_name Xrl Target name     *       *  @param nlri network level reachability information.     */    bool send_delete_route(	const char*	target_name, 	const IPv4Net&	nlri, 	const DeleteRouteCB&	cb    );    typedef XorpCallback2<void, const XrlError&, const uint32_t*>::RefPtr GetV4RouteListStartCB;    /**     *  Send Xrl intended to:     *       *  Get the first item of a list of BGP routes See RFC 1657 (BGP MIB) for     *  full definitions of return values.     *       *  @param tgt_name Xrl Target name     */    bool send_get_v4_route_list_start(	const char*	target_name, 	const GetV4RouteListStartCB&	cb    );    typedef XorpCallback2<void, const XrlError&, const uint32_t*>::RefPtr GetV6RouteListStartCB;    /**     *  Send Xrl intended to:     *       *  Get the first item of a list of BGP routes See RFC 1657 (BGP MIB) for     *  full definitions of return values.     *       *  @param tgt_name Xrl Target name     */    bool send_get_v6_route_list_start(	const char*	target_name, 	const GetV6RouteListStartCB&	cb    );    typedef XorpCallback13<void, const XrlError&, const IPv4*, const IPv4Net*, const uint32_t*, const vector<uint8_t>*, const IPv4*, const int32_t*, const int32_t*, const int32_t*, const vector<uint8_t>*, const int32_t*, const vector<uint8_t>*, const bool*>::RefPtr GetV4RouteListNextCB;    /**     *  Send Xrl intended to:     *       *  Get the next route in the list See RFC 1657 (BGP MIB) for full     *  definitions of return values.     *       *  @param tgt_name Xrl Target name     */    bool send_get_v4_route_list_next(	const char*	target_name, 	const uint32_t&	token, 	const GetV4RouteListNextCB&	cb    );    typedef XorpCallback13<void, const XrlError&, const IPv4*, const IPv6Net*, const uint32_t*, const vector<uint8_t>*, const IPv6*, const int32_t*, const int32_t*, const int32_t*, const vector<uint8_t>*, const int32_t*, const vector<uint8_t>*, const bool*>::RefPtr GetV6RouteListNextCB;    /**     *  Send Xrl intended to:     *       *  Get the next route in the list See RFC 1657 (BGP MIB) for full     *  definitions of return values.     *       *  @param tgt_name Xrl Target name     */    bool send_get_v6_route_list_next(	const char*	target_name, 	const uint32_t&	token, 	const GetV6RouteListNextCB&	cb    );protected:    XrlSender* _sender;private:    void unmarshall_get_bgp_version(	const XrlError&	e, 	XrlArgs*	a, 	GetBgpVersionCB		cb    );    void unmarshall_local_config(	const XrlError&	e, 	XrlArgs*	a, 	LocalConfigCB		cb    );    void unmarshall_set_local_as(	const XrlError&	e, 	XrlArgs*	a, 	SetLocalAsCB		cb    );    void unmarshall_get_local_as(	const XrlError&	e, 	XrlArgs*	a, 	GetLocalAsCB		cb    );    void unmarshall_set_bgp_id(	const XrlError&	e, 	XrlArgs*	a, 	SetBgpIdCB		cb    );    void unmarshall_get_bgp_id(	const XrlError&	e, 	XrlArgs*	a, 	GetBgpIdCB		cb    );    void unmarshall_add_peer(	const XrlError&	e, 	XrlArgs*	a, 	AddPeerCB		cb    );    void unmarshall_delete_peer(	const XrlError&	e, 	XrlArgs*	a, 	DeletePeerCB		cb    );    void unmarshall_enable_peer(	const XrlError&	e, 	XrlArgs*	a, 	EnablePeerCB		cb    );    void unmarshall_disable_peer(	const XrlError&	e, 	XrlArgs*	a, 	DisablePeerCB		cb    );    void unmarshall_set_parameter(	const XrlError&	e, 	XrlArgs*	a, 	SetParameterCB		cb    );    void unmarshall_next_hop_rewrite_filter(	const XrlError&	e, 	XrlArgs*	a, 	NextHopRewriteFilterCB		cb    );    void unmarshall_set_peer_state(	const XrlError&	e, 	XrlArgs*	a, 	SetPeerStateCB		cb    );    void unmarshall_get_peer_list_start(	const XrlError&	e, 	XrlArgs*	a, 	GetPeerListStartCB		cb    );    void unmarshall_get_peer_list_next(	const XrlError&	e, 	XrlArgs*	a, 	GetPeerListNextCB		cb    );    void unmarshall_get_peer_id(	const XrlError&	e, 	XrlArgs*	a, 	GetPeerIdCB		cb    );    void unmarshall_get_peer_status(	const XrlError&	e, 	XrlArgs*	a, 	GetPeerStatusCB		cb    );    void unmarshall_get_peer_negotiated_version(	const XrlError&	e, 	XrlArgs*	a, 	GetPeerNegotiatedVersionCB		cb    );    void unmarshall_get_peer_as(	const XrlError&	e, 	XrlArgs*	a, 	GetPeerAsCB		cb    );    void unmarshall_get_peer_msg_stats(	const XrlError&	e, 	XrlArgs*	a, 	GetPeerMsgStatsCB		cb    );    void unmarshall_get_peer_established_stats(	const XrlError&	e, 	XrlArgs*	a, 	GetPeerEstablishedStatsCB		cb    );    void unmarshall_get_peer_timer_config(	const XrlError&	e, 	XrlArgs*	a, 	GetPeerTimerConfigCB		cb    );    void unmarshall_register_rib(	const XrlError&	e, 	XrlArgs*	a, 	RegisterRibCB		cb    );    void unmarshall_add_route(	const XrlError&	e, 	XrlArgs*	a, 	AddRouteCB		cb    );    void unmarshall_delete_route(	const XrlError&	e, 	XrlArgs*	a, 	DeleteRouteCB		cb    );    void unmarshall_get_v4_route_list_start(	const XrlError&	e, 	XrlArgs*	a, 	GetV4RouteListStartCB		cb    );    void unmarshall_get_v6_route_list_start(	const XrlError&	e, 	XrlArgs*	a, 	GetV6RouteListStartCB		cb    );    void unmarshall_get_v4_route_list_next(	const XrlError&	e, 	XrlArgs*	a, 	GetV4RouteListNextCB		cb    );    void unmarshall_get_v6_route_list_next(	const XrlError&	e, 	XrlArgs*	a, 	GetV6RouteListNextCB		cb    );};#endif /* __XRL_INTERFACES_BGP_XIF_HH__ */

⌨️ 快捷键说明

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