ospf_base.hh
来自「BCAST Implementation for NS2」· HH 代码 · 共 1,445 行 · 第 1/4 页
HH
1,445 行
/** * Pure-virtual function that needs to be implemented to: * * Return list of host identifiers for area identified by area_id. Two * lists are returned, the nth elements in each list comprise the tuple * (network,netmask) that uniquely identifies the host within the area. */ virtual XrlCmdError ospf_0_1_list_hosts( // Input values, const uint32_t& area_id, // Output values, XrlAtomList& networks, XrlAtomList& netmasks) = 0; virtual XrlCmdError ospf_0_1_add_vlink( // Input values, const uint32_t& transit_area, const uint32_t& neighbor_id) = 0; virtual XrlCmdError ospf_0_1_delete_vlink( // Input values, const uint32_t& transit_area, const uint32_t& neighbor_id) = 0; virtual XrlCmdError ospf_0_1_vlink_set_transmit_delay( // Input values, const uint32_t& transit_area, const uint32_t& neighbor_id, const uint32_t& delay_secs) = 0; virtual XrlCmdError ospf_0_1_vlink_get_transmit_delay( // Input values, const uint32_t& transit_area, const uint32_t& neighbor_id, // Output values, uint32_t& delay_secs) = 0; virtual XrlCmdError ospf_0_1_vlink_set_retransmit_interval( // Input values, const uint32_t& transit_area, const uint32_t& neighbor_id, const uint32_t& interval_secs) = 0; virtual XrlCmdError ospf_0_1_vlink_get_retransmit_interval( // Input values, const uint32_t& transit_area, const uint32_t& neighbor_id, // Output values, uint32_t& interval_secs) = 0; virtual XrlCmdError ospf_0_1_vlink_set_hello_interval( // Input values, const uint32_t& transit_area, const uint32_t& neighbor_id, const uint32_t& interval_secs) = 0; virtual XrlCmdError ospf_0_1_vlink_get_hello_interval( // Input values, const uint32_t& transit_area, const uint32_t& neighbor_id, // Output values, uint32_t& interval_secs) = 0; virtual XrlCmdError ospf_0_1_vlink_set_router_dead_interval( // Input values, const uint32_t& transit_area, const uint32_t& neighbor_id, const uint32_t& interval_secs) = 0; virtual XrlCmdError ospf_0_1_vlink_get_router_dead_interval( // Input values, const uint32_t& transit_area, const uint32_t& neighbor_id, // Output values, uint32_t& interval_secs) = 0; /** * Pure-virtual function that needs to be implemented to: * * * @param type is one of "none", "cleartext", "md5" */ virtual XrlCmdError ospf_0_1_vlink_set_authentication( // Input values, const uint32_t& transit_area, const uint32_t& neighbor_id, const string& type, const string& key) = 0; virtual XrlCmdError ospf_0_1_vlink_get_authentication( // Input values, const uint32_t& transit_area, const uint32_t& neighbor_id, // Output values, string& type, string& key) = 0; /** * Pure-virtual function that needs to be implemented to: * * Return list of neighbour id's (unsigned 32 bit values) */ virtual XrlCmdError ospf_0_1_list_vlinks( // Input values, const uint32_t& transit_id, // Output values, XrlAtomList& neighbor_ids) = 0; virtual XrlCmdError ospf_0_1_add_or_configure_external_route( // Input values, const IPv4Net& network, const IPv4& gateway, const uint32_t& type, const uint32_t& cost, const bool& multicast, const uint32_t& external_route_tag) = 0; virtual XrlCmdError ospf_0_1_delete_external_route( // Input values, const IPv4Net& network, const IPv4& gateway) = 0; virtual XrlCmdError ospf_0_1_query_external_route( // Input values, const IPv4Net& network, const IPv4& gateway, // Output values, uint32_t& type, uint32_t& cost, bool& multicast, uint32_t& external_route_tag) = 0; virtual XrlCmdError ospf_0_1_list_external_routes( // Input values, const IPv4Net& network, // Output values, XrlAtomList& gateways) = 0; virtual XrlCmdError ospf_0_1_add_interface( // Input values, 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) = 0; virtual XrlCmdError ospf_0_1_interface_set_if_index( // Input values, const string& identifier, const uint32_t& index) = 0; virtual XrlCmdError ospf_0_1_interface_get_if_index( // Input values, const string& identifier, // Output values, uint32_t& index) = 0; virtual XrlCmdError ospf_0_1_interface_set_area_id( // Input values, const string& identifier, const uint32_t& area_id) = 0; virtual XrlCmdError ospf_0_1_interface_get_area_id( // Input values, const string& identifier, // Output values, uint32_t& area_id) = 0; virtual XrlCmdError ospf_0_1_interface_set_cost( // Input values, const string& identifier, const uint32_t& cost) = 0; virtual XrlCmdError ospf_0_1_interface_get_cost( // Input values, const string& identifier, // Output values, uint32_t& cost) = 0; virtual XrlCmdError ospf_0_1_interface_set_mtu( // Input values, const string& identifier, const uint32_t& mtu) = 0; virtual XrlCmdError ospf_0_1_interface_get_mtu( // Input values, const string& identifier, // Output values, uint32_t& mtu) = 0; virtual XrlCmdError ospf_0_1_interface_set_type( // Input values, const string& identifier, const string& type) = 0; virtual XrlCmdError ospf_0_1_interface_get_type( // Input values, const string& identifier, // Output values, string& type) = 0; virtual XrlCmdError ospf_0_1_interface_set_dr_priority( // Input values, const string& identifier, const uint32_t& dr_priority) = 0; virtual XrlCmdError ospf_0_1_interface_get_dr_priority( // Input values, const string& identifier, // Output values, uint32_t& dr_priority) = 0; virtual XrlCmdError ospf_0_1_interface_set_transit_delay( // Input values, const string& identifier, const uint32_t& delay_secs) = 0; virtual XrlCmdError ospf_0_1_interface_get_transit_delay( // Input values, const string& identifier, // Output values, uint32_t& delay_secs) = 0; virtual XrlCmdError ospf_0_1_interface_set_retransmit_interval( // Input values, const string& identifier, const uint32_t& interval_secs) = 0; virtual XrlCmdError ospf_0_1_interface_get_retransmit_interval( // Input values, const string& identifier, // Output values, uint32_t& interval_secs) = 0; virtual XrlCmdError ospf_0_1_interface_set_router_dead_interval( // Input values, const string& identifier, const uint32_t& interval_secs) = 0; virtual XrlCmdError ospf_0_1_interface_get_router_dead_interval( // Input values, const string& identifier, // Output values, uint32_t& interval_secs) = 0; virtual XrlCmdError ospf_0_1_interface_set_poll_interval( // Input values, const string& identifier, const uint32_t& interval_secs) = 0; virtual XrlCmdError ospf_0_1_interface_get_poll_interval( // Input values, const string& identifier, // Output values, uint32_t& interval_secs) = 0; virtual XrlCmdError ospf_0_1_interface_set_authentication( // Input values, const string& identifier, const string& type, const string& key) = 0; virtual XrlCmdError ospf_0_1_interface_get_authentication( // Input values, const string& identifier, // Output values, string& type, string& key) = 0; /** * Pure-virtual function that needs to be implemented to: * * Set state of multicast forwarding on interface. * * @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. */ virtual XrlCmdError ospf_0_1_interface_set_multicast_forwarding( // Input values, const string& identifier, const string& type) = 0; virtual XrlCmdError ospf_0_1_interface_get_multicast_forwarding( // Input values, const string& identifier, // Output values, string& type) = 0; virtual XrlCmdError ospf_0_1_interface_set_on_demand( // Input values, const string& identifier, const bool& on_demand) = 0; virtual XrlCmdError ospf_0_1_interface_get_on_demand( // Input values, const string& identifier, // Output values, bool& on_demand) = 0; virtual XrlCmdError ospf_0_1_interface_set_passive( // Input values, const string& identifier, const bool& passive) = 0; virtual XrlCmdError ospf_0_1_interface_get_passive( // Input values, const string& identifier, // Output values, bool& passive) = 0; virtual XrlCmdError ospf_0_1_interface_set_igmp( // Input values, const string& identifier, const bool& enabled) = 0; virtual XrlCmdError ospf_0_1_interface_get_igmp( // Input values, const string& identifier, // Output values, bool& enabled) = 0; virtual XrlCmdError ospf_0_1_delete_interface( // Input values, const string& identifier) = 0; virtual XrlCmdError ospf_0_1_list_interfaces( // Output values, XrlAtomList& identifiers) = 0; /** * Pure-virtual function that needs to be implemented 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 identifier interface key is to be used for. * * @param key_id a value between 1-255 that identifies the key. */ virtual XrlCmdError ospf_0_1_interface_add_md5_key( // Input values, 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) = 0; virtual XrlCmdError ospf_0_1_interface_get_md5_key( // Input values, const string& identifier, const uint32_t& key_id, // Output values,
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?