📄 static_routes_xif.hh
字号:
const char* dst_xrl_target_name, const bool& unicast, const bool& multicast, const IPv4Net& network, const IPv4& nexthop, const string& ifname, const string& vifname, const DeleteInterfaceRoute4CB& cb ); typedef XorpCallback1<void, const XrlError&>::RefPtr DeleteInterfaceRoute6CB; bool send_delete_interface_route6( const char* dst_xrl_target_name, const bool& unicast, const bool& multicast, const IPv6Net& network, const IPv6& nexthop, const string& ifname, const string& vifname, const DeleteInterfaceRoute6CB& cb ); typedef XorpCallback1<void, const XrlError&>::RefPtr AddBackupInterfaceRoute4CB; /** * Send Xrl intended to: * * Add/replace/delete a backup static route by explicitly specifying the * network interface toward the destination. * * @param dst_xrl_target_name the Xrl target name of the destination. * * @param unicast if true, then the route would be used for unicast * routing. * * @param multicast if true, then the route would be used in the MRIB * (Multicast Routing Information Base) for multicast purpose (e.g., * computing the Reverse-Path Forwarding information). * * @param network the network address prefix this route applies to. * * @param nexthop the address of the next-hop router for this route. * * @param ifname of the name of the physical interface toward the * destination. * * @param vifname of the name of the virtual interface toward the * destination. * * @param metric the metric distance for this route. */ bool send_add_backup_interface_route4( const char* dst_xrl_target_name, const bool& unicast, const bool& multicast, const IPv4Net& network, const IPv4& nexthop, const string& ifname, const string& vifname, const uint32_t& metric, const AddBackupInterfaceRoute4CB& cb ); typedef XorpCallback1<void, const XrlError&>::RefPtr AddBackupInterfaceRoute6CB; bool send_add_backup_interface_route6( const char* dst_xrl_target_name, const bool& unicast, const bool& multicast, const IPv6Net& network, const IPv6& nexthop, const string& ifname, const string& vifname, const uint32_t& metric, const AddBackupInterfaceRoute6CB& cb ); typedef XorpCallback1<void, const XrlError&>::RefPtr ReplaceBackupInterfaceRoute4CB; bool send_replace_backup_interface_route4( const char* dst_xrl_target_name, const bool& unicast, const bool& multicast, const IPv4Net& network, const IPv4& nexthop, const string& ifname, const string& vifname, const uint32_t& metric, const ReplaceBackupInterfaceRoute4CB& cb ); typedef XorpCallback1<void, const XrlError&>::RefPtr ReplaceBackupInterfaceRoute6CB; bool send_replace_backup_interface_route6( const char* dst_xrl_target_name, const bool& unicast, const bool& multicast, const IPv6Net& network, const IPv6& nexthop, const string& ifname, const string& vifname, const uint32_t& metric, const ReplaceBackupInterfaceRoute6CB& cb ); typedef XorpCallback1<void, const XrlError&>::RefPtr DeleteBackupInterfaceRoute4CB; bool send_delete_backup_interface_route4( const char* dst_xrl_target_name, const bool& unicast, const bool& multicast, const IPv4Net& network, const IPv4& nexthop, const string& ifname, const string& vifname, const DeleteBackupInterfaceRoute4CB& cb ); typedef XorpCallback1<void, const XrlError&>::RefPtr DeleteBackupInterfaceRoute6CB; bool send_delete_backup_interface_route6( const char* dst_xrl_target_name, const bool& unicast, const bool& multicast, const IPv6Net& network, const IPv6& nexthop, const string& ifname, const string& vifname, const DeleteBackupInterfaceRoute6CB& cb ); typedef XorpCallback1<void, const XrlError&>::RefPtr EnableLogTraceAllCB; /** * Send Xrl intended to: * * Enable/disable the StaticRoutes trace log for all operations. * * @param dst_xrl_target_name the Xrl target name of the destination. * * @param enable if true, then enable the trace log, otherwise disable it. */ bool send_enable_log_trace_all( const char* dst_xrl_target_name, const bool& enable, const EnableLogTraceAllCB& cb );protected: XrlSender* _sender;private: void unmarshall_enable_static_routes( const XrlError& e, XrlArgs* a, EnableStaticRoutesCB cb ); void unmarshall_start_static_routes( const XrlError& e, XrlArgs* a, StartStaticRoutesCB cb ); void unmarshall_stop_static_routes( const XrlError& e, XrlArgs* a, StopStaticRoutesCB cb ); void unmarshall_add_route4( const XrlError& e, XrlArgs* a, AddRoute4CB cb ); void unmarshall_add_route6( const XrlError& e, XrlArgs* a, AddRoute6CB cb ); void unmarshall_replace_route4( const XrlError& e, XrlArgs* a, ReplaceRoute4CB cb ); void unmarshall_replace_route6( const XrlError& e, XrlArgs* a, ReplaceRoute6CB cb ); void unmarshall_delete_route4( const XrlError& e, XrlArgs* a, DeleteRoute4CB cb ); void unmarshall_delete_route6( const XrlError& e, XrlArgs* a, DeleteRoute6CB cb ); void unmarshall_add_backup_route4( const XrlError& e, XrlArgs* a, AddBackupRoute4CB cb ); void unmarshall_add_backup_route6( const XrlError& e, XrlArgs* a, AddBackupRoute6CB cb ); void unmarshall_replace_backup_route4( const XrlError& e, XrlArgs* a, ReplaceBackupRoute4CB cb ); void unmarshall_replace_backup_route6( const XrlError& e, XrlArgs* a, ReplaceBackupRoute6CB cb ); void unmarshall_delete_backup_route4( const XrlError& e, XrlArgs* a, DeleteBackupRoute4CB cb ); void unmarshall_delete_backup_route6( const XrlError& e, XrlArgs* a, DeleteBackupRoute6CB cb ); void unmarshall_add_interface_route4( const XrlError& e, XrlArgs* a, AddInterfaceRoute4CB cb ); void unmarshall_add_interface_route6( const XrlError& e, XrlArgs* a, AddInterfaceRoute6CB cb ); void unmarshall_replace_interface_route4( const XrlError& e, XrlArgs* a, ReplaceInterfaceRoute4CB cb ); void unmarshall_replace_interface_route6( const XrlError& e, XrlArgs* a, ReplaceInterfaceRoute6CB cb ); void unmarshall_delete_interface_route4( const XrlError& e, XrlArgs* a, DeleteInterfaceRoute4CB cb ); void unmarshall_delete_interface_route6( const XrlError& e, XrlArgs* a, DeleteInterfaceRoute6CB cb ); void unmarshall_add_backup_interface_route4( const XrlError& e, XrlArgs* a, AddBackupInterfaceRoute4CB cb ); void unmarshall_add_backup_interface_route6( const XrlError& e, XrlArgs* a, AddBackupInterfaceRoute6CB cb ); void unmarshall_replace_backup_interface_route4( const XrlError& e, XrlArgs* a, ReplaceBackupInterfaceRoute4CB cb ); void unmarshall_replace_backup_interface_route6( const XrlError& e, XrlArgs* a, ReplaceBackupInterfaceRoute6CB cb ); void unmarshall_delete_backup_interface_route4( const XrlError& e, XrlArgs* a, DeleteBackupInterfaceRoute4CB cb ); void unmarshall_delete_backup_interface_route6( const XrlError& e, XrlArgs* a, DeleteBackupInterfaceRoute6CB cb ); void unmarshall_enable_log_trace_all( const XrlError& e, XrlArgs* a, EnableLogTraceAllCB cb );};#endif /* __XRL_INTERFACES_STATIC_ROUTES_XIF_HH__ */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -