2011-08-20 09:33:22 +00:00
|
|
|
/*
|
2012-07-13 08:42:40 +00:00
|
|
|
* Copyright (C) 2011-2012 Andreas Steffen
|
2011-08-20 09:33:22 +00:00
|
|
|
* 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.
|
|
|
|
*/
|
|
|
|
|
|
|
|
/**
|
2013-03-02 14:26:45 +00:00
|
|
|
* @defgroup ita_attr ita_attr
|
|
|
|
* @{ @ingroup libimcv
|
2011-08-20 09:33:22 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef ITA_ATTR_H_
|
|
|
|
#define ITA_ATTR_H_
|
|
|
|
|
2011-09-10 20:35:43 +00:00
|
|
|
#include "pa_tnc/pa_tnc_attr.h"
|
|
|
|
|
2011-08-20 09:33:22 +00:00
|
|
|
#include <library.h>
|
|
|
|
|
|
|
|
typedef enum ita_attr_t ita_attr_t;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* IETF standard PA-TNC attribute types defined by RFC 5792
|
|
|
|
*/
|
|
|
|
enum ita_attr_t {
|
|
|
|
ITA_ATTR_COMMAND = 1,
|
2012-07-08 05:38:35 +00:00
|
|
|
ITA_ATTR_DUMMY = 2,
|
2012-11-01 17:00:40 +00:00
|
|
|
ITA_ATTR_GET_SETTINGS = 3,
|
|
|
|
ITA_ATTR_SETTINGS = 4,
|
2012-11-05 09:24:12 +00:00
|
|
|
ITA_ATTR_START_ANGEL = 5,
|
|
|
|
ITA_ATTR_STOP_ANGEL = 6
|
2011-08-20 09:33:22 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
/**
|
|
|
|
* enum name for ita_attr_t.
|
|
|
|
*/
|
|
|
|
extern enum_name_t *ita_attr_names;
|
|
|
|
|
2011-09-10 20:35:43 +00:00
|
|
|
/**
|
|
|
|
* Create a ITA PA-TNC attribute from data
|
|
|
|
*
|
|
|
|
* @param type attribute type
|
|
|
|
* @param value attribute value
|
|
|
|
*/
|
|
|
|
pa_tnc_attr_t* ita_attr_create_from_data(u_int32_t type, chunk_t value);
|
|
|
|
|
2011-08-20 09:33:22 +00:00
|
|
|
#endif /** ITA_ATTR_H_ @}*/
|