Added Dynamic Authorization Extension RADIUS message codes
authorMartin Willi <martin@revosec.ch>
Wed, 22 Feb 2012 09:31:36 +0000 (10:31 +0100)
committerMartin Willi <martin@revosec.ch>
Mon, 5 Mar 2012 17:06:13 +0000 (18:06 +0100)
src/libcharon/plugins/eap_radius/radius_message.c
src/libcharon/plugins/eap_radius/radius_message.h

index b62745a..3df7e63 100644 (file)
@@ -74,7 +74,14 @@ ENUM_BEGIN(radius_message_code_names, RMC_ACCESS_REQUEST, RMC_ACCOUNTING_RESPONS
        "Accounting-Response");
 ENUM_NEXT(radius_message_code_names, RMC_ACCESS_CHALLENGE, RMC_ACCESS_CHALLENGE, RMC_ACCOUNTING_RESPONSE,
        "Access-Challenge");
-ENUM_END(radius_message_code_names, RMC_ACCESS_CHALLENGE);
+ENUM_NEXT(radius_message_code_names, RMC_DISCONNECT_REQUEST, RMC_COA_NAK, RMC_ACCESS_CHALLENGE,
+       "Disconnect-Request",
+       "Disconnect-ACK",
+       "Disconnect-NAK",
+       "CoA-Request",
+       "CoA-ACK",
+       "CoA-NAK");
+ENUM_END(radius_message_code_names, RMC_COA_NAK);
 
 ENUM(radius_attribute_type_names, RAT_USER_NAME, RAT_MIP6_HOME_LINK_PREFIX,
        "User-Name",
index c7c2ec6..fbbfdc9 100644 (file)
@@ -37,6 +37,12 @@ enum radius_message_code_t {
        RMC_ACCOUNTING_REQUEST = 4,
        RMC_ACCOUNTING_RESPONSE = 5,
        RMC_ACCESS_CHALLENGE = 11,
+       RMC_DISCONNECT_REQUEST = 40,
+       RMC_DISCONNECT_ACK = 41,
+       RMC_DISCONNECT_NAK = 42,
+       RMC_COA_REQUEST = 43,
+       RMC_COA_ACK = 44,
+       RMC_COA_NAK = 45,
 };
 
 /**