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

📄 fea_base.hh

📁 xorp源码hg
💻 HH
📖 第 1 页 / 共 5 页
字号:
     *  @param protocol_origin the name of the protocol that originated this     *  routing entry.     */    virtual XrlCmdError redist_transaction4_0_1_add_route(	// Input values,	const uint32_t&	tid,	const IPv4Net&	dst,	const IPv4&	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 redist_transaction4_0_1_delete_route(	// Input values,	const uint32_t&	tid,	const IPv4Net&	dst,	const IPv4&	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:     *     *  Delete all routing entries.     *     *  @param tid the transaction ID of this transaction.     *     *  @param cookie value set by the requestor to identify redistribution     *  source. Typical value is the originating protocol name.     */    virtual XrlCmdError redist_transaction4_0_1_delete_all_routes(	// Input values,	const uint32_t&	tid,	const string&	cookie) = 0;    /**     *  Pure-virtual function that needs to be implemented to:     *     *  Start transaction.     *     *  @param tid the transaction ID to use for this transaction.     */    virtual XrlCmdError redist_transaction6_0_1_start_transaction(	// Output values,	uint32_t&	tid) = 0;    /**     *  Pure-virtual function that needs to be implemented to:     *     *  Commit transaction.     *     *  @param tid the transaction ID of this transaction.     */    virtual XrlCmdError redist_transaction6_0_1_commit_transaction(	// Input values,	const uint32_t&	tid) = 0;    /**     *  Pure-virtual function that needs to be implemented to:     *     *  Abort transaction.     *     *  @param tid the transaction ID of this transaction.     */    virtual XrlCmdError redist_transaction6_0_1_abort_transaction(	// Input values,	const uint32_t&	tid) = 0;    /**     *  Pure-virtual function that needs to be implemented to:     *     *  Add/delete a routing entry.     *     *  @param tid the transaction ID of this transaction.     *     *  @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 redist_transaction6_0_1_add_route(	// Input values,	const uint32_t&	tid,	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 redist_transaction6_0_1_delete_route(	// Input values,	const uint32_t&	tid,	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:     *     *  Delete all routing entries.     *     *  @param tid the transaction ID of this transaction.     *     *  @param cookie value set by the requestor to identify redistribution     *  source. Typical value is the originating protocol name.     */    virtual XrlCmdError redist_transaction6_0_1_delete_all_routes(	// Input values,	const uint32_t&	tid,	const string&	cookie) = 0;    /**     *  Pure-virtual function that needs to be implemented to:     *     *  Send an IPv4 packet on a raw socket.     *     *  @param if_name the interface to send the packet on. It is essential for     *  multicast. In the unicast case this field may be empty.     *     *  @param vif_name the vif to send the packet on. It is essential for     *  multicast. In the unicast case this field may be empty.     *     *  @param src_address the IP source address.     *     *  @param dst_address the IP destination address.     *     *  @param ip_protocol the IP protocol number. It must be between 1 and     *  255.     *     *  @param ip_ttl the IP TTL (hop-limit). If it has a negative value, the     *  TTL will be set internally before transmission.     *     *  @param ip_tos the Type Of Service (Diffserv/ECN bits for IPv4). If it     *  has a negative value, the TOS will be set internally before     *  transmission.     *     *  @param ip_router_alert if true, then add the IP Router Alert option to     *  the IP packet.     *     *  @param payload the payload, everything after the IP header and options.     */    virtual XrlCmdError raw_packet4_0_1_send(	// Input values,	const string&	if_name,	const string&	vif_name,	const IPv4&	src_address,	const IPv4&	dst_address,	const uint32_t&	ip_protocol,	const int32_t&	ip_ttl,	const int32_t&	ip_tos,	const bool&	ip_router_alert,	const vector<uint8_t>&	payload) = 0;    /**     *  Pure-virtual function that needs to be implemented to:     *     *  Register to receive IPv4 packets. The receiver is expected to support     *  raw_packet4_client/0.1 interface.     *     *  @param xrl_target_name the receiver's XRL target name.     *     *  @param if_name the interface through which packets should be accepted.     *     *  @param vif_name the vif through which packets should be accepted.     *     *  @param ip_protocol the IP protocol number that the receiver is     *  interested in. It must be between 0 and 255. A protocol number of 0 is     *  used to specify all protocols.     *     *  @param enable_multicast_loopback if true then enable delivering of     *  multicast datagrams back to this host (assuming the host is a member of     *  the same multicast group.     */    virtual XrlCmdError raw_packet4_0_1_register_receiver(	// Input values,	const string&	xrl_target_name,	const string&	if_name,	const string&	vif_name,	const uint32_t&	ip_protocol,	const bool&	enable_multicast_loopback) = 0;    /**     *  Pure-virtual function that needs to be implemented to:     *     *  Unregister to receive IPv4 packets.     *     *  @param xrl_target_name the receiver's XRL target name.     *     *  @param if_name the interface through which packets should not be     *  accepted.     *     *  @param vif_name the vif through which packets should not be accepted.     *     *  @param ip_protocol the IP Protocol number that the receiver is not     *  interested in anymore. It must be between 0 and 255. A protocol number     *  of 0 is used to specify all protocols.     */    virtual XrlCmdError raw_packet4_0_1_unregister_receiver(	// Input values,	const string&	xrl_target_name,	const string&	if_name,	const string&	vif_name,	const uint32_t&	ip_protocol) = 0;    /**     *  Pure-virtual function that needs to be implemented to:     *     *  Join an IPv4 multicast group.     *     *  @param xrl_target_name the receiver's XRL target name.     *     *  @param if_name the interface through which packets should be accepted.     *     *  @param vif_name the vif through which packets should be accepted.     *     *  @param ip_protocol the IP protocol number that the receiver is     *  interested in. It must be between 0 and 255. A protocol number of 0 is     *  used to specify all protocols.     *     *  @param group_address the multicast group address to join.     */    virtual XrlCmdError raw_packet4_0_1_join_multicast_group(	// Input values,	const string&	xrl_target_name,	const string&	if_name,	const string&	vif_name,	const uint32_t&	ip_protocol,	const IPv4&	group_address) = 0;    /**     *  Pure-virtual function that needs to be implemented to:     *     *  Leave an IPv4 multicast group.     *     *  @param xrl_target_name the receiver's XRL target name.     *     *  @param if_name the interface through which packets should not be     *  accepted.     *     *  @param vif_name the vif through which packets should not be accepted.     *     *  @param ip_protocol the IP protocol number that the receiver is not     *  interested in anymore. It must be between 0 and 255. A protocol number     *  of 0 is used to specify all protocols.     *     *  @param group_address the multicast group address to leave.     */    virtual XrlCmdError raw_packet4_0_1_leave_multicast_group(	// Input values,	const string&	xrl_target_name,	const string&	if_name,	const string&	vif_name,	const uint32_t&	ip_protocol,	const IPv4&	group_address) = 0;    /**     *  Pure-virtual function that needs to be implemented to:     *     *  Send an IPv6 packet on a raw socket.     *     *  @param if_name the interface to send the packet on. It is essential for     *  multicast. In the unicast case this field may be empty.     *     *  @param vif_name the vif to send the packet on. It is essential for     *  multicast. In the unicast case this field may be empty.     *     *  @param src_address the IP source address.     *     *  @param dst_address the IP destination address.     *     *  @param ip_protocol the IP protocol number. It must be between 1 and     *  255.     *     *  @param ip_ttl the IP TTL (hop-limit). If it has a negative value, the     *  TTL will be set internally before transmission.     *     *  @param ip_tos the Type Of Service (IP traffic class for IPv6). If it     *  has a negative value, the TOS will be set internally before     *  transmission.     *     *  @param ip_router_alert if true, then add the IP Router Alert option to     *  the IP packet.     *     *  @param ext_headers_type a list of u32 integers with the types of the     *  optional extention headers.     *     *  @param ext_headers_payload a list of payload data, one for each     *  optional extention header. The number of entries must match     *  ext_headers_type.     *     *  @param payload the payload, everything after the IP header and options.     */    virtual XrlCmdError raw_packet6_0_1_send(	// Input values,	const string&	if_name,	const string&	vif_name,	const IPv6&	src_address,	const IPv6&	dst_address,	const uint32_t&	ip_protocol,	const int32_t&	ip_ttl,	const int32_t&	ip_tos,	const bool&	ip_router_alert,	const XrlAtomList&	ext_headers_type,	const XrlAtomList&	ext_headers_payload,	const vector<uint8_t>&	payload) = 0;    /**     *  Pure-virtual function that needs to be implemented to:     *     *  Register to receive IPv6 packets. The receiver is expected to support     *  raw_packet6_client/0.1 interface.     *     *  @param xrl_target_name the receiver's XRL target name.     *     *  @param if_name the interface through which packets should be accepted.     *     *  @param vif_name the vif through which packets should be accepted.     *     *  @param ip_protocol the IP protocol number that the receiver is     *  interested in. It must be between 0 and 255. A protocol number of 0 is     *  used to specify all protocols.     *     *  @param enable_multicast_loopback if true then enable delivering of     *  multicast datagrams back to this host (assuming the host is a member of     *  the same multicast group.     */    virtual XrlCmdError raw_packet6_0_1_register_receiver(	// Input values,	const string&	xrl_target_name,	const string&	if_name,	const string&	vif_name,	const uint32_t&	ip_protocol,	const bool&	enable_multicast_loopback) = 0;    /**     *  Pure-virtual function that needs to be implemented to:     *     *  Unregister to receive IPv6 packets.     *     *  @param xrl_target_name the receiver's XRL target name.     *     *  @param if_name the interface through which packets should not be     *  accepted.     *     *  @param vif_name the vif through which packets should not be accepted.     *     *  @param ip_protocol the IP Protocol number that the receiver is not     *  interested in anymore. It must be between 0 and 255. A protocol number     *  of 0 is used to specify all protocols.     */    virtual XrlCmdError raw_packet6_0_1_unregister_receiver(	// Input values,	const string&	xrl_target_name,	const string&	if_name,	const string&	vif_name,	const uint32_t&	ip_protocol) = 0;    /**     *  Pure-virtual function that needs to be implemented to:     *     *  Join an IPv6 multicast group.     *     *  @param xrl_target_name the receiver's XRL target name.     *     *  @param if_name the interface through which packets should be accepted.     *     *  @param vif_name the vif through which packets should be accepted.     *     *  @param ip_protocol the IP protocol number that the receiver is     *  interested in. It must be between 0 and 255. A protocol number of 0 is     *  used to specify all protocols.     *     *  @param group_address the multicast group address to join.     */    virtual XrlCmdError raw_packet6_0_1_join_multicast_group(	// Input values,	const string&	xrl_target_name,

⌨️ 快捷键说明

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