added notify messages defined in RFC 5996
authorAndreas Steffen <andreas.steffen@strongswan.org>
Wed, 15 Sep 2010 10:48:58 +0000 (12:48 +0200)
committerAndreas Steffen <andreas.steffen@strongswan.org>
Wed, 15 Sep 2010 10:48:58 +0000 (12:48 +0200)
src/libcharon/encoding/payloads/notify_payload.c
src/libcharon/encoding/payloads/notify_payload.h

index cf4832f..a56fd18 100644 (file)
@@ -41,7 +41,7 @@ ENUM_NEXT(notify_type_names, INVALID_KE_PAYLOAD, INVALID_KE_PAYLOAD, NO_PROPOSAL
        "INVALID_KE_PAYLOAD");
 ENUM_NEXT(notify_type_names, AUTHENTICATION_FAILED, AUTHENTICATION_FAILED, INVALID_KE_PAYLOAD,
        "AUTHENTICATION_FAILED");
-ENUM_NEXT(notify_type_names, SINGLE_PAIR_REQUIRED, USE_ASSIGNED_HoA, AUTHENTICATION_FAILED,
+ENUM_NEXT(notify_type_names, SINGLE_PAIR_REQUIRED, CHILD_SA_NOT_FOUND, AUTHENTICATION_FAILED,
        "SINGLE_PAIR_REQUIRED",
        "NO_ADDITIONAL_SAS",
        "INTERNAL_ADDRESS_FAILURE",
@@ -50,8 +50,10 @@ ENUM_NEXT(notify_type_names, SINGLE_PAIR_REQUIRED, USE_ASSIGNED_HoA, AUTHENTICAT
        "INVALID_SELECTORS",
        "UNACCEPTABLE_ADDRESSES",
        "UNEXPECTED_NAT_DETECTED",
-       "USE_ASSIGNED_HoA");
-ENUM_NEXT(notify_type_names, ME_CONNECT_FAILED, ME_CONNECT_FAILED, USE_ASSIGNED_HoA,
+       "USE_ASSIGNED_HoA",
+       "TEMPORARY_FAILURE",
+       "CHILD_SA_NOT_FOUND");
+ENUM_NEXT(notify_type_names, ME_CONNECT_FAILED, ME_CONNECT_FAILED, CHILD_SA_NOT_FOUND,
        "ME_CONNECT_FAILED");
 ENUM_NEXT(notify_type_names, INITIAL_CONTACT, EAP_ONLY_AUTHENTICATION, ME_CONNECT_FAILED,
        "INITIAL_CONTACT",
@@ -118,7 +120,7 @@ ENUM_NEXT(notify_type_short_names, INVALID_KE_PAYLOAD, INVALID_KE_PAYLOAD, NO_PR
        "INVAL_KE");
 ENUM_NEXT(notify_type_short_names, AUTHENTICATION_FAILED, AUTHENTICATION_FAILED, INVALID_KE_PAYLOAD,
        "AUTH_FAILED");
-ENUM_NEXT(notify_type_short_names, SINGLE_PAIR_REQUIRED, USE_ASSIGNED_HoA, AUTHENTICATION_FAILED,
+ENUM_NEXT(notify_type_short_names, SINGLE_PAIR_REQUIRED, CHILD_SA_NOT_FOUND, AUTHENTICATION_FAILED,
        "SINGLE_PAIR",
        "NO_ADD_SAS",
        "INT_ADDR_FAIL",
@@ -127,8 +129,10 @@ ENUM_NEXT(notify_type_short_names, SINGLE_PAIR_REQUIRED, USE_ASSIGNED_HoA, AUTHE
        "INVAL_SEL",
        "UNACCEPT_ADDR",
        "UNEXPECT_NAT",
-       "ASSIGNED_HoA");
-ENUM_NEXT(notify_type_short_names, ME_CONNECT_FAILED, ME_CONNECT_FAILED, USE_ASSIGNED_HoA,
+       "ASSIGNED_HoA",
+       "TEMP_FAIL",
+       "NO_CHILD_SA");
+ENUM_NEXT(notify_type_short_names, ME_CONNECT_FAILED, ME_CONNECT_FAILED, CHILD_SA_NOT_FOUND,
        "ME_CONN_FAIL");
 ENUM_NEXT(notify_type_short_names, INITIAL_CONTACT, EAP_ONLY_AUTHENTICATION, ME_CONNECT_FAILED,
        "INIT_CONTACT",
index df3d198..7f7b464 100644 (file)
@@ -64,6 +64,9 @@ enum notify_type_t {
        UNEXPECTED_NAT_DETECTED = 41,
        /* mobile IPv6 bootstrapping, RFC 5026 */
        USE_ASSIGNED_HoA = 42,
+       /* IKEv2 RFC 5996 */
+       TEMPORARY_FAILURE = 43,
+       CHILD_SA_NOT_FOUND = 44,
 
        /* IKE-ME, private use */
        ME_CONNECT_FAILED = 8192,