?? mld6igmp_node.hh
字號(hào):
/** * Reset the protocol version on an interface to its default value. * * @param vif_name the name of the vif to reset the protocol version of * to its default value. * @param error_msg the error message (if error). * @return XORP_OK on success, otherwise XORP_ERROR. */ int reset_vif_proto_version(const string& vif_name, string& error_msg); /** * Get the value of the flag that enables/disables the IP Router Alert * option check per interface for received packets. * * @param vif_name the name of the vif to apply to. * @param enabled the return-by-reference flag value. * @param error_msg the error message (if error). * @return XORP_OK on success, otherwise XORP_ERROR. */ int get_vif_ip_router_alert_option_check(const string& vif_name, bool& enabled, string& error_msg); /** * Enable/disable the IP Router Alert option check per interface for * received packets. * * @param vif_name the name of the vif to apply to. * @param enable if true, then enable the IP Router Alert option check, * otherwise disable it. * @param error_msg the error message (if error). * @return XORP_OK on success, otherwise XORP_ERROR. */ int set_vif_ip_router_alert_option_check(const string& vif_name, bool enable, string& error_msg); /** * Reset the value of the flag that enables/disables the IP Router Alert * option check per interface for received packets to its default value. * * @param vif_name the name of the vif to apply to. * @param error_msg the error message (if error). * @return XORP_OK on success, otherwise XORP_ERROR. */ int reset_vif_ip_router_alert_option_check(const string& vif_name, string& error_msg); /** * Get the Query Interval per interface. * * @param vif_name the name of the vif to apply to. * @param interval the return-by-reference interval. * @param error_msg the error message (if error). * @return XORP_OK on success, otherwise XORP_ERROR. */ int get_vif_query_interval(const string& vif_name, TimeVal& interval, string& error_msg); /** * Set the Query Interval per interface. * * @param vif_name the name of the vif to apply to. * @param interval the interval. * @param error_msg the error message (if error). * @return XORP_OK on success, otherwise XORP_ERROR. */ int set_vif_query_interval(const string& vif_name, const TimeVal& interval, string& error_msg); /** * Reset the Query Interval per interface. * * @param vif_name the name of the vif to apply to. * @param error_msg the error message (if error). * @return XORP_OK on success, otherwise XORP_ERROR. */ int reset_vif_query_interval(const string& vif_name, string& error_msg); /** * Get the Last Member Query Interval per interface. * * @param vif_name the name of the vif to apply to. * @param interval the return-by-reference interval. * @param error_msg the error message (if error). * @return XORP_OK on success, otherwise XORP_ERROR. */ int get_vif_query_last_member_interval(const string& vif_name, TimeVal& interval, string& error_msg); /** * Set the Last Member Query Interval per interface. * * @param vif_name the name of the vif to apply to. * @param interval the interval. * @param error_msg the error message (if error). * @return XORP_OK on success, otherwise XORP_ERROR. */ int set_vif_query_last_member_interval(const string& vif_name, const TimeVal& interval, string& error_msg); /** * Reset the Last Member Query Interval per interface. * * @param vif_name the name of the vif to apply to. * @param error_msg the error message (if error). * @return XORP_OK on success, otherwise XORP_ERROR. */ int reset_vif_query_last_member_interval(const string& vif_name, string& error_msg); /** * Get the Query Response Interval per interface. * * @param vif_name the name of the vif to apply to. * @param interval the return-by-reference interval. * @param error_msg the error message (if error). * @return XORP_OK on success, otherwise XORP_ERROR. */ int get_vif_query_response_interval(const string& vif_name, TimeVal& interval, string& error_msg); /** * Set the Query Response Interval per interface. * * @param vif_name the name of the vif to apply to. * @param interval the interval. * @param error_msg the error message (if error). * @return XORP_OK on success, otherwise XORP_ERROR. */ int set_vif_query_response_interval(const string& vif_name, const TimeVal& interval, string& error_msg); /** * Reset the Query Response Interval per interface. * * @param vif_name the name of the vif to apply to. * @param error_msg the error message (if error). * @return XORP_OK on success, otherwise XORP_ERROR. */ int reset_vif_query_response_interval(const string& vif_name, string& error_msg); /** * Get the Robustness Variable count per interface. * * @param vif_name the name of the vif to apply to. * @param robust_count the return-by-reference count value. * @param error_msg the error message (if error). * @return XORP_OK on success, otherwise XORP_ERROR. */ int get_vif_robust_count(const string& vif_name, uint32_t& robust_count, string& error_msg); /** * Set the Robustness Variable count per interface. * * @param vif_name the name of the vif to apply to. * @param robust_count the count value. * @param error_msg the error message (if error). * @return XORP_OK on success, otherwise XORP_ERROR. */ int set_vif_robust_count(const string& vif_name, uint32_t robust_count, string& error_msg); /** * Reset the Robustness Variable count per interface. * * @param vif_name the name of the vif to apply to. * @param error_msg the error message (if error). * @return XORP_OK on success, otherwise XORP_ERROR. */ int reset_vif_robust_count(const string& vif_name, string& error_msg); // // Debug-related methods // /** * Test if trace log is enabled. * * This method is used to test whether to output trace log debug messges. * * @return true if trace log is enabled, otherwise false. */ bool is_log_trace() const { return (_is_log_trace); } /** * Enable/disable trace log. * * This method is used to enable/disable trace log debug messages output. * * @param is_enabled if true, trace log is enabled, otherwise is disabled. */ void set_log_trace(bool is_enabled) { _is_log_trace = is_enabled; }protected: // // IfMgrHintObserver methods // void tree_complete(); void updates_made();private: /** * A method invoked when the status of a service changes. * * @param service the service whose status has changed. * @param old_status the old status. * @param new_status the new status. */ void status_change(ServiceBase* service, ServiceStatus old_status, ServiceStatus new_status); /** * Get a reference to the service base of the interface manager. * * This is a pure virtual function, and it must be implemented * by the communication-wrapper class that inherits this base class. * * @return a reference to the service base of the interface manager. */ virtual const ServiceBase* ifmgr_mirror_service_base() const = 0; /** * Get a reference to the interface manager tree. * * This is a pure virtual function, and it must be implemented * by the communication-wrapper class that inherits this base class. * * @return a reference to the interface manager tree. */ virtual const IfMgrIfTree& ifmgr_iftree() const = 0; /** * Initiate registration with the FEA. * * This is a pure virtual function, and it must be implemented * by the communication-wrapper class that inherits this base class. */ virtual void fea_register_startup() = 0; /** * Initiate registration with the MFEA. * * This is a pure virtual function, and it must be implemented * by the communication-wrapper class that inherits this base class. */ virtual void mfea_register_startup() = 0; /** * Initiate de-registration with the FEA. * * This is a pure virtual function, and it must be implemented * by the communication-wrapper class that inherits this base class. */ virtual void fea_register_shutdown() = 0; /** * Initiate de-registration with the MFEA. * * This is a pure virtual function, and it must be implemented * by the communication-wrapper class that inherits this base class. */ virtual void mfea_register_shutdown() = 0; buffer_t *_buffer_recv; // Buffer for receiving messages // // Status-related state // size_t _waiting_for_mfea_startup_events; // // A local copy with the interface state information // IfMgrIfTree _iftree; // // Debug and test-related state // bool _is_log_trace; // If true, enable XLOG_TRACE()};//// Global variables////// Global functions prototypes//#endif // __MLD6IGMP_MLD6IGMP_NODE_HH__
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -