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

📄 testrad.h

📁 Radius PNE 3.3 source code, running at more than vxworks6.x version.
💻 H
字号:
/* testrad.h *//* Header file for defining test parameters and function test declarations *//* Copyright 1984 - 2006 Wind River Systems, Inc. */#include "copyright_wrs.h"/*modification history____________________01e,11jan05,snd Fix for SPR 113557, Removed inclusion of file radius.h and                 tesrad.h now includes files radius_interface.h/radius_utils.h                found in target/h/wrn/radius01d,20nov05,snd Changes for RWOS porting01c,24oct05,snd Removed Diab warnings01b,11mar02,md  remove reference to rwos_radius_global_instance_mutex01a,21dec00,md  merged from visual source safe*/#include <stdlib.h>#include <time.h>#include <string.h>#include <taskLib.h>/* These defines are required, if you include radius_interface.h */typedef unsigned char BYTE;typedef enum bool { true = 1, false = 0 } bool;#include <wrn/radius/radius_interface.h>#include <wrn/radius/radius_utils.h>/* limits */#define RADIUS_TEST_REQUEST_NUMBER	10  /* this number must match the number of users in											the test_username_array below */#define RADIUS_MAX_REQUESTS			4000	/* change this if you want to send more requests											   per test */#define RADIUS_MAX_SERVERS			1000	/* maximum number of radius servers */#define RADIUS_TEST_BASE_PRIORITY   100/* time delay */#define LONG_DELAY	50	/* in seconds */#define SHORT_DELAY	3	/* in seconds */#define BREAK_TIME	10	/* in seconds *//* request type */typedef enum {	AUTHENTICATION,	ACCOUNTING} Test_type;BYTE test_username_array [RADIUS_TEST_REQUEST_NUMBER][20] = {	"user1","user2","user3","user4","user5","user6","user7","user8","user9","user10"};BYTE *test_password = (BYTE *)"lactest";#ifdef __TKUO_TEST__BYTE test_username_array [RADIUS_TEST_REQUEST_NUMBER][20] = {	"tkuo1","tkuo2","tkuo3","tkuo4","tkuo5","tkuo6","tkuo7","tkuo8","tkuo9","tkuo10"};BYTE *test_password = "paradise";#endifRADIUS_ATTRIBUTE_LIST_HANDLE	radius_request[RADIUS_MAX_REQUESTS];RADIUS_SERVER_HANDLE	server_handles[RADIUS_MAX_SERVERS];/************************************************************************//* following should be commented out if you want to use CHAP *//* #define __RADIUS_TEST_APP_USE_PAP__ */void radius_fake_response (RADIUS_REQUEST_HANDLE radius_request_handle, 				enum RADIUS_CODE code, 				RADIUS_ATTRIBUTE_LIST_HANDLE attribute_list_handle);void radius_fake_error_callback (RADIUS_REQUEST_HANDLE radius_request_handle, 					enum RADIUS_ERROR_CALLBACK_CODE error_code);void radius_send_test_authentication_request (	UINT test_request_counter, 	bool flag,	RADIUS_SERVER_HANDLE	server_handle);bool radius_send_test_accounting_request (	enum RADIUS_ACCOUNTING_STATUS_TYPES type, 	UINT test_request_counter, 	bool flag,	RADIUS_SERVER_HANDLE	server_handle);void radiustest_initialize();int radiustest_get_entry();RADIUS_ATTRIBUTE_LIST_HANDLE radiustest_get_attribute_handle(RADIUS_REQUEST_HANDLE req);void radiustest_free_attrib_lists (	RADIUS_ATTRIBUTE_LIST_HANDLE	request_attrib_handle,	RADIUS_ATTRIBUTE_LIST_HANDLE	response_attrib_handle);

⌨️ 快捷键说明

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