mfea_base.hh

来自「BCAST Implementation for NS2」· HH 代码 · 共 1,093 行 · 第 1/3 页

HH
1,093
字号
	const string&	xrl_sender_name, 	const IPv4&	source_address, 	const IPv4&	group_address) = 0;    virtual XrlCmdError mfea_0_1_delete_mfc6(	// Input values, 	const string&	xrl_sender_name, 	const IPv6&	source_address, 	const IPv6&	group_address) = 0;    /**     *  Pure-virtual function that needs to be implemented to:     *       *  Send a protocol message to the MFEA.     *       *  @param xrl_sender_name the XRL name of the originator of this XRL.     *       *  @param protocol_name the name of the protocol that sends a message.     *       *  @param protocol_id the ID of the protocol that sends a message (both     *  sides must agree on the particular values).     *       *  @param vif_name the name of the vif to send the message.     *       *  @param vif_index the vif index of the vif to send the message.     *       *  @param source_address the address of the sender.     *       *  @param dest_address the destination address.     *       *  @param ip_ttl the TTL of the IP packet to send. If it has a negative     *  value, the TTL will be set by the lower layers.     *       *  @param ip_tos the TOS of the IP packet to send. If it has a negative     *  value, the TOS will be set by the lower layers.     *       *  @param is_router_alert set/reset the IP Router Alert option in the IP     *  packet to send (when applicable).     */    virtual XrlCmdError mfea_0_1_send_protocol_message4(	// Input values, 	const string&	xrl_sender_name, 	const string&	protocol_name, 	const uint32_t&	protocol_id, 	const string&	vif_name, 	const uint32_t&	vif_index, 	const IPv4&	source_address, 	const IPv4&	dest_address, 	const int32_t&	ip_ttl, 	const int32_t&	ip_tos, 	const bool&	is_router_alert, 	const vector<uint8_t>&	protocol_message) = 0;    virtual XrlCmdError mfea_0_1_send_protocol_message6(	// Input values, 	const string&	xrl_sender_name, 	const string&	protocol_name, 	const uint32_t&	protocol_id, 	const string&	vif_name, 	const uint32_t&	vif_index, 	const IPv6&	source_address, 	const IPv6&	dest_address, 	const int32_t&	ip_ttl, 	const int32_t&	ip_tos, 	const bool&	is_router_alert, 	const vector<uint8_t>&	protocol_message) = 0;    /**     *  Pure-virtual function that needs to be implemented to:     *       *  Add/delete a dataflow monitor with the MFEA.     *       *  @param xrl_sender_name the XRL name of the originator of this XRL.     *       *  @param source_address the source address of the dataflow to start/stop     *  monitoring.     *       *  @param group_address the group address of the dataflow to start/stop     *  monitoring.     *       *  @param threshold_interval_sec the number of seconds in the interval to     *  measure.     *       *  @param threshold_interval_usec the number of microseconds in the     *  interval to measure.     *       *  @param threshold_packets the threshold (in number of packets) to     *  compare against.     *       *  @param threshold_bytes the threshold (in number of bytes) to compare     *  against.     *       *  @param is_threshold_in_packets if true, threshold_packets is valid.     *       *  @param is_threshold_in_bytes if true, threshold_bytes is valid.     *       *  @param is_geq_upcall if true, the operation for comparison is ">=".     *       *  @param is_leq_upcall if true, the operation for comparison is "<=".     */    virtual XrlCmdError mfea_0_1_add_dataflow_monitor4(	// Input values, 	const string&	xrl_sender_name, 	const IPv4&	source_address, 	const IPv4&	group_address, 	const uint32_t&	threshold_interval_sec, 	const uint32_t&	threshold_interval_usec, 	const uint32_t&	threshold_packets, 	const uint32_t&	threshold_bytes, 	const bool&	is_threshold_in_packets, 	const bool&	is_threshold_in_bytes, 	const bool&	is_geq_upcall, 	const bool&	is_leq_upcall) = 0;    virtual XrlCmdError mfea_0_1_add_dataflow_monitor6(	// Input values, 	const string&	xrl_sender_name, 	const IPv6&	source_address, 	const IPv6&	group_address, 	const uint32_t&	threshold_interval_sec, 	const uint32_t&	threshold_interval_usec, 	const uint32_t&	threshold_packets, 	const uint32_t&	threshold_bytes, 	const bool&	is_threshold_in_packets, 	const bool&	is_threshold_in_bytes, 	const bool&	is_geq_upcall, 	const bool&	is_leq_upcall) = 0;    virtual XrlCmdError mfea_0_1_delete_dataflow_monitor4(	// Input values, 	const string&	xrl_sender_name, 	const IPv4&	source_address, 	const IPv4&	group_address, 	const uint32_t&	threshold_interval_sec, 	const uint32_t&	threshold_interval_usec, 	const uint32_t&	threshold_packets, 	const uint32_t&	threshold_bytes, 	const bool&	is_threshold_in_packets, 	const bool&	is_threshold_in_bytes, 	const bool&	is_geq_upcall, 	const bool&	is_leq_upcall) = 0;    virtual XrlCmdError mfea_0_1_delete_dataflow_monitor6(	// Input values, 	const string&	xrl_sender_name, 	const IPv6&	source_address, 	const IPv6&	group_address, 	const uint32_t&	threshold_interval_sec, 	const uint32_t&	threshold_interval_usec, 	const uint32_t&	threshold_packets, 	const uint32_t&	threshold_bytes, 	const bool&	is_threshold_in_packets, 	const bool&	is_threshold_in_bytes, 	const bool&	is_geq_upcall, 	const bool&	is_leq_upcall) = 0;    virtual XrlCmdError mfea_0_1_delete_all_dataflow_monitor4(	// Input values, 	const string&	xrl_sender_name, 	const IPv4&	source_address, 	const IPv4&	group_address) = 0;    virtual XrlCmdError mfea_0_1_delete_all_dataflow_monitor6(	// Input values, 	const string&	xrl_sender_name, 	const IPv6&	source_address, 	const IPv6&	group_address) = 0;    /**     *  Pure-virtual function that needs to be implemented to:     *       *  Enable/disable/start/stop a MFEA vif interface.     *       *  @param vif_name the name of the vif to enable/disable/start/stop.     */    virtual XrlCmdError mfea_0_1_enable_vif(	// Input values, 	const string&	vif_name) = 0;    virtual XrlCmdError mfea_0_1_disable_vif(	// Input values, 	const string&	vif_name) = 0;    virtual XrlCmdError mfea_0_1_start_vif(	// Input values, 	const string&	vif_name) = 0;    virtual XrlCmdError mfea_0_1_stop_vif(	// Input values, 	const string&	vif_name) = 0;    /**     *  Pure-virtual function that needs to be implemented to:     *       *  Enable/disable/start/stop all MFEA vif interfaces.     */    virtual XrlCmdError mfea_0_1_enable_all_vifs() = 0;    virtual XrlCmdError mfea_0_1_disable_all_vifs() = 0;    virtual XrlCmdError mfea_0_1_start_all_vifs() = 0;    virtual XrlCmdError mfea_0_1_stop_all_vifs() = 0;    /**     *  Pure-virtual function that needs to be implemented to:     *       *  Enable/disable/start/stop the MFEA and the MFEA CLI access.     */    virtual XrlCmdError mfea_0_1_enable_mfea() = 0;    virtual XrlCmdError mfea_0_1_disable_mfea() = 0;    virtual XrlCmdError mfea_0_1_enable_cli() = 0;    virtual XrlCmdError mfea_0_1_disable_cli() = 0;    virtual XrlCmdError mfea_0_1_start_mfea() = 0;    virtual XrlCmdError mfea_0_1_stop_mfea() = 0;    virtual XrlCmdError mfea_0_1_start_cli() = 0;    virtual XrlCmdError mfea_0_1_stop_cli() = 0;    /**     *  Pure-virtual function that needs to be implemented to:     *       *  Enable/disable the MFEA trace log.     */    virtual XrlCmdError mfea_0_1_enable_log_trace() = 0;    virtual XrlCmdError mfea_0_1_disable_log_trace() = 0;    /**     *  Pure-virtual function that needs to be implemented to:     *       *  Configure MFEA MRIB-related parameters. The 'set_foo' XRLs set the     *  particular values. The 'reset_foo' XRLs reset the metrics to their     *  default values.     *       *  @param metric_preference the MRIB metric preference.     */    virtual XrlCmdError mfea_0_1_get_mrib_table_default_metric_preference(	// Output values, 	uint32_t&	metric_preference) = 0;    virtual XrlCmdError mfea_0_1_set_mrib_table_default_metric_preference(	// Input values, 	const uint32_t&	metric_preference) = 0;    virtual XrlCmdError mfea_0_1_reset_mrib_table_default_metric_preference() = 0;    virtual XrlCmdError mfea_0_1_get_mrib_table_default_metric(	// Output values, 	uint32_t&	metric) = 0;    virtual XrlCmdError mfea_0_1_set_mrib_table_default_metric(	// Input values, 	const uint32_t&	metric) = 0;    virtual XrlCmdError mfea_0_1_reset_mrib_table_default_metric() = 0;    virtual XrlCmdError fea_ifmgr_client_0_1_interface_update(	// Input values, 	const string&	ifname, 	const uint32_t&	event) = 0;    virtual XrlCmdError fea_ifmgr_client_0_1_vif_update(	// Input values, 	const string&	ifname, 	const string&	vifname, 	const uint32_t&	event) = 0;    virtual XrlCmdError fea_ifmgr_client_0_1_vifaddr4_update(	// Input values, 	const string&	ifname, 	const string&	vifname, 	const IPv4&	addr, 	const uint32_t&	event) = 0;    virtual XrlCmdError fea_ifmgr_client_0_1_vifaddr6_update(	// Input values, 	const string&	ifname, 	const string&	vifname, 	const IPv6&	addr, 	const uint32_t&	event) = 0;private:    const XrlCmdError handle_common_0_1_get_target_name(const XrlArgs& in, XrlArgs* out);    const XrlCmdError handle_common_0_1_get_version(const XrlArgs& in, XrlArgs* out);    const XrlCmdError handle_common_0_1_get_status(const XrlArgs& in, XrlArgs* out);    const XrlCmdError handle_common_0_1_shutdown(const XrlArgs& in, XrlArgs* out);    const XrlCmdError handle_cli_processor_0_1_process_command(const XrlArgs& in, XrlArgs* out);    const XrlCmdError handle_mfea_0_1_have_multicast_routing4(const XrlArgs& in, XrlArgs* out);    const XrlCmdError handle_mfea_0_1_have_multicast_routing6(const XrlArgs& in, XrlArgs* out);    const XrlCmdError handle_mfea_0_1_add_protocol4(const XrlArgs& in, XrlArgs* out);    const XrlCmdError handle_mfea_0_1_add_protocol6(const XrlArgs& in, XrlArgs* out);    const XrlCmdError handle_mfea_0_1_delete_protocol4(const XrlArgs& in, XrlArgs* out);    const XrlCmdError handle_mfea_0_1_delete_protocol6(const XrlArgs& in, XrlArgs* out);    const XrlCmdError handle_mfea_0_1_start_protocol_vif4(const XrlArgs& in, XrlArgs* out);    const XrlCmdError handle_mfea_0_1_start_protocol_vif6(const XrlArgs& in, XrlArgs* out);    const XrlCmdError handle_mfea_0_1_stop_protocol_vif4(const XrlArgs& in, XrlArgs* out);    const XrlCmdError handle_mfea_0_1_stop_protocol_vif6(const XrlArgs& in, XrlArgs* out);    const XrlCmdError handle_mfea_0_1_allow_signal_messages(const XrlArgs& in, XrlArgs* out);    const XrlCmdError handle_mfea_0_1_allow_mrib_messages(const XrlArgs& in, XrlArgs* out);    const XrlCmdError handle_mfea_0_1_join_multicast_group4(const XrlArgs& in, XrlArgs* out);    const XrlCmdError handle_mfea_0_1_join_multicast_group6(const XrlArgs& in, XrlArgs* out);    const XrlCmdError handle_mfea_0_1_leave_multicast_group4(const XrlArgs& in, XrlArgs* out);    const XrlCmdError handle_mfea_0_1_leave_multicast_group6(const XrlArgs& in, XrlArgs* out);    const XrlCmdError handle_mfea_0_1_add_mfc4(const XrlArgs& in, XrlArgs* out);    const XrlCmdError handle_mfea_0_1_add_mfc6(const XrlArgs& in, XrlArgs* out);    const XrlCmdError handle_mfea_0_1_delete_mfc4(const XrlArgs& in, XrlArgs* out);    const XrlCmdError handle_mfea_0_1_delete_mfc6(const XrlArgs& in, XrlArgs* out);    const XrlCmdError handle_mfea_0_1_send_protocol_message4(const XrlArgs& in, XrlArgs* out);    const XrlCmdError handle_mfea_0_1_send_protocol_message6(const XrlArgs& in, XrlArgs* out);    const XrlCmdError handle_mfea_0_1_add_dataflow_monitor4(const XrlArgs& in, XrlArgs* out);    const XrlCmdError handle_mfea_0_1_add_dataflow_monitor6(const XrlArgs& in, XrlArgs* out);    const XrlCmdError handle_mfea_0_1_delete_dataflow_monitor4(const XrlArgs& in, XrlArgs* out);    const XrlCmdError handle_mfea_0_1_delete_dataflow_monitor6(const XrlArgs& in, XrlArgs* out);    const XrlCmdError handle_mfea_0_1_delete_all_dataflow_monitor4(const XrlArgs& in, XrlArgs* out);    const XrlCmdError handle_mfea_0_1_delete_all_dataflow_monitor6(const XrlArgs& in, XrlArgs* out);    const XrlCmdError handle_mfea_0_1_enable_vif(const XrlArgs& in, XrlArgs* out);    const XrlCmdError handle_mfea_0_1_disable_vif(const XrlArgs& in, XrlArgs* out);    const XrlCmdError handle_mfea_0_1_start_vif(const XrlArgs& in, XrlArgs* out);    const XrlCmdError handle_mfea_0_1_stop_vif(const XrlArgs& in, XrlArgs* out);    const XrlCmdError handle_mfea_0_1_enable_all_vifs(const XrlArgs& in, XrlArgs* out);

⌨️ 快捷键说明

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