📄 bgp_xif.hh
字号:
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* dst_xrl_target_name, const string& local_ip, const uint32_t& local_port, const string& peer_ip, const uint32_t& peer_port, const GetPeerTimerConfigCB& cb ); typedef XorpCallback1<void, const XrlError&>::RefPtr RegisterRibCB; /** * Send Xrl intended to: * * Register rib. * * @param dst_xrl_target_name the Xrl target name of the destination. * * @param name rib name. */ bool send_register_rib( const char* dst_xrl_target_name, const string& name, const RegisterRibCB& 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 dst_xrl_target_name the Xrl target name of the destination. * * @param net the subtree to examine. NB Either unicast or multicast * should be set to true, but not both. * * @param unicast request start of unicast routes. * * @param multicast request start of unicast routes. */ bool send_get_v4_route_list_start( const char* dst_xrl_target_name, const IPv4Net& net, const bool& unicast, const bool& multicast, 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 dst_xrl_target_name the Xrl target name of the destination. * * @param net the subtree to examine. NB Either unicast or multicast * should be set to true, but not both. * * @param unicast request start of unicast routes. * * @param multicast request start of multicast routes. */ bool send_get_v6_route_list_start( const char* dst_xrl_target_name, const IPv6Net& net, const bool& unicast, const bool& multicast, const GetV6RouteListStartCB& cb ); typedef XorpCallback15<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*, const bool*, 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 dst_xrl_target_name the Xrl target name of the destination. */ bool send_get_v4_route_list_next( const char* dst_xrl_target_name, const uint32_t& token, const GetV4RouteListNextCB& cb ); typedef XorpCallback15<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*, const bool*, 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 dst_xrl_target_name the Xrl target name of the destination. */ bool send_get_v6_route_list_next( const char* dst_xrl_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_set_confederation_identifier( const XrlError& e, XrlArgs* a, SetConfederationIdentifierCB cb ); void unmarshall_set_cluster_id( const XrlError& e, XrlArgs* a, SetClusterIdCB cb ); void unmarshall_set_damping( const XrlError& e, XrlArgs* a, SetDampingCB 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_change_local_ip( const XrlError& e, XrlArgs* a, ChangeLocalIpCB cb ); void unmarshall_change_local_port( const XrlError& e, XrlArgs* a, ChangeLocalPortCB cb ); void unmarshall_change_peer_port( const XrlError& e, XrlArgs* a, ChangePeerPortCB cb ); void unmarshall_set_peer_as( const XrlError& e, XrlArgs* a, SetPeerAsCB cb ); void unmarshall_set_holdtime( const XrlError& e, XrlArgs* a, SetHoldtimeCB cb ); void unmarshall_set_delay_open_time( const XrlError& e, XrlArgs* a, SetDelayOpenTimeCB cb ); void unmarshall_set_route_reflector_client( const XrlError& e, XrlArgs* a, SetRouteReflectorClientCB cb ); void unmarshall_set_confederation_member( const XrlError& e, XrlArgs* a, SetConfederationMemberCB cb ); void unmarshall_set_prefix_limit( const XrlError& e, XrlArgs* a, SetPrefixLimitCB cb ); void unmarshall_set_nexthop4( const XrlError& e, XrlArgs* a, SetNexthop4CB cb ); void unmarshall_set_nexthop6( const XrlError& e, XrlArgs* a, SetNexthop6CB cb ); void unmarshall_get_nexthop6( const XrlError& e, XrlArgs* a, GetNexthop6CB cb ); void unmarshall_set_peer_state( const XrlError& e, XrlArgs* a, SetPeerStateCB cb ); void unmarshall_set_peer_md5_password( const XrlError& e, XrlArgs* a, SetPeerMd5PasswordCB cb ); void unmarshall_activate( const XrlError& e, XrlArgs* a, ActivateCB 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_originate_route4( const XrlError& e, XrlArgs* a, OriginateRoute4CB cb ); void unmarshall_originate_route6( const XrlError& e, XrlArgs* a, OriginateRoute6CB cb ); void unmarshall_withdraw_route4( const XrlError& e, XrlArgs* a, WithdrawRoute4CB cb ); void unmarshall_withdraw_route6( const XrlError& e, XrlArgs* a, WithdrawRoute6CB cb ); void unmarshall_trace( const XrlError& e, XrlArgs* a, TraceCB 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_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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -