pim_base.hh
来自「BCAST Implementation for NS2」· HH 代码 · 共 2,220 行 · 第 1/5 页
HH
2,220 行
* @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_client_0_1_recv_dataflow_signal4( // 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& measured_interval_sec, const uint32_t& measured_interval_usec, const uint32_t& threshold_packets, const uint32_t& threshold_bytes, const uint32_t& measured_packets, const uint32_t& measured_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_client_0_1_recv_dataflow_signal6( // 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& measured_interval_sec, const uint32_t& measured_interval_usec, const uint32_t& threshold_packets, const uint32_t& threshold_bytes, const uint32_t& measured_packets, const uint32_t& measured_bytes, const bool& is_threshold_in_packets, const bool& is_threshold_in_bytes, const bool& is_geq_upcall, const bool& is_leq_upcall) = 0; /** * Pure-virtual function that needs to be implemented to: * * Start transaction. * * @param tid the transaction ID to use for this transaction. */ virtual XrlCmdError fti_0_2_start_transaction( // Output values, uint32_t& tid) = 0; /** * Pure-virtual function that needs to be implemented to: * * Commit transaction. * * @param tid the transaction ID of this transaction. */ virtual XrlCmdError fti_0_2_commit_transaction( // Input values, const uint32_t& tid) = 0; /** * Pure-virtual function that needs to be implemented to: * * Abort transaction. * * @param tid the transaction ID of this transaction. */ virtual XrlCmdError fti_0_2_abort_transaction( // Input values, const uint32_t& tid) = 0; /** * Pure-virtual function that needs to be implemented to: * * Add a routing entry. * * @param tid the transaction ID of this transaction. * * @param dst the destination subnet address of the entry. * * @param gateway the address of the next-hop router toward dst. * * @param ifname the name of the physical interface toward dst. * * @param vifname the name of the virtual interface toward dst. * * @param metric the routing metric toward dst. * * @param admin_distance the administratively defined distance toward dst. * * @param protocol_origin the name of the protocol that originated this * entry. */ virtual XrlCmdError fti_0_2_add_entry4( // Input values, const uint32_t& tid, const IPv4Net& dst, const IPv4& gateway, const string& ifname, const string& vifname, const uint32_t& metric, const uint32_t& admin_distance, const string& protocol_origin) = 0; /** * Pure-virtual function that needs to be implemented to: * * Add a routing entry. * * @param tid the transaction ID of this transaction. * * @param dst the destination subnet address of the entry. * * @param gateway the address of the next-hop router toward dst. * * @param ifname the name of the physical interface toward dst. * * @param vifname the name of the virtual interface toward dst. * * @param metric the routing metric toward dst. * * @param admin_distance the administratively defined distance toward dst. * * @param protocol_origin the name of the protocol that originated this * entry. */ virtual XrlCmdError fti_0_2_add_entry6( // Input values, const uint32_t& tid, const IPv6Net& dst, const IPv6& gateway, const string& ifname, const string& vifname, const uint32_t& metric, const uint32_t& admin_distance, const string& protocol_origin) = 0; /** * Pure-virtual function that needs to be implemented to: * * Delete a routing entry. * * @param tid the transaction ID of this transaction. * * @param dst the destination subnet address of the entry. */ virtual XrlCmdError fti_0_2_delete_entry4( // Input values, const uint32_t& tid, const IPv4Net& dst) = 0; /** * Pure-virtual function that needs to be implemented to: * * Delete a routing entry. * * @param tid the transaction ID of this transaction. * * @param dst the destination subnet address of the entry. */ virtual XrlCmdError fti_0_2_delete_entry6( // Input values, const uint32_t& tid, const IPv6Net& dst) = 0; /** * Pure-virtual function that needs to be implemented to: * * Delete all routing entries for all address families. * * @param tid the transaction ID of this transaction. */ virtual XrlCmdError fti_0_2_delete_all_entries( // Input values, const uint32_t& tid) = 0; /** * Pure-virtual function that needs to be implemented to: * * Delete all routing entries for the IPv4 address family. * * @param tid the transaction ID of this transaction. */ virtual XrlCmdError fti_0_2_delete_all_entries4( // Input values, const uint32_t& tid) = 0; /** * Pure-virtual function that needs to be implemented to: * * Delete all routing entries for the IPv6 address family. * * @param tid the transaction ID of this transaction. */ virtual XrlCmdError fti_0_2_delete_all_entries6( // Input values, const uint32_t& tid) = 0; /** * Pure-virtual function that needs to be implemented to: * * Lookup a route for a destination host address. * * @param dst the destination host address to lookup. * * @param gateway the address of the next-hop router toward dst. * * @param ifname the name of the physical interface toward dst. * * @param vifname the name of the virtual interface toward dst. * * @param metric the routing metric toward dst. * * @param admin_distance the administratively defined distance toward dst. * * @param protocol_origin the name of the protocol that originated this * entry. */ virtual XrlCmdError fti_0_2_lookup_route4( // Input values, const IPv4& dst, // Output values, IPv4Net& netmask, IPv4& gateway, string& ifname, string& vifname, uint32_t& metric, uint32_t& admin_distance, string& protocol_origin) = 0; /** * Pure-virtual function that needs to be implemented to: * * Lookup a route for a destination host address. * * @param dst the destination host address to lookup. * * @param gateway the address of the next-hop router toward dst. * * @param ifname the name of the physical interface toward dst. * * @param vifname the name of the virtual interface toward dst. * * @param metric the routing metric toward dst. * * @param admin_distance the administratively defined distance toward dst. * * @param protocol_origin the name of the protocol that originated this * entry. */ virtual XrlCmdError fti_0_2_lookup_route6( // Input values, const IPv6& dst, // Output values, IPv6Net& netmask, IPv6& gateway, string& ifname, string& vifname, uint32_t& metric, uint32_t& admin_distance, string& protocol_origin) = 0; /** * Pure-virtual function that needs to be implemented to: * * Lookup a route for a destination subnet address. * * @param dst the destination subnet address to lookup. * * @param gateway the address of the next-hop router toward dst. * * @param ifname the name of the physical interface toward dst. * * @param vifname the name of the virtual interface toward dst. * * @param metric the routing metric toward dst. * * @param admin_distance the administratively defined distance toward dst. * * @param protocol_origin the name of the protocol that originated this * entry. */ virtual XrlCmdError fti_0_2_lookup_entry4( // Input values, const IPv4Net& dst, // Output values, IPv4& gateway, string& ifname, string& vifname, uint32_t& metric, uint32_t& admin_distance, string& protocol_origin) = 0; /** * Pure-virtual function that needs to be implemented to: * * Lookup a route for a destination subnet address. * * @param dst the destination subnet address to lookup. * * @param gateway the address of the next-hop router toward dst. * * @param ifname the name of the physical interface toward dst. * * @param vifname the name of the virtual interface toward dst. * * @param metric the routing metric toward dst. * * @param admin_distance the administratively defined distance toward dst. * * @param protocol_origin the name of the protocol that originated this * entry. */ virtual XrlCmdError fti_0_2_lookup_entry6( // Input values, const IPv6Net& dst, // Output values, IPv6& gateway, string& ifname, string& vifname, uint32_t& metric, uint32_t& admin_distance, string& protocol_origin) = 0; /** * Pure-virtual function that needs to be implemented to: * * Test if the underlying system supports IPv4. * * @param result true if the underlying system supports IPv4, otherwise * false. */ virtual XrlCmdError fti_0_2_have_ipv4( // Output values, bool& result) = 0; /** * Pure-virtual function that needs to be implemented to: * * Test if the underlying system supports IPv6. * * @param result true if the underlying system supports IPv4, otherwise * false. */ virtual XrlCmdError fti_0_2_have_ipv6( // Output values, bool& result) = 0; /** * Pure-virtual function that needs to be implemented to: * * Test whether the IPv4 unicast forwarding engine is enabled or disabled * to forward packets. * * @param enabled if true, then the IPv4 unicast forwarding is enabled, * otherwise is disabled. */ virtual XrlCmdError fti_0_2_get_unicast_forwarding_enabled4( // Output values, bool& enabled) = 0; /** * Pure-virtual function that needs to be implemented to: * * Test whether the IPv6 unicast forwarding engine is enabled or disabled * to forward packets. * * @param enabled if true, then the IPv6 unicast forwarding is enabled, * otherwise is disabled. */ virtual XrlCmdError fti_0_2_get_unicast_forwarding_enabled6( // Output values, bool& enabled) = 0; /** * Pure-virtual function that needs to be implemented to: * * Set the IPv4 unicast forwarding engine to enable or disable forwarding * of packets. * * @param enabled if true, then enable IPv4 unicast forwarding, otherwise * disable it. */ virtual XrlCmdError fti_0_2_set_unicast_forwarding_enabled4( // Input values, const bool& enabled) = 0; /** * Pure-virtual function that needs to be implemented to: * * Set the IPv6 unicast forwarding engine to enable or disable forwarding * of packets. * * @param enabled if true, then enable IPv6 unicast forwarding, otherwise * disable it. */ virtual XrlCmdError fti_0_2_set_unicast_forwarding_enabled6( // Input values, const bool& enabled) = 0; /** * Pure-virtual function that needs to be implemented to: * * Add/delete membership information. * * @param xrl_sender_name the XRL name of the originator of this XRL. * * @param vif_name the name of the new vif. * * @param vif_index the index of the new vif. * * @param source the source address that has been joined/left. * * @param group the group address that has been joined/left. */ virtual XrlCmdError mld6igmp_client_0_1_add_membership4( // Input values, const string& xrl_sender_name, const string& vif_name, const uint32_t& vif_index, const IPv4& source, const IPv4& group) = 0; virtual XrlCmdError mld6igmp_client_0_1_add_membership6( // Input values, const string& xrl_sender_name, const string& vif_name, const uint32_t& vif_index, const IPv6& source, const IPv6& group) = 0; virtual XrlCmdError mld6igmp_client_0_1_delete_membership4( // Input values, const string& xrl_sender_name, const string& vif_name, const uint32_t& vif_index, const IPv4& source, const IPv4& group) = 0; virtual XrlCmdError mld6igmp_client_0_1_delete_membership6(
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?