2 * Copyright (C) 2011-2018 Andreas Steffen
4 * Copyright (C) secunet Security Networks AG
6 * This program is free software; you can redistribute it and/or modify it
7 * under the terms of the GNU General Public License as published by the
8 * Free Software Foundation; either version 2 of the License, or (at your
9 * option) any later version. See <http://www.fsf.org/copyleft/gpl.txt>.
11 * This program is distributed in the hope that it will be useful, but
12 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
13 * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
18 * @defgroup ietf_attr ietf_attr
25 #include "pa_tnc/pa_tnc_attr.h"
29 typedef enum ietf_attr_t ietf_attr_t
;
32 * IETF standard PA-TNC attribute types
37 IETF_ATTR_TESTING
= 0,
38 IETF_ATTR_ATTRIBUTE_REQUEST
= 1,
39 IETF_ATTR_PRODUCT_INFORMATION
= 2,
40 IETF_ATTR_NUMERIC_VERSION
= 3,
41 IETF_ATTR_STRING_VERSION
= 4,
42 IETF_ATTR_OPERATIONAL_STATUS
= 5,
43 IETF_ATTR_PORT_FILTER
= 6,
44 IETF_ATTR_INSTALLED_PACKAGES
= 7,
45 IETF_ATTR_PA_TNC_ERROR
= 8,
46 IETF_ATTR_ASSESSMENT_RESULT
= 9,
47 IETF_ATTR_REMEDIATION_INSTRUCTIONS
= 10,
48 IETF_ATTR_FORWARDING_ENABLED
= 11,
49 IETF_ATTR_FACTORY_DEFAULT_PWD_ENABLED
= 12,
52 IETF_ATTR_SWIMA_REQUEST
= 13,
53 IETF_ATTR_SW_ID_INVENTORY
= 14,
54 IETF_ATTR_SW_ID_EVENTS
= 15,
55 IETF_ATTR_SW_INVENTORY
= 16,
56 IETF_ATTR_SW_EVENTS
= 17,
57 IETF_ATTR_SUBSCRIPTION_STATUS_REQ
= 18,
58 IETF_ATTR_SUBSCRIPTION_STATUS_RESP
= 19,
59 IETF_ATTR_SRC_METADATA_REQ
= 20,
60 IETF_ATTR_SRC_METADATA_RESP
= 21,
62 IETF_ATTR_RESERVED
= 0xffffffff,
66 * enum name for ietf_attr_t.
68 extern enum_name_t
*ietf_attr_names
;
71 * Create an IETF PA-TNC attribute from data
73 * @param type attribute type
74 * @param length attribute length
75 * @param value attribute value or segment
77 pa_tnc_attr_t
* ietf_attr_create_from_data(uint32_t type
, size_t length
,
80 #endif /** IETF_ATTR_H_ @}*/