2 * Copyright (C) 2012-2014 Andreas Steffen
3 * HSR Hochschule fuer Technik Rapperswil
5 * This program is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License as published by the
7 * Free Software Foundation; either version 2 of the License, or (at your
8 * option) any later version. See <http://www.fsf.org/copyleft/gpl.txt>.
10 * This program is distributed in the hope that it will be useful, but
11 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
12 * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
17 * @defgroup ietf_attr_fwd_enabled ietf_attr_fwd_enabled
18 * @{ @ingroup ietf_attr
21 #ifndef IETF_ATTR_FWD_ENABLED_H_
22 #define IETF_ATTR_FWD_ENABLED_H_
24 typedef struct ietf_attr_fwd_enabled_t ietf_attr_fwd_enabled_t
;
26 #include "ietf_attr.h"
27 #include "pa_tnc/pa_tnc_attr.h"
28 #include "os_info/os_info.h"
31 * Class implementing the IETF PA-TNC Forwarding Enabled attribute.
34 struct ietf_attr_fwd_enabled_t
{
37 * Public PA-TNC attribute interface
39 pa_tnc_attr_t pa_tnc_attribute
;
42 * Gets the Forwarding Enabled status
44 * @return Forwarding Enabled status
46 os_fwd_status_t (*get_status
)(ietf_attr_fwd_enabled_t
*this);
51 * Creates an ietf_attr_fwd_enabled_t object
53 * @param fwd_status Forwarding Enabled status
55 pa_tnc_attr_t
* ietf_attr_fwd_enabled_create(os_fwd_status_t fwd_status
);
58 * Creates an ietf_attr_fwd_enabled_t object from received data
60 * @param length Total length of attribute value
61 * @param value Unparsed attribute value (might be a segment)
63 pa_tnc_attr_t
* ietf_attr_fwd_enabled_create_from_data(size_t length
,
66 #endif /** IETF_ATTR_FWD_ENABLED_H_ @}*/