ospf_base.hh
来自「BCAST Implementation for NS2」· HH 代码 · 共 1,445 行 · 第 1/4 页
HH
1,445 行
/* * Copyright (c) 2001-2003 International Computer Science Institute * See LICENSE file for licensing, conditions, and warranties on use. * * DO NOT EDIT THIS FILE - IT IS PROGRAMMATICALLY GENERATED * * Generated by 'tgt-gen'. * * $XORP: xorp/xrl/targets/ospf_base.hh,v 1.11 2003/06/19 00:44:47 hodson Exp $ */#ifndef __XRL_INTERFACES_OSPF_BASE_HH__#define __XRL_INTERFACES_OSPF_BASE_HH__#undef XORP_LIBRARY_NAME#define XORP_LIBRARY_NAME "XrlOspfTarget"#include "libxorp/xlog.h"#include "libxipc/xrl_cmd_map.hh"class XrlOspfTargetBase {protected: XrlCmdMap* _cmds;public: XrlOspfTargetBase(XrlCmdMap* cmds) : _cmds(cmds) { add_handlers(); } virtual ~XrlOspfTargetBase() { remove_handlers(); } inline const string& name() const { return _cmds->name(); } inline const char* version() const { return "ospf/0.0"; }protected: /** * Pure-virtual function that needs to be implemented to: * * Get name of Xrl Target */ virtual XrlCmdError common_0_1_get_target_name( // Output values, string& name) = 0; /** * Pure-virtual function that needs to be implemented to: * * Get version string from Xrl Target */ virtual XrlCmdError common_0_1_get_version( // Output values, string& version) = 0; /** * Pure-virtual function that needs to be implemented to: * * Get status of Xrl Target */ virtual XrlCmdError common_0_1_get_status( // Output values, uint32_t& status, string& reason) = 0; /** * Pure-virtual function that needs to be implemented to: * * Request clean shutdown of Xrl Target */ virtual XrlCmdError common_0_1_shutdown() = 0; /** * Pure-virtual function that needs to be implemented to: * * Set router id */ virtual XrlCmdError ospf_0_1_set_router_id( // Input values, const uint32_t& id) = 0; /** * Pure-virtual function that needs to be implemented to: * * Get router id */ virtual XrlCmdError ospf_0_1_get_router_id( // Output values, uint32_t& id) = 0; /** * Pure-virtual function that needs to be implemented to: * * Set maximum number of AS-external LSA's */ virtual XrlCmdError ospf_0_1_set_lsdb_limit( // Input values, const int32_t& limit) = 0; virtual XrlCmdError ospf_0_1_get_lsdb_limit( // Output values, int32_t& limit) = 0; /** * Pure-virtual function that needs to be implemented to: * * Enable / disable MOSPF */ virtual XrlCmdError ospf_0_1_set_mospf( // Input values, const bool& enabled) = 0; virtual XrlCmdError ospf_0_1_get_mospf( // Output values, bool& enabled) = 0; /** * Pure-virtual function that needs to be implemented to: * * Enable / Disable Inter-area multicast */ virtual XrlCmdError ospf_0_1_set_interarea_mc( // Input values, const bool& enabled) = 0; virtual XrlCmdError ospf_0_1_get_interarea_mc( // Output values, bool& enabled) = 0; /** * Pure-virtual function that needs to be implemented to: * * Set time to exit overflow state */ virtual XrlCmdError ospf_0_1_set_overflow_interval( // Input values, const int32_t& ovfl_int) = 0; virtual XrlCmdError ospf_0_1_get_overflow_interval( // Output values, int32_t& ovfl_int) = 0; /** * Pure-virtual function that needs to be implemented to: * * Set flood rate - self orig per second */ virtual XrlCmdError ospf_0_1_set_flood_rate( // Input values, const int32_t& rate) = 0; virtual XrlCmdError ospf_0_1_get_flood_rate( // Output values, int32_t& rate) = 0; /** * Pure-virtual function that needs to be implemented to: * * Set back-to-back retransmissions */ virtual XrlCmdError ospf_0_1_set_max_rxmt_window( // Input values, const uint32_t& window) = 0; virtual XrlCmdError ospf_0_1_get_max_rxmt_window( // Output values, uint32_t& window) = 0; /** * Pure-virtual function that needs to be implemented to: * * Set maximum simultaneous DB exchanges */ virtual XrlCmdError ospf_0_1_set_max_dds( // Input values, const uint32_t& max_dds) = 0; virtual XrlCmdError ospf_0_1_get_max_dds( // Output values, uint32_t& max_dds) = 0; /** * Pure-virtual function that needs to be implemented to: * * Set rate to refresh DoNotAge LSAs */ virtual XrlCmdError ospf_0_1_set_lsa_refresh_rate( // Input values, const uint32_t& rate) = 0; virtual XrlCmdError ospf_0_1_get_lsa_refresh_rate( // Output values, uint32_t& rate) = 0; /** * Pure-virtual function that needs to be implemented to: * * Set the maximum number of point-to-point links that will become * adjacent to a particular neighbor. If there is no limit then value is * zero. */ virtual XrlCmdError ospf_0_1_set_p2p_adj_limit( // Input values, const uint32_t& max_adj) = 0; virtual XrlCmdError ospf_0_1_get_p2p_adj_limit( // Output values, uint32_t& max_adj) = 0; /** * Pure-virtual function that needs to be implemented to: * * Set randomized LSA refreshes */ virtual XrlCmdError ospf_0_1_set_random_refresh( // Input values, const bool& enabled) = 0; virtual XrlCmdError ospf_0_1_get_random_refresh( // Output values, bool& enabled) = 0; /** * Pure-virtual function that needs to be implemented to: * * Create area */ virtual XrlCmdError ospf_0_1_add_or_configure_area( // Input values, const uint32_t& area_id, const bool& is_stub, const uint32_t& default_cost, const bool& import_summary_routes) = 0; /** * Pure-virtual function that needs to be implemented to: * * Delete area */ virtual XrlCmdError ospf_0_1_delete_area( // Input values, const uint32_t& area_id) = 0; /** * Pure-virtual function that needs to be implemented to: * * Query area options */ virtual XrlCmdError ospf_0_1_query_area( // Input values, const uint32_t& area_id, // Output values, bool& is_stub, uint32_t& default_cost, bool& import_summary_routes) = 0; /** * Pure-virtual function that needs to be implemented to: * * * @param area_ids list of value area_ids. Each id is a u32. */ virtual XrlCmdError ospf_0_1_list_area_ids( // Output values, XrlAtomList& area_ids) = 0; /** * Pure-virtual function that needs to be implemented to: * * Add or configure aggregate. * * @param area_id id of area aggregate belongs to. * * @param network network identifier. * * @param netmask netmask identifier. * * @param suppress_advertisement of aggregate. */ virtual XrlCmdError ospf_0_1_add_or_configure_aggregate( // Input values, const uint32_t& area_id, const IPv4& network, const IPv4& netmask, const bool& suppress_advertisement) = 0; /** * Pure-virtual function that needs to be implemented to: * * Delete aggregate identified by area_id, network, and netmask */ virtual XrlCmdError ospf_0_1_delete_aggregate( // Input values, const uint32_t& area_id, const IPv4& network, const IPv4& netmask) = 0; /** * Pure-virtual function that needs to be implemented to: * * Query aggregate identified by area_id, network, and netmask */ virtual XrlCmdError ospf_0_1_query_aggregate( // Input values, const uint32_t& area_id, const IPv4& network, const IPv4& netmask, // Output values, bool& suppress_advertisement) = 0; /** * Pure-virtual function that needs to be implemented to: * * Return list of aggregate 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 aggregate within * the area. */ virtual XrlCmdError ospf_0_1_list_aggregates( // Input values, const uint32_t& area_id, // Output values, XrlAtomList& networks, XrlAtomList& netmasks) = 0; /** * Pure-virtual function that needs to be implemented to: * * Add or configure host routes. * * @param area_id host is to be advertised in. * * @param cost metric associated with host (0-65535). */ virtual XrlCmdError ospf_0_1_add_or_configure_host( // Input values, const IPv4& network, const IPv4& netmask, const uint32_t& area_id, const uint32_t& cost) = 0; /** * Pure-virtual function that needs to be implemented to: * * Delete host identified by network and netmask */ virtual XrlCmdError ospf_0_1_delete_host( // Input values, const IPv4& network, const IPv4& netmask, const uint32_t& area_id) = 0; /** * Pure-virtual function that needs to be implemented to: * * Query host identified by network and netmask */ virtual XrlCmdError ospf_0_1_query_host( // Input values, const IPv4& network, const IPv4& netmask, const uint32_t& area_id, // Output values, uint32_t& cost) = 0;
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?