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

📄 radius_attribute_structures.h

📁 vxworks下radius协议栈 的源代码
💻 H
字号:
/* radius_attribute_structures.h *//* Definitions of structures that are used to represent individule 	*//* radius attribute, and functions to serialize attributes into a 	*//* packet and deserialize attributes from a packet.					*//* Copyright 1984 - 2000 Wind River Systems, Inc. */#include "copyright_wrs.h"/*modification history____________________01a,19dec00,md  merged from visual source safe*//************************************************************************//*	Copyright (C) 1993 - 1999 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 Suite 212 Newport Beach, CA 92660	*//************************************************************************//* for SDS compiler, must have packed alignment 1 for these structures	*//* the compiler puts in padding at the beginning for some reason.		*//* This makes it incompatible with listutils.c for some reason.			*//************************************************************************/#ifndef __INCradius_attribute_structuresh#define __INCradius_attribute_structuresh#if defined (_SDS_)#pragma maxalign ( 1 )#endif#ifndef VARIABLE_NUMBER_OF_BYTES	#define VARIABLE_NUMBER_OF_BYTES 1#endiftypedef struct RADIUS_MESSAGE_ATTRIBUTE_HEADER{	enum RADIUS_ATTRIBUTE_TYPE						type;	UINT											length_of_attribute_value; /* excludes type and length fields */} RADIUS_MESSAGE_ATTRIBUTE_HEADER;typedef struct RADIUS_ATTRIBUTE_ENTRY{	enum RADIUS_ATTRIBUTE_TYPE						type;	UINT											length_of_attribute_value; /* excludes type and length fields */	BYTE											value[VARIABLE_NUMBER_OF_BYTES];} RADIUS_ATTRIBUTE_ENTRY;/* the following will be decrepated soon - as soon as the (de)serializer is in */typedef struct RADIUS_ATTRIBUTE_ENTRY_IN_PACKET{	BYTE_ENUM (RADIUS_ATTRIBUTE_TYPE)				type;	BYTE											length; /* includes type and length fields */	BYTE											value[VARIABLE_NUMBER_OF_BYTES];} RADIUS_ATTRIBUTE_ENTRY_IN_PACKET;/* radius_attribute.c */UINT get_radius_attribute_list_length (RADIUS_LIST_CONTROLLER* p_radius_attribute_list_controller);enum TEST radius_write_attributes_to_packet (RADIUS_PACKET *sptr_packet, RADIUS_LIST_CONTROLLER* p_radius_attribute_list_controller);enum TEST radius_read_attributes_from_packet (RADIUS_PACKET *sptr_packet, RADIUS_LIST_CONTROLLER* p_radius_attribute_list_controller);#endif /*__INCradius_attribute_structuresh*/

⌨️ 快捷键说明

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