ospf_xif.hh
来自「BCAST Implementation for NS2」· HH 代码 · 共 1,586 行 · 第 1/3 页
HH
1,586 行
const uint32_t& transit_area, const uint32_t& neighbor_id, const uint32_t& interval_secs, const VlinkSetHelloIntervalCB& cb ); typedef XorpCallback2<void, const XrlError&, const uint32_t*>::RefPtr VlinkGetHelloIntervalCB; bool send_vlink_get_hello_interval( const char* target_name, const uint32_t& transit_area, const uint32_t& neighbor_id, const VlinkGetHelloIntervalCB& cb ); typedef XorpCallback1<void, const XrlError&>::RefPtr VlinkSetRouterDeadIntervalCB; bool send_vlink_set_router_dead_interval( const char* target_name, const uint32_t& transit_area, const uint32_t& neighbor_id, const uint32_t& interval_secs, const VlinkSetRouterDeadIntervalCB& cb ); typedef XorpCallback2<void, const XrlError&, const uint32_t*>::RefPtr VlinkGetRouterDeadIntervalCB; bool send_vlink_get_router_dead_interval( const char* target_name, const uint32_t& transit_area, const uint32_t& neighbor_id, const VlinkGetRouterDeadIntervalCB& cb ); typedef XorpCallback1<void, const XrlError&>::RefPtr VlinkSetAuthenticationCB; /** * Send Xrl intended to: * * * @param tgt_name Xrl Target name * * @param type is one of "none", "cleartext", "md5" */ bool send_vlink_set_authentication( const char* target_name, const uint32_t& transit_area, const uint32_t& neighbor_id, const string& type, const string& key, const VlinkSetAuthenticationCB& cb ); typedef XorpCallback3<void, const XrlError&, const string*, const string*>::RefPtr VlinkGetAuthenticationCB; bool send_vlink_get_authentication( const char* target_name, const uint32_t& transit_area, const uint32_t& neighbor_id, const VlinkGetAuthenticationCB& cb ); typedef XorpCallback2<void, const XrlError&, const XrlAtomList*>::RefPtr ListVlinksCB; /** * Send Xrl intended to: * * Return list of neighbour id's (unsigned 32 bit values) * * @param tgt_name Xrl Target name */ bool send_list_vlinks( const char* target_name, const uint32_t& transit_id, const ListVlinksCB& cb ); typedef XorpCallback1<void, const XrlError&>::RefPtr AddOrConfigureExternalRouteCB; bool send_add_or_configure_external_route( const char* target_name, const IPv4Net& network, const IPv4& gateway, const uint32_t& type, const uint32_t& cost, const bool& multicast, const uint32_t& external_route_tag, const AddOrConfigureExternalRouteCB& cb ); typedef XorpCallback1<void, const XrlError&>::RefPtr DeleteExternalRouteCB; bool send_delete_external_route( const char* target_name, const IPv4Net& network, const IPv4& gateway, const DeleteExternalRouteCB& cb ); typedef XorpCallback5<void, const XrlError&, const uint32_t*, const uint32_t*, const bool*, const uint32_t*>::RefPtr QueryExternalRouteCB; bool send_query_external_route( const char* target_name, const IPv4Net& network, const IPv4& gateway, const QueryExternalRouteCB& cb ); typedef XorpCallback2<void, const XrlError&, const XrlAtomList*>::RefPtr ListExternalRoutesCB; bool send_list_external_routes( const char* target_name, const IPv4Net& network, const ListExternalRoutesCB& cb ); typedef XorpCallback1<void, const XrlError&>::RefPtr AddInterfaceCB; bool send_add_interface( const char* target_name, const string& identifier, const uint32_t& if_index, const uint32_t& area_id, const uint32_t& cost, const uint32_t& mtu, const string& type, const bool& on_demand, const bool& passive, const AddInterfaceCB& cb ); typedef XorpCallback1<void, const XrlError&>::RefPtr InterfaceSetIfIndexCB; bool send_interface_set_if_index( const char* target_name, const string& identifier, const uint32_t& index, const InterfaceSetIfIndexCB& cb ); typedef XorpCallback2<void, const XrlError&, const uint32_t*>::RefPtr InterfaceGetIfIndexCB; bool send_interface_get_if_index( const char* target_name, const string& identifier, const InterfaceGetIfIndexCB& cb ); typedef XorpCallback1<void, const XrlError&>::RefPtr InterfaceSetAreaIdCB; bool send_interface_set_area_id( const char* target_name, const string& identifier, const uint32_t& area_id, const InterfaceSetAreaIdCB& cb ); typedef XorpCallback2<void, const XrlError&, const uint32_t*>::RefPtr InterfaceGetAreaIdCB; bool send_interface_get_area_id( const char* target_name, const string& identifier, const InterfaceGetAreaIdCB& cb ); typedef XorpCallback1<void, const XrlError&>::RefPtr InterfaceSetCostCB; bool send_interface_set_cost( const char* target_name, const string& identifier, const uint32_t& cost, const InterfaceSetCostCB& cb ); typedef XorpCallback2<void, const XrlError&, const uint32_t*>::RefPtr InterfaceGetCostCB; bool send_interface_get_cost( const char* target_name, const string& identifier, const InterfaceGetCostCB& cb ); typedef XorpCallback1<void, const XrlError&>::RefPtr InterfaceSetMtuCB; bool send_interface_set_mtu( const char* target_name, const string& identifier, const uint32_t& mtu, const InterfaceSetMtuCB& cb ); typedef XorpCallback2<void, const XrlError&, const uint32_t*>::RefPtr InterfaceGetMtuCB; bool send_interface_get_mtu( const char* target_name, const string& identifier, const InterfaceGetMtuCB& cb ); typedef XorpCallback1<void, const XrlError&>::RefPtr InterfaceSetTypeCB; bool send_interface_set_type( const char* target_name, const string& identifier, const string& type, const InterfaceSetTypeCB& cb ); typedef XorpCallback2<void, const XrlError&, const string*>::RefPtr InterfaceGetTypeCB; bool send_interface_get_type( const char* target_name, const string& identifier, const InterfaceGetTypeCB& cb ); typedef XorpCallback1<void, const XrlError&>::RefPtr InterfaceSetDrPriorityCB; bool send_interface_set_dr_priority( const char* target_name, const string& identifier, const uint32_t& dr_priority, const InterfaceSetDrPriorityCB& cb ); typedef XorpCallback2<void, const XrlError&, const uint32_t*>::RefPtr InterfaceGetDrPriorityCB; bool send_interface_get_dr_priority( const char* target_name, const string& identifier, const InterfaceGetDrPriorityCB& cb ); typedef XorpCallback1<void, const XrlError&>::RefPtr InterfaceSetTransitDelayCB; bool send_interface_set_transit_delay( const char* target_name, const string& identifier, const uint32_t& delay_secs, const InterfaceSetTransitDelayCB& cb ); typedef XorpCallback2<void, const XrlError&, const uint32_t*>::RefPtr InterfaceGetTransitDelayCB; bool send_interface_get_transit_delay( const char* target_name, const string& identifier, const InterfaceGetTransitDelayCB& cb ); typedef XorpCallback1<void, const XrlError&>::RefPtr InterfaceSetRetransmitIntervalCB; bool send_interface_set_retransmit_interval( const char* target_name, const string& identifier, const uint32_t& interval_secs, const InterfaceSetRetransmitIntervalCB& cb ); typedef XorpCallback2<void, const XrlError&, const uint32_t*>::RefPtr InterfaceGetRetransmitIntervalCB; bool send_interface_get_retransmit_interval( const char* target_name, const string& identifier, const InterfaceGetRetransmitIntervalCB& cb ); typedef XorpCallback1<void, const XrlError&>::RefPtr InterfaceSetRouterDeadIntervalCB; bool send_interface_set_router_dead_interval( const char* target_name, const string& identifier, const uint32_t& interval_secs, const InterfaceSetRouterDeadIntervalCB& cb ); typedef XorpCallback2<void, const XrlError&, const uint32_t*>::RefPtr InterfaceGetRouterDeadIntervalCB; bool send_interface_get_router_dead_interval( const char* target_name, const string& identifier, const InterfaceGetRouterDeadIntervalCB& cb ); typedef XorpCallback1<void, const XrlError&>::RefPtr InterfaceSetPollIntervalCB; bool send_interface_set_poll_interval( const char* target_name, const string& identifier, const uint32_t& interval_secs, const InterfaceSetPollIntervalCB& cb ); typedef XorpCallback2<void, const XrlError&, const uint32_t*>::RefPtr InterfaceGetPollIntervalCB; bool send_interface_get_poll_interval( const char* target_name, const string& identifier, const InterfaceGetPollIntervalCB& cb ); typedef XorpCallback1<void, const XrlError&>::RefPtr InterfaceSetAuthenticationCB; bool send_interface_set_authentication( const char* target_name, const string& identifier, const string& type, const string& key, const InterfaceSetAuthenticationCB& cb ); typedef XorpCallback3<void, const XrlError&, const string*, const string*>::RefPtr InterfaceGetAuthenticationCB; bool send_interface_get_authentication( const char* target_name, const string& identifier, const InterfaceGetAuthenticationCB& cb ); typedef XorpCallback1<void, const XrlError&>::RefPtr InterfaceSetMulticastForwardingCB; /** * Send Xrl intended to: * * Set state of multicast forwarding on interface. * * @param tgt_name Xrl Target name * * @param type multicast type can be one of three values: "blocked" * meaning not enabled, "multicast" meaning data-link multicast, or * "unicast" meaning multicast packets should be unicast on data-link. */ bool send_interface_set_multicast_forwarding( const char* target_name, const string& identifier, const string& type, const InterfaceSetMulticastForwardingCB& cb ); typedef XorpCallback2<void, const XrlError&, const string*>::RefPtr InterfaceGetMulticastForwardingCB; bool send_interface_get_multicast_forwarding( const char* target_name, const string& identifier, const InterfaceGetMulticastForwardingCB& cb ); typedef XorpCallback1<void, const XrlError&>::RefPtr InterfaceSetOnDemandCB; bool send_interface_set_on_demand( const char* target_name, const string& identifier, const bool& on_demand, const InterfaceSetOnDemandCB& cb ); typedef XorpCallback2<void, const XrlError&, const bool*>::RefPtr InterfaceGetOnDemandCB; bool send_interface_get_on_demand( const char* target_name, const string& identifier, const InterfaceGetOnDemandCB& cb ); typedef XorpCallback1<void, const XrlError&>::RefPtr InterfaceSetPassiveCB; bool send_interface_set_passive( const char* target_name, const string& identifier, const bool& passive, const InterfaceSetPassiveCB& cb ); typedef XorpCallback2<void, const XrlError&, const bool*>::RefPtr InterfaceGetPassiveCB; bool send_interface_get_passive( const char* target_name, const string& identifier, const InterfaceGetPassiveCB& cb ); typedef XorpCallback1<void, const XrlError&>::RefPtr InterfaceSetIgmpCB; bool send_interface_set_igmp( const char* target_name, const string& identifier, const bool& enabled, const InterfaceSetIgmpCB& cb ); typedef XorpCallback2<void, const XrlError&, const bool*>::RefPtr InterfaceGetIgmpCB; bool send_interface_get_igmp( const char* target_name, const string& identifier, const InterfaceGetIgmpCB& cb ); typedef XorpCallback1<void, const XrlError&>::RefPtr DeleteInterfaceCB; bool send_delete_interface( const char* target_name, const string& identifier, const DeleteInterfaceCB& cb ); typedef XorpCallback2<void, const XrlError&, const XrlAtomList*>::RefPtr ListInterfacesCB; bool send_list_interfaces( const char* target_name, const ListInterfacesCB& cb ); typedef XorpCallback1<void, const XrlError&>::RefPtr InterfaceAddMd5KeyCB; /** * Send Xrl intended to: * * Add md5 key to interface. The key may be used for both receiving and * transmitting packets. Separate time periods are used to describe when * the key is valid for receiving and transmitting. These periods are * bound by times start_receive, stop_receive and start_transmit, * stop_transmit. The expected date format is "%Y-%m-%d %H:%M:%S". This * code uses strptime and strftime internally. * * @param tgt_name Xrl Target name * * @param identifier interface key is to be used for. * * @param key_id a value between 1-255 that identifies the key. */ bool send_interface_add_md5_key( const char* target_name, const string& identifier, const uint32_t& key_id, const string& md5key, const string& start_receive, const string& stop_receive, const string& start_transmit, const string& stop_transmit, const InterfaceAddMd5KeyCB& cb ); typedef XorpCallback6<void, const XrlError&, const string*, const string*, const string*, const string*, const string*>::RefPtr InterfaceGetMd5KeyCB; bool send_interface_get_md5_key( const char* target_name, const string& identifier, const uint32_t& key_id, const InterfaceGetMd5KeyCB& cb ); typedef XorpCallback1<void, const XrlError&>::RefPtr InterfaceDeleteMd5KeyCB; bool send_interface_delete_md5_key( const char* target_name, const string& identifier, const uint32_t& key_id, const InterfaceDeleteMd5KeyCB& cb ); typedef XorpCallback2<void, const XrlError&, const XrlAtomList*>::RefPtr InterfaceListMd5KeysCB; bool send_interface_list_md5_keys( const char* target_name, const string& identifier, const InterfaceListMd5KeysCB& cb ); typedef XorpCallback1<void, const XrlError&>::RefPtr AddNeighborCB; bool send_add_neighbor( const char* target_name, const IPv4& nbr_addr, const bool& dr_eligible, const AddNeighborCB& cb ); typedef XorpCallback2<void, const XrlError&, const bool*>::RefPtr GetNeighborCB; bool send_get_neighbor( const char* target_name, const IPv4& nbr_addr, const GetNeighborCB& cb ); typedef XorpCallback1<void, const XrlError&>::RefPtr DeleteNeighborCB; bool send_delete_neighbor( const char* target_name, const IPv4& nbr_addr, const DeleteNeighborCB& cb ); typedef XorpCallback2<void, const XrlError&, const XrlAtomList*>::RefPtr ListNeighborsCB; bool send_list_neighbors( const char* target_name, const ListNeighborsCB& cb );protected: XrlSender* _sender;private: void unmarshall_set_router_id( const XrlError& e, XrlArgs* a, SetRouterIdCB cb ); void unmarshall_get_router_id( const XrlError& e, XrlArgs* a, GetRouterIdCB cb ); void unmarshall_set_lsdb_limit( const XrlError& e, XrlArgs* a, SetLsdbLimitCB cb ); void unmarshall_get_lsdb_limit( const XrlError& e, XrlArgs* a, GetLsdbLimitCB cb ); void unmarshall_set_mospf( const XrlError& e, XrlArgs* a, SetMospfCB cb
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?