added HOME_AGENT_ADDRESS CP attribute type
authorAndreas Steffen <andreas.steffen@strongswan.org>
Thu, 14 Jul 2011 09:05:13 +0000 (11:05 +0200)
committerAndreas Steffen <andreas.steffen@strongswan.org>
Thu, 14 Jul 2011 09:05:13 +0000 (11:05 +0200)
src/libhydra/attributes/attributes.c
src/libhydra/attributes/attributes.h

index ea87109..c2296ae 100644 (file)
@@ -17,7 +17,7 @@
 
 #include "attributes.h"
 
-ENUM_BEGIN(configuration_attribute_type_names, INTERNAL_IP4_ADDRESS, INTERNAL_IP6_PREFIX,
+ENUM_BEGIN(configuration_attribute_type_names, INTERNAL_IP4_ADDRESS, HOME_AGENT_ADDRESS,
        "INTERNAL_IP4_ADDRESS",
        "INTERNAL_IP4_NETMASK",
        "INTERNAL_IP4_DNS",
@@ -35,8 +35,9 @@ ENUM_BEGIN(configuration_attribute_type_names, INTERNAL_IP4_ADDRESS, INTERNAL_IP
        "INTERNAL_IP6_SUBNET",
        "MIP6_HOME_PREFIX",
        "INTERNAL_IP6_LINK",
-       "INTERNAL_IP6_PREFIX");
-ENUM_NEXT(configuration_attribute_type_names, XAUTH_TYPE, XAUTH_ANSWER, INTERNAL_IP6_PREFIX,
+       "INTERNAL_IP6_PREFIX",
+       "HOME_AGENT_ADDRESS");
+ENUM_NEXT(configuration_attribute_type_names, XAUTH_TYPE, XAUTH_ANSWER, HOME_AGENT_ADDRESS,
        "XAUTH_TYPE",
        "XAUTH_USER_NAME",
        "XAUTH_USER_PASSWORD",
@@ -64,7 +65,7 @@ ENUM_NEXT(configuration_attribute_type_names, UNITY_BANNER, UNITY_DDNS_HOSTNAME,
        "UNITY_DDNS_HOSTNAME");
 ENUM_END(configuration_attribute_type_names, UNITY_DDNS_HOSTNAME);
 
-ENUM_BEGIN(configuration_attribute_type_short_names, INTERNAL_IP4_ADDRESS, INTERNAL_IP6_PREFIX,
+ENUM_BEGIN(configuration_attribute_type_short_names, INTERNAL_IP4_ADDRESS, HOME_AGENT_ADDRESS,
        "ADDR",
        "MASK",
        "DNS",
@@ -78,12 +79,13 @@ ENUM_BEGIN(configuration_attribute_type_short_names, INTERNAL_IP4_ADDRESS, INTER
        "NBNS6",
        "DHCP6",
        "SUBNET",
-       "SUPPORTED",
+       "SUP",
        "SUBNET6",
        "MIP6HPFX",
        "LINK6",
-       "PFX6");
-ENUM_NEXT(configuration_attribute_type_short_names, XAUTH_TYPE, XAUTH_ANSWER, INTERNAL_IP6_PREFIX,
+       "PFX6",
+       "HOA");
+ENUM_NEXT(configuration_attribute_type_short_names, XAUTH_TYPE, XAUTH_ANSWER, HOME_AGENT_ADDRESS,
        "XAUTH_TYPE",
        "XAUTH_USER_NAME",
        "XAUTH_USER_PASSWORD",
index 3a40ba3..8ff774b 100644 (file)
@@ -48,6 +48,7 @@ enum configuration_attribute_type_t {
        MIP6_HOME_PREFIX        = 16,
        INTERNAL_IP6_LINK       = 17,
        INTERNAL_IP6_PREFIX     = 18,
+       HOME_AGENT_ADDRESS              = 19,
        /* XAUTH attributes */
        XAUTH_TYPE              = 16520,
        XAUTH_USER_NAME         = 16521,