fea_base.hh
来自「BCAST Implementation for NS2」· HH 代码 · 共 1,668 行 · 第 1/5 页
HH
1,668 行
*/ 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: * * Send a packet on a raw socket. */ virtual XrlCmdError raw_packet_0_1_send4( // Input values, const IPv4& src_address, const IPv4& dst_address, const string& vif_name, const uint32_t& proto, const uint32_t& ttl, const uint32_t& tos, const vector<uint8_t>& options, const vector<uint8_t>& payload) = 0; /** * Pure-virtual function that needs to be implemented to: * * Send raw packet. Checksum is computed and applied before transmission. * All the fields within the IPv4 header must be in network order. */ virtual XrlCmdError raw_packet_0_1_send_raw4( // Input values, const string& vif_name, const vector<uint8_t>& packet) = 0; /** * Pure-virtual function that needs to be implemented to: * * Register to receive packets. The receiver is expected to support * raw_socket_client/0.1 interface. */ virtual XrlCmdError raw_packet_0_1_register_vif_receiver( // Input values, const string& router_name, const string& if_name, const string& vif_name, const uint32_t& proto) = 0; /** * Pure-virtual function that needs to be implemented to: * * Unregister stop receiving packets. * * @param proto Protocol number that the receiver is interested in. */ virtual XrlCmdError raw_packet_0_1_unregister_vif_receiver( // Input values, const string& router_name, const string& if_name, const string& vif_name, const uint32_t& proto) = 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);
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?