📄 ospfv2_xif.hh
字号:
*/ bool send_set_md5_authentication_key( const char* dst_xrl_target_name, const string& ifname, const string& vifname, const IPv4& area, const uint32_t& key_id, const string& password, const string& start_time, const string& end_time, const uint32_t& max_time_drift, const SetMd5AuthenticationKeyCB& cb ); typedef XorpCallback1<void, const XrlError&>::RefPtr DeleteMd5AuthenticationKeyCB; /** * Send Xrl intended to: * * Delete MD5 authentication key. * * @param dst_xrl_target_name the Xrl target name of the destination. * * @param ifname the interface name. * * @param vifname the vif name. * * @param area the area ID. * * @param key_id the key ID (must be an integer in the interval [0, 255]). */ bool send_delete_md5_authentication_key( const char* dst_xrl_target_name, const string& ifname, const string& vifname, const IPv4& area, const uint32_t& key_id, const DeleteMd5AuthenticationKeyCB& cb ); typedef XorpCallback1<void, const XrlError&>::RefPtr SetPassiveCB; /** * Send Xrl intended to: * * Toggle the passive status of an interface. * * @param dst_xrl_target_name the Xrl target name of the destination. */ bool send_set_passive( const char* dst_xrl_target_name, const string& ifname, const string& vifname, const IPv4& area, const bool& passive, const SetPassiveCB& cb ); typedef XorpCallback1<void, const XrlError&>::RefPtr OriginateDefaultRouteCB; /** * Send Xrl intended to: * * If this is a "stub" or "nssa" area toggle the sending of a default * route. * * @param dst_xrl_target_name the Xrl target name of the destination. */ bool send_originate_default_route( const char* dst_xrl_target_name, const IPv4& area, const bool& enable, const OriginateDefaultRouteCB& cb ); typedef XorpCallback1<void, const XrlError&>::RefPtr StubDefaultCostCB; /** * Send Xrl intended to: * * Set the StubDefaultCost, the default cost sent in a default route in a * "stub" or "nssa" area. * * @param dst_xrl_target_name the Xrl target name of the destination. */ bool send_stub_default_cost( const char* dst_xrl_target_name, const IPv4& area, const uint32_t& cost, const StubDefaultCostCB& cb ); typedef XorpCallback1<void, const XrlError&>::RefPtr SummariesCB; /** * Send Xrl intended to: * * Toggle the sending of summaries into "stub" or "nssa" areas. * * @param dst_xrl_target_name the Xrl target name of the destination. */ bool send_summaries( const char* dst_xrl_target_name, const IPv4& area, const bool& enable, const SummariesCB& cb ); typedef XorpCallback1<void, const XrlError&>::RefPtr AreaRangeAddCB; /** * Send Xrl intended to: * * Add area range. * * @param dst_xrl_target_name the Xrl target name of the destination. */ bool send_area_range_add( const char* dst_xrl_target_name, const IPv4& area, const IPv4Net& net, const bool& advertise, const AreaRangeAddCB& cb ); typedef XorpCallback1<void, const XrlError&>::RefPtr AreaRangeDeleteCB; /** * Send Xrl intended to: * * Delete area range. * * @param dst_xrl_target_name the Xrl target name of the destination. */ bool send_area_range_delete( const char* dst_xrl_target_name, const IPv4& area, const IPv4Net& net, const AreaRangeDeleteCB& cb ); typedef XorpCallback1<void, const XrlError&>::RefPtr AreaRangeChangeStateCB; /** * Send Xrl intended to: * * Change the advertised state of this area. * * @param dst_xrl_target_name the Xrl target name of the destination. */ bool send_area_range_change_state( const char* dst_xrl_target_name, const IPv4& area, const IPv4Net& net, const bool& advertise, const AreaRangeChangeStateCB& cb ); typedef XorpCallback1<void, const XrlError&>::RefPtr TraceCB; /** * Send Xrl intended to: * * Enable/Disable tracing. * * @param dst_xrl_target_name the Xrl target name of the destination. * * @param tvar trace variable. * * @param enable set to true to enable false to disable. */ bool send_trace( const char* dst_xrl_target_name, const string& tvar, const bool& enable, const TraceCB& cb ); typedef XorpCallback5<void, const XrlError&, const bool*, const bool*, const bool*, const vector<uint8_t>*>::RefPtr GetLsaCB; /** * Send Xrl intended to: * * Get a single lsa from an area. A stateless mechanism to get LSAs. The * client of this interface should start from zero and continue to request * LSAs (incrementing index) until toohigh becomes true. * * @param dst_xrl_target_name the Xrl target name of the destination. * * @param area database that is being searched. * * @param index into database starting from 0. */ bool send_get_lsa( const char* dst_xrl_target_name, const IPv4& area, const uint32_t& index, const GetLsaCB& cb ); typedef XorpCallback2<void, const XrlError&, const XrlAtomList*>::RefPtr GetAreaListCB; /** * Send Xrl intended to: * * Get a list of all the configured areas. Return a list of u32 type * values. Each value is an area ID. * * @param dst_xrl_target_name the Xrl target name of the destination. */ bool send_get_area_list( const char* dst_xrl_target_name, const GetAreaListCB& cb ); typedef XorpCallback2<void, const XrlError&, const XrlAtomList*>::RefPtr GetNeighbourListCB; /** * Send Xrl intended to: * * Get the list of neighbours. Return a list of u32 type values. Each * value is an internal identifier that can be used with the * get_neighbour_info XRL. * * @param dst_xrl_target_name the Xrl target name of the destination. */ bool send_get_neighbour_list( const char* dst_xrl_target_name, const GetNeighbourListCB& cb ); typedef XorpCallback13<void, const XrlError&, const string*, const string*, const string*, const IPv4*, const uint32_t*, const uint32_t*, const IPv4*, const uint32_t*, const IPv4*, const IPv4*, const uint32_t*, const uint32_t*>::RefPtr GetNeighbourInfoCB; /** * Send Xrl intended to: * * Get information on a neighbour. * * @param dst_xrl_target_name the Xrl target name of the destination. * * @param nid neighbour ID returned by the get_neighbour_list. */ bool send_get_neighbour_info( const char* dst_xrl_target_name, const uint32_t& nid, const GetNeighbourInfoCB& cb );protected: XrlSender* _sender;private: void unmarshall_set_router_id( const XrlError& e, XrlArgs* a, SetRouterIdCB cb ); void unmarshall_set_rfc1583_compatibility( const XrlError& e, XrlArgs* a, SetRfc1583CompatibilityCB cb ); void unmarshall_set_ip_router_alert( const XrlError& e, XrlArgs* a, SetIpRouterAlertCB cb ); void unmarshall_create_area_router( const XrlError& e, XrlArgs* a, CreateAreaRouterCB cb ); void unmarshall_change_area_router_type( const XrlError& e, XrlArgs* a, ChangeAreaRouterTypeCB cb ); void unmarshall_destroy_area_router( const XrlError& e, XrlArgs* a, DestroyAreaRouterCB cb ); void unmarshall_create_peer( const XrlError& e, XrlArgs* a, CreatePeerCB cb ); void unmarshall_delete_peer( const XrlError& e, XrlArgs* a, DeletePeerCB cb ); void unmarshall_set_peer_state( const XrlError& e, XrlArgs* a, SetPeerStateCB cb ); void unmarshall_add_neighbour( const XrlError& e, XrlArgs* a, AddNeighbourCB cb ); void unmarshall_remove_neighbour( const XrlError& e, XrlArgs* a, RemoveNeighbourCB cb ); void unmarshall_create_virtual_link( const XrlError& e, XrlArgs* a, CreateVirtualLinkCB cb ); void unmarshall_delete_virtual_link( const XrlError& e, XrlArgs* a, DeleteVirtualLinkCB cb ); void unmarshall_transit_area_virtual_link( const XrlError& e, XrlArgs* a, TransitAreaVirtualLinkCB cb ); void unmarshall_set_interface_cost( const XrlError& e, XrlArgs* a, SetInterfaceCostCB cb ); void unmarshall_set_retransmit_interval( const XrlError& e, XrlArgs* a, SetRetransmitIntervalCB cb ); void unmarshall_set_inftransdelay( const XrlError& e, XrlArgs* a, SetInftransdelayCB cb ); void unmarshall_set_router_priority( const XrlError& e, XrlArgs* a, SetRouterPriorityCB cb ); void unmarshall_set_hello_interval( const XrlError& e, XrlArgs* a, SetHelloIntervalCB cb ); void unmarshall_set_router_dead_interval( const XrlError& e, XrlArgs* a, SetRouterDeadIntervalCB cb ); void unmarshall_set_simple_authentication_key( const XrlError& e, XrlArgs* a, SetSimpleAuthenticationKeyCB cb ); void unmarshall_delete_simple_authentication_key( const XrlError& e, XrlArgs* a, DeleteSimpleAuthenticationKeyCB cb ); void unmarshall_set_md5_authentication_key( const XrlError& e, XrlArgs* a, SetMd5AuthenticationKeyCB cb ); void unmarshall_delete_md5_authentication_key( const XrlError& e, XrlArgs* a, DeleteMd5AuthenticationKeyCB cb ); void unmarshall_set_passive( const XrlError& e, XrlArgs* a, SetPassiveCB cb ); void unmarshall_originate_default_route( const XrlError& e, XrlArgs* a, OriginateDefaultRouteCB cb ); void unmarshall_stub_default_cost( const XrlError& e, XrlArgs* a, StubDefaultCostCB cb ); void unmarshall_summaries( const XrlError& e, XrlArgs* a, SummariesCB cb ); void unmarshall_area_range_add( const XrlError& e, XrlArgs* a, AreaRangeAddCB cb ); void unmarshall_area_range_delete( const XrlError& e, XrlArgs* a, AreaRangeDeleteCB cb ); void unmarshall_area_range_change_state( const XrlError& e, XrlArgs* a, AreaRangeChangeStateCB cb ); void unmarshall_trace( const XrlError& e, XrlArgs* a, TraceCB cb ); void unmarshall_get_lsa( const XrlError& e, XrlArgs* a, GetLsaCB cb ); void unmarshall_get_area_list( const XrlError& e, XrlArgs* a, GetAreaListCB cb ); void unmarshall_get_neighbour_list( const XrlError& e, XrlArgs* a, GetNeighbourListCB cb ); void unmarshall_get_neighbour_info( const XrlError& e, XrlArgs* a, GetNeighbourInfoCB cb );};#endif /* __XRL_INTERFACES_OSPFV2_XIF_HH__ */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -