Mercurial > hg > freeDiameter
diff include/freeDiameter/libfdproto.h @ 705:f0cb8f465763
Added standard Result-Code values in header.
Added Error-Cause attribute conversion in app_radgw.
author | Sebastien Decugis <sdecugis@nict.go.jp> |
---|---|
date | Mon, 31 Jan 2011 17:22:21 +0900 |
parents | 933d098fc75d |
children | 4ffbc9f1e922 |
line wrap: on
line diff
--- a/include/freeDiameter/libfdproto.h Tue Jan 25 16:34:27 2011 +0900 +++ b/include/freeDiameter/libfdproto.h Mon Jan 31 17:22:21 2011 +0900 @@ -1512,12 +1512,47 @@ #define ACV_ISI_NO_INBAND_SECURITY 0 #define ACV_ISI_TLS 1 -/* Error codes */ -#define ER_DIAMETER_SUCCESS 2001 -#define ER_DIAMETER_REALM_NOT_SERVED 3003 -#define ER_DIAMETER_TOO_BUSY 3004 -#define ER_DIAMETER_REDIRECT_INDICATION 3006 -#define ER_ELECTION_LOST 4003 +/* Error codes from Base protocol +(reference: http://www.iana.org/assignments/aaa-parameters/aaa-parameters.xml#aaa-parameters-4) +Note that currently, rfc3588bis-26 has some different values for some of these +*/ +#define ER_DIAMETER_MULTI_ROUND_AUTH 1001 + +#define ER_DIAMETER_SUCCESS 2001 +#define ER_DIAMETER_LIMITED_SUCCESS 2002 + +#define ER_DIAMETER_COMMAND_UNSUPPORTED 3001 /* 5019 ? */ +#define ER_DIAMETER_UNABLE_TO_DELIVER 3002 +#define ER_DIAMETER_REALM_NOT_SERVED 3003 +#define ER_DIAMETER_TOO_BUSY 3004 +#define ER_DIAMETER_LOOP_DETECTED 3005 +#define ER_DIAMETER_REDIRECT_INDICATION 3006 +#define ER_DIAMETER_APPLICATION_UNSUPPORTED 3007 +#define ER_DIAMETER_INVALID_HDR_BITS 3008 /* 5020 ? */ +#define ER_DIAMETER_INVALID_AVP_BITS 3009 /* 5021 ? */ +#define ER_DIAMETER_UNKNOWN_PEER 3010 /* 5018 ? */ + +#define ER_DIAMETER_AUTHENTICATION_REJECTED 4001 +#define ER_DIAMETER_OUT_OF_SPACE 4002 +#define ER_ELECTION_LOST 4003 + +#define ER_DIAMETER_AVP_UNSUPPORTED 5001 +#define ER_DIAMETER_UNKNOWN_SESSION_ID 5002 +#define ER_DIAMETER_AUTHORIZATION_REJECTED 5003 +#define ER_DIAMETER_INVALID_AVP_VALUE 5004 +#define ER_DIAMETER_MISSING_AVP 5005 +#define ER_DIAMETER_RESOURCES_EXCEEDED 5006 +#define ER_DIAMETER_CONTRADICTING_AVPS 5007 +#define ER_DIAMETER_AVP_NOT_ALLOWED 5008 +#define ER_DIAMETER_AVP_OCCURS_TOO_MANY_TIMES 5009 +#define ER_DIAMETER_NO_COMMON_APPLICATION 5010 +#define ER_DIAMETER_UNSUPPORTED_VERSION 5011 +#define ER_DIAMETER_UNABLE_TO_COMPLY 5012 +#define ER_DIAMETER_INVALID_BIT_IN_HEADER 5013 /* 3011 ? */ +#define ER_DIAMETER_INVALID_AVP_LENGTH 5014 +#define ER_DIAMETER_INVALID_MESSAGE_LENGTH 5015 /* 3012 ? */ +#define ER_DIAMETER_INVALID_AVP_BIT_COMBO 5016 /* deprecated? */ +#define ER_DIAMETER_NO_COMMON_SECURITY 5017 /*============================================================*/