00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037 #ifndef __RADIUS_H__
00038 #define __RADIUS_H__
00039
00040 #include "global.h"
00041
00042 namespace tacpp {
00043
00044
00045
00046
00047
00048
00049
00050
00051 #define RC_ACCESS_REQUEST 1
00052
00053
00054
00055 #define RC_ACCESS_ACCEPT 2
00056 #define RC_ACCESS_REJECT 3
00057 #define RC_ACCOUNTING_REQUEST 4
00058 #define RC_ACCOUNTING_RESPONCE 5
00059 #define RC_ACCESS_CHALLENGE 11
00060 #define RC_STATUS_SERVER 12
00061 #define RC_STATUS_CLIENT 13
00062
00063
00064
00065
00066
00067
00068
00069 #define RADIUS_HEADER_LEN 20
00070
00071
00072
00073
00074
00075
00076
00077
00078
00079
00080
00081
00082 #define RC_USER_NAME 1
00083 #define RC_USER_PASSWORD 2
00084 #define RC_CHAP_PASSWORD 3
00085 #define RC_NAS_IP_ADDRESS 4
00086 #define RC_NAS_PORT 5
00087 #define RC_SERVICE_TYPE 6
00088 #define RC_FRAMED_PROTOCOL 7
00089 #define RC_FRAMED_IP_ADDRESS 8
00090 #define RC_FRAMED_IP_NETMASK 9
00091 #define RC_FRAMED_ROUTING 10
00092 #define RC_FILTER_ID 11
00093 #define RC_FRAMED_MTU 12
00094 #define RC_FRAMED_COMPRESSION 13
00095 #define RC_LOGIN_IP_HOST 14
00096 #define RC_LOGIN_SERVICE 15
00097 #define RC_LOGIN_TCP_PORT 16
00098 #define RC_UNUSSIGNED1 17
00099 #define RC_REPLY_MESSAGE 18
00100 #define RC_CALLBACK_NUMBER 19
00101 #define RC_CALLBACK_ID 20
00102 #define RC_UNUSSIGNED2 21
00103 #define RC_FRAMED_ROUTE 22
00104 #define RC_FRAMED_IPX_NETWORK 23
00105 #define RC_STATE 24
00106 #define RC_CLASS 25
00107 #define RC_VENDOR_SPECIFIC 26
00108 #define RC_SESSION_TIMEOUT 27
00109 #define RC_IDLE_TIMEOUT 28
00110 #define RC_TERMINATION_ACTION 29
00111 #define RC_CALLED_STATION_ID 30
00112 #define RC_CALLING_STATION_ID 31
00113 #define RC_NAS_IDENTIFIER 32
00114 #define RC_PROXY_STATE 33
00115 #define RC_LOGIN_LAT_SERVICE 34
00116 #define RC_LOGIN_LAT_NODE 35
00117 #define RC_LOGIN_LAT_GROUP 36
00118 #define RC_FRAMED_APPLETALK_LINK 37
00119 #define RC_FRAMED_APPLETALK_NETWORK 38
00120 #define RC_FRAMED_APPLETALK_ZONE 39
00121 #define RC_CHAP_CHALLENGE 60
00122 #define RC_NAS_PORT_TYPE 61
00123 #define RC_PORT_LIMIT 62
00124 #define RC_LOGIN_LAT_PORT 63
00125
00129 struct radius_header {
00132 unsigned char Code;
00135 unsigned char Identifier;
00138 unsigned short int Length;
00141 unsigned char Authenticator[16];
00142
00143 };
00144
00148 struct attribute_header {
00151 unsigned char type;
00154 unsigned char length;
00155
00156 };
00157
00162 class RadiusPacket {
00165 unsigned char Identifier;
00166 public:
00167 };
00168
00169 };
00170
00171 #endif //__RADIUS_H__