⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 ripng_base.hh

📁 xorp源码hg
💻 HH
📖 第 1 页 / 共 2 页
字号:
/* * Copyright (c) 2001-2007 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/ripng_base.hh,v 1.29 2007/02/16 22:47:56 pavlin Exp $ */#ifndef __XRL_TARGETS_RIPNG_BASE_HH__#define __XRL_TARGETS_RIPNG_BASE_HH__#undef XORP_LIBRARY_NAME#define XORP_LIBRARY_NAME "XrlRipngTarget"#include "libxorp/xlog.h"#include "libxipc/xrl_cmd_map.hh"class XrlRipngTargetBase {protected:    XrlCmdMap* _cmds;public:    /**     * Constructor.     *     * @param cmds an XrlCmdMap that the commands associated with the target     *		   should be added to.  This is typically the XrlRouter     *		   associated with the target.     */    XrlRipngTargetBase(XrlCmdMap* cmds = 0);    /**     * Destructor.     *     * Dissociates instance commands from command map.     */    virtual ~XrlRipngTargetBase();    /**     * Set command map.     *     * @param cmds pointer to command map to associate commands with.  This     * argument is typically a pointer to the XrlRouter associated with the     * target.     *     * @return true on success, false if cmds is null or a command map has     * already been supplied.     */    bool set_command_map(XrlCmdMap* cmds);    /**     * Get Xrl instance name associated with command map.     */    inline const string& name() const { return _cmds->name(); }    /**     * Get version string of instance.     */    inline const char* version() const { return "ripng/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:     *     *  Announce target birth to observer.     *     *  @param target_class the target class name.     *     *  @param target_instance the target instance name.     */    virtual XrlCmdError finder_event_observer_0_1_xrl_target_birth(	// Input values,	const string&	target_class,	const string&	target_instance) = 0;    /**     *  Pure-virtual function that needs to be implemented to:     *     *  Announce target death to observer.     *     *  @param target_class the target class name.     *     *  @param target_instance the target instance name.     */    virtual XrlCmdError finder_event_observer_0_1_xrl_target_death(	// Input values,	const string&	target_class,	const string&	target_instance) = 0;    /**     *  Pure-virtual function that needs to be implemented to:     *     *  Configure a policy filter.     *     *  @param filter the identifier of the filter to configure.     *     *  @param conf the configuration of the filter.     */    virtual XrlCmdError policy_backend_0_1_configure(	// Input values,	const uint32_t&	filter,	const string&	conf) = 0;    /**     *  Pure-virtual function that needs to be implemented to:     *     *  Reset a policy filter.     *     *  @param filter the identifier of the filter to reset.     */    virtual XrlCmdError policy_backend_0_1_reset(	// Input values,	const uint32_t&	filter) = 0;    /**     *  Pure-virtual function that needs to be implemented to:     *     *  Push all available routes through all filters for re-filtering.     */    virtual XrlCmdError policy_backend_0_1_push_routes() = 0;    /**     *  Pure-virtual function that needs to be implemented to:     *     *  Start route redistribution for an IPv6 route.     *     *  @param network the route to advertise.     *     *  @param unicast whether the route is unicast.     *     *  @param multicast whether the route is multicast.     *     *  @param nexthop the nexthop of the route.     *     *  @param metric the metric of the route.     *     *  @param policytags the set of policy-tags associated with the route.     */    virtual XrlCmdError policy_redist6_0_1_add_route6(	// Input values,	const IPv6Net&	network,	const bool&	unicast,	const bool&	multicast,	const IPv6&	nexthop,	const uint32_t&	metric,	const XrlAtomList&	policytags) = 0;    /**     *  Pure-virtual function that needs to be implemented to:     *     *  Terminate route redistribution for an IPv6 route.     *     *  @param network the route for which advertisements should cease.     *     *  @param unicast whether the route is unicast.     *     *  @param multicast whether the route is multicast.     */    virtual XrlCmdError policy_redist6_0_1_delete_route6(	// Input values,	const IPv6Net&	network,	const bool&	unicast,	const bool&	multicast) = 0;    /**     *  Pure-virtual function that needs to be implemented to:     *     *  Add/delete a routing entry.     *     *  @param dst destination network.     *     *  @param nexthop nexthop router address.     *     *  @param ifname interface name associated with nexthop.     *     *  @param vifname virtual interface name with nexthop.     *     *  @param metric origin routing protocol metric for route.     *     *  @param admin_distance administrative distance of origin routing     *  protocol.     *     *  @param cookie value set by the requestor to identify redistribution     *  source. Typical value is the originating protocol name.     *     *  @param protocol_origin the name of the protocol that originated this     *  routing entry.     */    virtual XrlCmdError redist6_0_1_add_route(	// Input values,	const IPv6Net&	dst,	const IPv6&	nexthop,	const string&	ifname,	const string&	vifname,	const uint32_t&	metric,	const uint32_t&	admin_distance,	const string&	cookie,	const string&	protocol_origin) = 0;    virtual XrlCmdError redist6_0_1_delete_route(	// Input values,	const IPv6Net&	dst,	const IPv6&	nexthop,	const string&	ifname,	const string&	vifname,	const uint32_t&	metric,	const uint32_t&	admin_distance,	const string&	cookie,	const string&	protocol_origin) = 0;    /**     *  Pure-virtual function that needs to be implemented to:     *     *  When route redistribution begins, the receiver is sent the existing     *  list of routes. This message marks the beginning of the routes being     *  sent.     *     *  @param cookie value set by the requestor to identify redistribution     *  source. Typical value is the originating protocol name.     */    virtual XrlCmdError redist6_0_1_starting_route_dump(	// Input values,	const string&	cookie) = 0;    /**     *  Pure-virtual function that needs to be implemented to:     *     *  When route redistribution begins, the receiver is sent the existing     *  list of routes. This message marks the end of the existing routes being     *  sent.     *     *  @param cookie value set by the requestor to identify redistribution     *  source. Typical value is the originating protocol name.     */    virtual XrlCmdError redist6_0_1_finishing_route_dump(	// Input values,	const string&	cookie) = 0;    /**     *  Pure-virtual function that needs to be implemented to:     *     *  Add an address to run RIP process on. The addition of address is not     *  instantaneous, RIP has to instantiate state in the FEA to send and     *  receive packets. Once instantiated the address must be explicitly     *  enabled with set_rip_address_enabled.     *     *  @param ifname the interface that owns vif that has address.     *     *  @param vifname virtual interface owning address.     *     *  @param addr the address to be added.     */    virtual XrlCmdError ripng_0_1_add_rip_address(	// Input values,	const string&	ifname,	const string&	vifname,	const IPv6&	addr) = 0;    /**     *  Pure-virtual function that needs to be implemented to:     *     *  Remove an address RIP process is running on.     *     *  @param ifname the interface that owns vif that has address.     *     *  @param vifname virtual interface owning address.     *     *  @param addr the address to be removed.     */    virtual XrlCmdError ripng_0_1_remove_rip_address(	// Input values,	const string&	ifname,	const string&	vifname,	const IPv6&	addr) = 0;    virtual XrlCmdError ripng_0_1_set_rip_address_enabled(	// Input values,	const string&	ifname,	const string&	vifname,	const IPv6&	addr,	const bool&	enabled) = 0;    virtual XrlCmdError ripng_0_1_rip_address_enabled(	// Input values,	const string&	ifname,	const string&	vifname,	const IPv6&	addr,	// Output values,	bool&	enabled) = 0;    /**     *  Pure-virtual function that needs to be implemented to:     *     *  Set cost metric associated with address.     */    virtual XrlCmdError ripng_0_1_set_cost(	// Input values,	const string&	ifname,	const string&	vifname,	const IPv6&	addr,	const uint32_t&	cost) = 0;    /**     *  Pure-virtual function that needs to be implemented to:     *     *  Get cost metric associated with address.     */    virtual XrlCmdError ripng_0_1_cost(	// Input values,	const string&	ifname,	const string&	vifname,	const IPv6&	addr,	// Output values,	uint32_t&	cost) = 0;    /**     *  Pure-virtual function that needs to be implemented to:     *     *  Set horizon type applied to routes advertised from address.     *     *  @param horizon name of horizon type. Permitted values: "none",     *  "poison-reverse" "split-horizon-poison-reverse"     */    virtual XrlCmdError ripng_0_1_set_horizon(	// Input values,	const string&	ifname,	const string&	vifname,	const IPv6&	addr,	const string&	horizon) = 0;    /**     *  Pure-virtual function that needs to be implemented to:     *     *  Get horizon type applied to routes advertised from address.     */    virtual XrlCmdError ripng_0_1_horizon(	// Input values,	const string&	ifname,	const string&	vifname,	const IPv6&	addr,	// Output values,	string&	horizon) = 0;    /**     *  Pure-virtual function that needs to be implemented to:     *     *  Make RIP passive (receive only) on interface/vif/address.     */    virtual XrlCmdError ripng_0_1_set_passive(	// Input values,	const string&	ifname,	const string&	vifname,	const IPv6&	addr,	const bool&	passive) = 0;    /**     *  Pure-virtual function that needs to be implemented to:     *     *  Get value indicating whether RIP is passive (receive only) on     *  interface/vif/address.     */    virtual XrlCmdError ripng_0_1_passive(	// Input values,	const string&	ifname,	const string&	vifname,	const IPv6&	addr,	// Output values,	bool&	passive) = 0;    /**     *  Pure-virtual function that needs to be implemented to:     *     *  Accept and respond to non-RIP requests.     */    virtual XrlCmdError ripng_0_1_set_accept_non_rip_requests(	// Input values,	const string&	ifname,	const string&	vifname,	const IPv6&	addr,	const bool&	accept) = 0;    /**     *  Pure-virtual function that needs to be implemented to:     *     *  Get value indicating whether non-RIP requests are accepted and     *  responded to on interface/vif/address.     */    virtual XrlCmdError ripng_0_1_accept_non_rip_requests(	// Input values,	const string&	ifname,	const string&	vifname,	const IPv6&	addr,	// Output values,	bool&	accept) = 0;    /**     *  Pure-virtual function that needs to be implemented to:     *     *  Accept default route from peers.     */    virtual XrlCmdError ripng_0_1_set_accept_default_route(	// Input values,	const string&	ifname,	const string&	vifname,	const IPv6&	addr,	const bool&	accept) = 0;    /**     *  Pure-virtual function that needs to be implemented to:     *     *  Accessor for whether default route is accepted from peers.     */    virtual XrlCmdError ripng_0_1_accept_default_route(	// Input values,	const string&	ifname,	const string&	vifname,	const IPv6&	addr,	// Output values,	bool&	accept) = 0;    /**     *  Pure-virtual function that needs to be implemented to:     *     *  Advertise default route (if present).     */    virtual XrlCmdError ripng_0_1_set_advertise_default_route(	// Input values,	const string&	ifname,	const string&	vifname,	const IPv6&	addr,	const bool&	advertise) = 0;    /**     *  Pure-virtual function that needs to be implemented to:     *     *  Accessor for whether default route is advertised.     */    virtual XrlCmdError ripng_0_1_advertise_default_route(	// Input values,	const string&	ifname,	const string&	vifname,	const IPv6&	addr,	// Output values,	bool&	advertise) = 0;    /**     *  Pure-virtual function that needs to be implemented to:     *     *  Set period that routes associated with reception address will expire in     *  the absence of updates.     */    virtual XrlCmdError ripng_0_1_set_route_timeout(	// Input values,	const string&	ifname,	const string&	vifname,	const IPv6&	addr,	const uint32_t&	t_secs) = 0;    /**     *  Pure-virtual function that needs to be implemented to:     *     *  Get period that routes associated with reception address will expire in     *  the absence of updates.     */    virtual XrlCmdError ripng_0_1_route_timeout(	// Input values,

⌨️ 快捷键说明

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