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

📄 rip_xif.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 'clnt-gen'. * * $XORP: xorp/xrl/interfaces/rip_xif.hh,v 1.14 2007/02/16 22:47:43 pavlin Exp $ */#ifndef __XRL_INTERFACES_RIP_XIF_HH__#define __XRL_INTERFACES_RIP_XIF_HH__#undef XORP_LIBRARY_NAME#define XORP_LIBRARY_NAME "XifRip"#include "libxorp/xlog.h"#include "libxorp/callback.hh"#include "libxipc/xrl.hh"#include "libxipc/xrl_error.hh"#include "libxipc/xrl_sender.hh"class XrlRipV0p1Client {public:    XrlRipV0p1Client(XrlSender* s) : _sender(s) {}    virtual ~XrlRipV0p1Client() {}    typedef XorpCallback1<void, const XrlError&>::RefPtr AddRipAddressCB;    /**     *  Send Xrl intended 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 dst_xrl_target_name the Xrl target name of the destination.     *     *  @param ifname the interface that owns vif that has address.     *     *  @param vifname virtual interface owning address.     *     *  @param addr the address to be added.     */    bool send_add_rip_address(	const char*	dst_xrl_target_name,	const string&	ifname,	const string&	vifname,	const IPv4&	addr,	const AddRipAddressCB&	cb    );    typedef XorpCallback1<void, const XrlError&>::RefPtr RemoveRipAddressCB;    /**     *  Send Xrl intended to:     *     *  Remove an address RIP process is running on.     *     *  @param dst_xrl_target_name the Xrl target name of the destination.     *     *  @param ifname the interface that owns vif that has address.     *     *  @param vifname virtual interface owning address.     *     *  @param addr the address to be removed.     */    bool send_remove_rip_address(	const char*	dst_xrl_target_name,	const string&	ifname,	const string&	vifname,	const IPv4&	addr,	const RemoveRipAddressCB&	cb    );    typedef XorpCallback1<void, const XrlError&>::RefPtr SetRipAddressEnabledCB;    bool send_set_rip_address_enabled(	const char*	dst_xrl_target_name,	const string&	ifname,	const string&	vifname,	const IPv4&	addr,	const bool&	enabled,	const SetRipAddressEnabledCB&	cb    );    typedef XorpCallback2<void, const XrlError&, const bool*>::RefPtr RipAddressEnabledCB;    bool send_rip_address_enabled(	const char*	dst_xrl_target_name,	const string&	ifname,	const string&	vifname,	const IPv4&	addr,	const RipAddressEnabledCB&	cb    );    typedef XorpCallback1<void, const XrlError&>::RefPtr SetCostCB;    /**     *  Send Xrl intended to:     *     *  Set cost metric associated with address.     *     *  @param dst_xrl_target_name the Xrl target name of the destination.     */    bool send_set_cost(	const char*	dst_xrl_target_name,	const string&	ifname,	const string&	vifname,	const IPv4&	addr,	const uint32_t&	cost,	const SetCostCB&	cb    );    typedef XorpCallback2<void, const XrlError&, const uint32_t*>::RefPtr CostCB;    /**     *  Send Xrl intended to:     *     *  Get cost metric associated with address.     *     *  @param dst_xrl_target_name the Xrl target name of the destination.     */    bool send_cost(	const char*	dst_xrl_target_name,	const string&	ifname,	const string&	vifname,	const IPv4&	addr,	const CostCB&	cb    );    typedef XorpCallback1<void, const XrlError&>::RefPtr SetHorizonCB;    /**     *  Send Xrl intended to:     *     *  Set horizon type applied to routes advertised from address.     *     *  @param dst_xrl_target_name the Xrl target name of the destination.     *     *  @param horizon name of horizon type. Permitted values: "none",     *  "poison-reverse" "split-horizon-poison-reverse"     */    bool send_set_horizon(	const char*	dst_xrl_target_name,	const string&	ifname,	const string&	vifname,	const IPv4&	addr,	const string&	horizon,	const SetHorizonCB&	cb    );    typedef XorpCallback2<void, const XrlError&, const string*>::RefPtr HorizonCB;    /**     *  Send Xrl intended to:     *     *  Get horizon type applied to routes advertised from address.     *     *  @param dst_xrl_target_name the Xrl target name of the destination.     */    bool send_horizon(	const char*	dst_xrl_target_name,	const string&	ifname,	const string&	vifname,	const IPv4&	addr,	const HorizonCB&	cb    );    typedef XorpCallback1<void, const XrlError&>::RefPtr SetPassiveCB;    /**     *  Send Xrl intended to:     *     *  Make RIP passive (receive only) on interface/vif/address.     *     *  @param dst_xrl_target_name the Xrl target name of the destination.     */    bool send_set_passive(	const char*	dst_xrl_target_name,	const string&	ifname,	const string&	vifname,	const IPv4&	addr,	const bool&	passive,	const SetPassiveCB&	cb    );    typedef XorpCallback2<void, const XrlError&, const bool*>::RefPtr PassiveCB;    /**     *  Send Xrl intended to:     *     *  Get value indicating whether RIP is passive (receive only) on     *  interface/vif/address.     *     *  @param dst_xrl_target_name the Xrl target name of the destination.     */    bool send_passive(	const char*	dst_xrl_target_name,	const string&	ifname,	const string&	vifname,	const IPv4&	addr,	const PassiveCB&	cb    );    typedef XorpCallback1<void, const XrlError&>::RefPtr SetAcceptNonRipRequestsCB;    /**     *  Send Xrl intended to:     *     *  Accept and respond to non-RIP requests.     *     *  @param dst_xrl_target_name the Xrl target name of the destination.     */    bool send_set_accept_non_rip_requests(	const char*	dst_xrl_target_name,	const string&	ifname,	const string&	vifname,	const IPv4&	addr,	const bool&	accept,	const SetAcceptNonRipRequestsCB&	cb    );    typedef XorpCallback2<void, const XrlError&, const bool*>::RefPtr AcceptNonRipRequestsCB;    /**     *  Send Xrl intended to:     *     *  Get value indicating whether non-RIP requests are accepted and     *  responded to on interface/vif/address.     *     *  @param dst_xrl_target_name the Xrl target name of the destination.     */    bool send_accept_non_rip_requests(	const char*	dst_xrl_target_name,	const string&	ifname,	const string&	vifname,	const IPv4&	addr,	const AcceptNonRipRequestsCB&	cb    );    typedef XorpCallback1<void, const XrlError&>::RefPtr SetAcceptDefaultRouteCB;    /**     *  Send Xrl intended to:     *     *  Accept default route from peers.     *     *  @param dst_xrl_target_name the Xrl target name of the destination.     */    bool send_set_accept_default_route(	const char*	dst_xrl_target_name,	const string&	ifname,	const string&	vifname,	const IPv4&	addr,	const bool&	accept,	const SetAcceptDefaultRouteCB&	cb    );    typedef XorpCallback2<void, const XrlError&, const bool*>::RefPtr AcceptDefaultRouteCB;    /**     *  Send Xrl intended to:     *     *  Accessor for whether default route is accepted from peers.     *     *  @param dst_xrl_target_name the Xrl target name of the destination.     */    bool send_accept_default_route(	const char*	dst_xrl_target_name,	const string&	ifname,	const string&	vifname,	const IPv4&	addr,	const AcceptDefaultRouteCB&	cb    );    typedef XorpCallback1<void, const XrlError&>::RefPtr SetAdvertiseDefaultRouteCB;    /**     *  Send Xrl intended to:     *     *  Advertise default route (if present).     *     *  @param dst_xrl_target_name the Xrl target name of the destination.     */    bool send_set_advertise_default_route(	const char*	dst_xrl_target_name,	const string&	ifname,	const string&	vifname,	const IPv4&	addr,	const bool&	advertise,	const SetAdvertiseDefaultRouteCB&	cb    );    typedef XorpCallback2<void, const XrlError&, const bool*>::RefPtr AdvertiseDefaultRouteCB;    /**     *  Send Xrl intended to:     *     *  Accessor for whether default route is advertised.     *     *  @param dst_xrl_target_name the Xrl target name of the destination.     */    bool send_advertise_default_route(	const char*	dst_xrl_target_name,	const string&	ifname,	const string&	vifname,	const IPv4&	addr,	const AdvertiseDefaultRouteCB&	cb    );    typedef XorpCallback1<void, const XrlError&>::RefPtr SetRouteTimeoutCB;    /**     *  Send Xrl intended to:     *     *  Set period that routes associated with reception address will expire in     *  the absence of updates.     *     *  @param dst_xrl_target_name the Xrl target name of the destination.     */    bool send_set_route_timeout(	const char*	dst_xrl_target_name,	const string&	ifname,	const string&	vifname,	const IPv4&	addr,	const uint32_t&	t_secs,	const SetRouteTimeoutCB&	cb    );    typedef XorpCallback2<void, const XrlError&, const uint32_t*>::RefPtr RouteTimeoutCB;    /**     *  Send Xrl intended to:     *     *  Get period that routes associated with reception address will expire in     *  the absence of updates.     *     *  @param dst_xrl_target_name the Xrl target name of the destination.     */    bool send_route_timeout(	const char*	dst_xrl_target_name,	const string&	ifname,	const string&	vifname,	const IPv4&	addr,	const RouteTimeoutCB&	cb    );    typedef XorpCallback1<void, const XrlError&>::RefPtr SetDeletionDelayCB;    /**     *  Send Xrl intended to:     *     *  Set period that routes associated with reception address will be     *  deleted after they've expired.     *     *  @param dst_xrl_target_name the Xrl target name of the destination.     */    bool send_set_deletion_delay(	const char*	dst_xrl_target_name,	const string&	ifname,	const string&	vifname,	const IPv4&	addr,	const uint32_t&	t_secs,	const SetDeletionDelayCB&	cb    );    typedef XorpCallback2<void, const XrlError&, const uint32_t*>::RefPtr DeletionDelayCB;    /**     *  Send Xrl intended to:     *     *  Get period that routes associated with reception address will be     *  deleted after they've expired.     *     *  @param dst_xrl_target_name the Xrl target name of the destination.     */    bool send_deletion_delay(	const char*	dst_xrl_target_name,	const string&	ifname,	const string&	vifname,	const IPv4&	addr,	const DeletionDelayCB&	cb    );    typedef XorpCallback1<void, const XrlError&>::RefPtr SetRequestIntervalCB;    /**     *  Send Xrl intended to:     *     *  Set period that route table requests should be sent from address when     *  no peers are associated with it.     *     *  @param dst_xrl_target_name the Xrl target name of the destination.     */    bool send_set_request_interval(	const char*	dst_xrl_target_name,	const string&	ifname,	const string&	vifname,	const IPv4&	addr,	const uint32_t&	t_secs,	const SetRequestIntervalCB&	cb    );    typedef XorpCallback2<void, const XrlError&, const uint32_t*>::RefPtr RequestIntervalCB;    /**     *  Send Xrl intended to:     *     *  Set period that route table requests should be sent from address when     *  no peers are associated with it.     *     *  @param dst_xrl_target_name the Xrl target name of the destination.     */    bool send_request_interval(	const char*	dst_xrl_target_name,	const string&	ifname,	const string&	vifname,	const IPv4&	addr,	const RequestIntervalCB&	cb    );    typedef XorpCallback1<void, const XrlError&>::RefPtr SetUpdateIntervalCB;    /**     *  Send Xrl intended to:     *     *  Set period between the unsolicited sending of the routing table from     *  address.     *     *  @param dst_xrl_target_name the Xrl target name of the destination.     */    bool send_set_update_interval(	const char*	dst_xrl_target_name,	const string&	ifname,	const string&	vifname,	const IPv4&	addr,	const uint32_t&	t_secs,	const SetUpdateIntervalCB&	cb    );    typedef XorpCallback2<void, const XrlError&, const uint32_t*>::RefPtr UpdateIntervalCB;    /**     *  Send Xrl intended to:     *     *  Get period between the unsolicited sending of the routing table from     *  address.     *     *  @param dst_xrl_target_name the Xrl target name of the destination.     */    bool send_update_interval(	const char*	dst_xrl_target_name,	const string&	ifname,	const string&	vifname,	const IPv4&	addr,	const UpdateIntervalCB&	cb    );    typedef XorpCallback1<void, const XrlError&>::RefPtr SetUpdateJitterCB;    /**     *  Send Xrl intended to:     *     *  Set jitter between the unsolicited sending of the routing table from     *  address (in percents of the period).     *     *  @param dst_xrl_target_name the Xrl target name of the destination.     */    bool send_set_update_jitter(	const char*	dst_xrl_target_name,	const string&	ifname,	const string&	vifname,	const IPv4&	addr,	const uint32_t&	t_jitter,	const SetUpdateJitterCB&	cb    );    typedef XorpCallback2<void, const XrlError&, const uint32_t*>::RefPtr UpdateJitterCB;    /**     *  Send Xrl intended to:     *     *  Get jitter between the unsolicited sending of the routing table from     *  address (in percents of the period).     *     *  @param dst_xrl_target_name the Xrl target name of the destination.     */    bool send_update_jitter(	const char*	dst_xrl_target_name,	const string&	ifname,	const string&	vifname,	const IPv4&	addr,	const UpdateJitterCB&	cb    );    typedef XorpCallback1<void, const XrlError&>::RefPtr SetTriggeredUpdateDelayCB;    /**     *  Send Xrl intended to:     *     *  Set period between sending triggered updates from address.     *     *  @param dst_xrl_target_name the Xrl target name of the destination.     */    bool send_set_triggered_update_delay(	const char*	dst_xrl_target_name,	const string&	ifname,	const string&	vifname,	const IPv4&	addr,	const uint32_t&	t_secs,	const SetTriggeredUpdateDelayCB&	cb    );    typedef XorpCallback2<void, const XrlError&, const uint32_t*>::RefPtr TriggeredUpdateDelayCB;    /**     *  Send Xrl intended to:     *     *  Get period between sending triggered updates from address.     *     *  @param dst_xrl_target_name the Xrl target name of the destination.     */    bool send_triggered_update_delay(	const char*	dst_xrl_target_name,	const string&	ifname,	const string&	vifname,	const IPv4&	addr,	const TriggeredUpdateDelayCB&	cb    );    typedef XorpCallback1<void, const XrlError&>::RefPtr SetTriggeredUpdateJitterCB;    /**     *  Send Xrl intended to:     *     *  Set jitter between sending triggered updates from address (in percents     *  of the period).     *     *  @param dst_xrl_target_name the Xrl target name of the destination.     */    bool send_set_triggered_update_jitter(	const char*	dst_xrl_target_name,	const string&	ifname,	const string&	vifname,	const IPv4&	addr,	const uint32_t&	t_jitter,	const SetTriggeredUpdateJitterCB&	cb    );    typedef XorpCallback2<void, const XrlError&, const uint32_t*>::RefPtr TriggeredUpdateJitterCB;    /**     *  Send Xrl intended to:     *     *  Get jitter between sending triggered updates from address (in percents     *  of the period).     *     *  @param dst_xrl_target_name the Xrl target name of the destination.     */    bool send_triggered_update_jitter(	const char*	dst_xrl_target_name,	const string&	ifname,	const string&	vifname,	const IPv4&	addr,	const TriggeredUpdateJitterCB&	cb    );    typedef XorpCallback1<void, const XrlError&>::RefPtr SetInterpacketDelayCB;    /**

⌨️ 快捷键说明

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