enum names for ietf_attr_t

This commit is contained in:
Andreas Steffen
2011-06-05 14:17:47 +02:00
parent a82ff71cd7
commit 3cfd8393bf
3 changed files with 40 additions and 1 deletions
+1 -1
View File
@@ -9,7 +9,7 @@ libimcv_la_SOURCES = \
imcv.h imcv.c \
imc/imc_agent.h imc/imc_agent.c imc/imc_state.h \
imv/imv_agent.h imv/imv_agent.c imv/imv_state.h \
ietf/ietf_attr.h \
ietf/ietf_attr.h ietf/ietf_attr.c \
ietf/ietf_attr_pa_tnc_error.h ietf/ietf_attr_pa_tnc_error.c \
ita/ita_attr_command.h ita/ita_attr_command.c \
pa_tnc/pa_tnc_msg.h pa_tnc/pa_tnc_msg.c \
+32
View File
@@ -0,0 +1,32 @@
/*
* Copyright (C) 2011 Andreas Steffen, HSR Hochschule fuer Technik Rapperswil
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the
* Free Software Foundation; either version 2 of the License, or (at your
* option) any later version. See <http://www.fsf.org/copyleft/gpl.txt>.
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
* or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* for more details.
*/
#include "ietf_attr.h"
ENUM(ietf_attr_names, IETF_ATTR_TESTING, IETF_ATTR_FACTORY_DEFAULT_PWD_ENABLED,
"Testing",
"Attribute Request",
"Product Information",
"Numeric Version",
"String Version",
"Operational Status",
"Port Filter",
"Installed Packages",
"PA-TNC error",
"Assessment Result",
"Remediation Instructions",
"Forwarding Enabled",
"Factory Default Password Enabled",
);
+7
View File
@@ -21,6 +21,8 @@
#ifndef IETF_ATTR_H_
#define IETF_ATTR_H_
#include <library.h>
typedef enum ietf_attr_t ietf_attr_t;
/**
@@ -43,4 +45,9 @@ enum ietf_attr_t {
IETF_ATTR_RESERVED = 0xffffffff,
};
/**
* enum name for ietf_attr_t.
*/
extern enum_name_t *ietf_attr_names;
#endif /** IETF_ATTR_H_ @}*/