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

📄 vnvstp.h

📁 以太网交换机协议平台stp协议的设计与实现源代码。
💻 H
字号:
/*
 * $Log:: /OEM Source Code/Spantree/vnvstp.h $
 * 
 * 1     12/04/98 2:36p Release Engineer
 * code cleanup, bug fixes, code style
 * changes, linted, system level test
 * STP v4.3.0
 * 
 * 1     2/06/96 11:06p Ross
 * Adding new version control
*/
/*	$Modname: vnvstp.h$  $version: 1.2$      $date: 03/31/95$   */
/*
* 	$lgb$
1.0 04/05/94 ross initial release.
1.1 04/05/94 ross added port state parameters.
1.2 03/31/95 ross Changes for new rwutils library.
* 	$lge$
*/
/************************************************************************/
/*	Copyright (C) 1989-1998 RouterWare, Inc. 										*/
/*	Unpublished - rights reserved under the Copyright Laws of the			*/
/*	United States.  Use, duplication, or disclosure by the 					*/
/*	Government is subject to restrictions as set forth in 					*/
/*	subparagraph (c)(1)(ii) of the Rights in Technical Data and 			*/
/*	Computer Software clause at 252.227-7013.										*/
/*	RouterWare, Inc., 3961 MacArthur Blvd. Suite 212, Newport Beach Ca   */
/************************************************************************/
void turn_stp_printing_on (char *cptr_start_of_configuration_string);
void turn_stp_subgroup_printing_on (char *cptr_start_of_configuration_string,ULONG printf_type);
void set_spanning_tree_port_forwarding_state (char *cptr_port_number_and_port_state_type_string);


/* _____________________________________________________________________________________________ */

CONFIGURATION_TABLE stp_configuration_table =
{
	TRUE,
	{
	/* Spanning Tree parameters */

	{
		(void (*) (char *cptr_start_of_configuration_string,ULONG parameter_1,ULONG ulptr_parameter_2,ULONG parameter_3))
		set_enum_enable,
		NULL,
		"Spanning Tree =",
		(ULONG) offsetof (STP_CLASS,enabled),
		(ULONG ) &stp_class,
		(ULONG) NULL
	},

/* _____________________________________________________________________________________________ */

	/* Spanning Tree parameters */

	{
		(void (*) (char *cptr_start_of_configuration_string,ULONG parameter_1,ULONG ulptr_parameter_2,ULONG parameter_3))
		set_enum_enable,
		NULL,
		"Spanning Tree Algorithm =",
		(ULONG) offsetof (STP_CLASS,stp_algorithm_enabled),
		(ULONG ) &stp_class,
		(ULONG) NULL
	},
/* _____________________________________________________________________________________________ */
	{
		(void 	(*) (char *cptr_start_of_configuration_string,ULONG parameter_1,ULONG ulptr_parameter_2,ULONG parameter_3))
		set_ulong_decimal_value,
		NULL,
		"Spanning Tree Number of Ports =",
		(ULONG) offsetof (STP_CLASS,number_of_spanning_tree_ports),
		(ULONG ) &stp_class,
		(ULONG) NULL
	},
/* _____________________________________________________________________________________________ */
	{
		(void 	(*) (char *cptr_start_of_configuration_string,ULONG parameter_1,ULONG ulptr_parameter_2,ULONG parameter_3))
		set_ushort_decimal_value,
		NULL,
		"Spanning Tree Number of Filtering Database Entries =",
		(ULONG) offsetof (STP_CLASS,number_of_fd_entries),
		(ULONG ) &stp_class,
		(ULONG) NULL
	},
/* _____________________________________________________________________________________________ */
	{(void 	(*) (char *cptr_start_of_configuration_string,ULONG parameter_1,ULONG ulptr_parameter_2,ULONG parameter_3))
		set_variable_port_and_ulong_decimal_value,
		NULL,
		"Spanning Tree Port Path Cost =",
		(ULONG) offsetof (STP_CLASS,port[0].path_cost),
		(ULONG ) &stp_class,
		sizeof (STP_PORT_CLASS)
	},
/* _____________________________________________________________________________________________ */
	{
		(void 	(*) (char *cptr_start_of_configuration_string,ULONG parameter_1,ULONG ulptr_parameter_2,ULONG parameter_3))
		set_ulong_decimal_value,
		NULL,
		"Spanning Tree Number of Hash Table Entries =",
		(ULONG) offsetof (STP_CLASS,number_of_hash_table_entries),
		(ULONG ) &stp_class,
		(ULONG) NULL
	},
/* _____________________________________________________________________________________________ */
	{
		(void 	(*) (char *cptr_start_of_configuration_string,ULONG parameter_1,ULONG ulptr_parameter_2,ULONG parameter_3))
		set_enum_enable,
		NULL,
		"Spanning Tree Initialization Breakpoint =",
		(ULONG) offsetof (STP_CLASS,initialization_breakpoint_enabled),
		(ULONG ) &stp_class,
		(ULONG) NULL
	},
/* _____________________________________________________________________________________________ */
	{
		(void 	(*) (char *cptr_start_of_configuration_string,ULONG parameter_1,ULONG ulptr_parameter_2,ULONG parameter_3))
		set_enum_enable,
		NULL,
		"Spanning Tree Printf =",
		(ULONG) offsetof (STP_CLASS,stp_printing_enabled),
		(ULONG ) &stp_class,
		(ULONG) NULL
	},
/* _____________________________________________________________________________________________ */
	{
		(void 	(*) (char *cptr_start_of_configuration_string,ULONG parameter_1,ULONG ulptr_parameter_2,ULONG parameter_3))
		set_enum_enable,
		NULL,
		"Spanning Tree Algorithm Printf =",
		(ULONG) offsetof (STP_CLASS,stp_algorithm_printing_enabled),
		(ULONG ) &stp_class,
		(ULONG) NULL
	},
/* _____________________________________________________________________________________________ */
	{
		(void 	(*) (char *cptr_start_of_configuration_string,ULONG parameter_1,ULONG ulptr_parameter_2,ULONG parameter_3))
		set_enum_enable,
		NULL,
		"Spanning Tree Data Printf =",
		(ULONG) offsetof (STP_CLASS,data_printing_enabled),
		(ULONG ) &stp_class,
		(ULONG) NULL
	},
/* _____________________________________________________________________________________________ */
	{
		(void 	(*) (char *cptr_start_of_configuration_string,ULONG parameter_1,ULONG ulptr_parameter_2,ULONG parameter_3))
		set_variable_port_and_enable,
		NULL,
		"Spanning Tree Port Token Ring =",
		(ULONG) offsetof (STP_CLASS,port[0].token_ring),
		(ULONG ) &stp_class,
		sizeof (STP_PORT_CLASS)
	},
/* _____________________________________________________________________________________________ */
	{
		(void 	(*) (char *cptr_start_of_configuration_string,ULONG parameter_1,ULONG ulptr_parameter_2,ULONG parameter_3))
		set_variable_port_and_enable,
		NULL,
		"Spanning Tree Port WAN =",
		(ULONG) offsetof (STP_CLASS,port[0].wan_port),
		(ULONG ) &stp_class,
		sizeof (STP_PORT_CLASS)
	},

/* _____________________________________________________________________________________________ */
	{(void 	(*) (char *cptr_start_of_configuration_string,ULONG parameter_1,ULONG ulptr_parameter_2,ULONG parameter_3))
		set_variable_port_and_ushort_decimal_value,
		NULL,
		"Spanning Tree Port Message Age =",
		(ULONG) offsetof (STP_CLASS,port[0].message_age.value),
		(ULONG ) &stp_class,
		sizeof (STP_PORT_CLASS)
	},

/* _____________________________________________________________________________________________ */
	{(void 	(*) (char *cptr_start_of_configuration_string,ULONG parameter_1,ULONG ulptr_parameter_2,ULONG parameter_3))
		set_variable_port_and_ushort_decimal_value,
		NULL,
		"Spanning Tree Port Hold Time =",
		(ULONG) offsetof (STP_CLASS,port[0].hold_time.value),
		(ULONG ) &stp_class,
		sizeof (STP_PORT_CLASS)
	},

/* _____________________________________________________________________________________________ */
	{(void 	(*) (char *cptr_start_of_configuration_string,ULONG parameter_1,ULONG ulptr_parameter_2,ULONG parameter_3))
		set_variable_port_and_ushort_decimal_value,
		NULL,
		"Spanning Tree Port Forward Delay =",
		(ULONG) offsetof (STP_CLASS,port[0].forward_delay.value),
		(ULONG ) &stp_class,
		sizeof (STP_PORT_CLASS)
	},

/* _____________________________________________________________________________________________ */
	{(void 	(*) (char *cptr_start_of_configuration_string,ULONG parameter_1,ULONG ulptr_parameter_2,ULONG parameter_3))
		set_variable_port_and_ushort_decimal_value,
		NULL,
		"Spanning Tree Port ID Priority =",
		(ULONG) offsetof (STP_CLASS,port[0].port_id.priority),
		(ULONG ) &stp_class,
		sizeof (STP_PORT_CLASS)
	},

/* _____________________________________________________________________________________________ */
	{(void 	(*) (char *cptr_start_of_configuration_string,ULONG parameter_1,ULONG ulptr_parameter_2,ULONG parameter_3))
		set_variable_port_and_ushort_decimal_value,
		NULL,
		"Spanning Tree Port Maximum Frame Size =",
		(ULONG) offsetof (STP_CLASS,port[0].maximum_packet_size),
		(ULONG ) &stp_class,
		sizeof (STP_PORT_CLASS)
	},

/* _____________________________________________________________________________________________ */
	{(void 	(*) (char *cptr_start_of_configuration_string,ULONG parameter_1,ULONG ulptr_parameter_2,ULONG parameter_3))
		set_spanning_tree_port_forwarding_state,
		NULL,
		"Spanning Tree Port State =",
		(ULONG) NULL,
		(ULONG) NULL
	},
/* _____________________________________________________________________________________________ */
	{
		NULL,
		NULL,
	"",
		(ULONG) NULL,
		(ULONG) NULL,
		(ULONG) NULL
	}

	}	
};

⌨️ 快捷键说明

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