added ITA Echo PA-TNC Subtype and ITA Echo Attribute type
authorAndreas Steffen <andreas.steffen@strongswan.org>
Mon, 11 Mar 2013 08:30:20 +0000 (09:30 +0100)
committerAndreas Steffen <andreas.steffen@strongswan.org>
Mon, 11 Mar 2013 08:30:20 +0000 (09:30 +0100)
src/libimcv/ita/ita_attr.c
src/libimcv/ita/ita_attr.h
src/libtncif/tncif_pa_subtypes.c
src/libtncif/tncif_pa_subtypes.h

index 09754ae..590bc9b 100644 (file)
 #include "ita/ita_attr_settings.h"
 #include "ita/ita_attr_angel.h"
 
-ENUM(ita_attr_names, ITA_ATTR_COMMAND, ITA_ATTR_STOP_ANGEL,
+ENUM(ita_attr_names, ITA_ATTR_COMMAND, ITA_ATTR_ECHO,
        "Command",
        "Dummy",
        "Get Settings",
        "Settings",
        "Start Angel",
-       "Stop Angel"
+       "Stop Angel",
+       "Echo"
 );
 
 /**
index 38469f0..446fa03 100644 (file)
@@ -36,7 +36,8 @@ enum ita_attr_t {
        ITA_ATTR_GET_SETTINGS = 3,
        ITA_ATTR_SETTINGS = 4,
        ITA_ATTR_START_ANGEL = 5,
-       ITA_ATTR_STOP_ANGEL = 6
+       ITA_ATTR_STOP_ANGEL = 6,
+       ITA_ATTR_ECHO = 7
 };
 
 /**
index 1936dff..bf1e999 100644 (file)
@@ -63,11 +63,12 @@ ENUM_NEXT(pa_subtype_fhh_names, PA_SUBTYPE_FHH_ANY, PA_SUBTYPE_FHH_ANY,
 );
 ENUM_END(pa_subtype_fhh_names, PA_SUBTYPE_FHH_ANY);
 
-ENUM_BEGIN(pa_subtype_ita_names, PA_SUBTYPE_ITA_TEST, PA_SUBTYPE_ITA_TEST,
-       "Test"
+ENUM_BEGIN(pa_subtype_ita_names, PA_SUBTYPE_ITA_TEST, PA_SUBTYPE_ITA_ECHO,
+       "Test",
+       "Echo"
 );
 ENUM_NEXT(pa_subtype_ita_names, PA_SUBTYPE_ITA_ANY, PA_SUBTYPE_ITA_ANY,
-                                                               PA_SUBTYPE_ITA_TEST,
+                                                               PA_SUBTYPE_ITA_ECHO,
        "ANY"
 );
 ENUM_END(pa_subtype_ita_names, PA_SUBTYPE_ITA_ANY);
index f0ed939..0855d1d 100644 (file)
@@ -86,6 +86,7 @@ extern enum_name_t *pa_subtype_fhh_names;
  */
  enum pa_subtype_ita_t {
        PA_SUBTYPE_ITA_TEST =                           0x01,
+       PA_SUBTYPE_ITA_ECHO =                           0x02,
        PA_SUBTYPE_ITA_ANY =                            0xff
 };