summaryrefslogtreecommitdiff
path: root/src/libimcv/ietf/ietf_attr_fwd_enabled.c
diff options
context:
space:
mode:
authorYves-Alexis Perez <corsac@debian.org>2015-10-22 11:43:58 +0200
committerYves-Alexis Perez <corsac@debian.org>2015-11-03 17:16:28 +0100
commit27902f634ea544c1f077b19a26ca8c81b67059f3 (patch)
tree2f0977205608987a9239d39111f02ea1c086c1af /src/libimcv/ietf/ietf_attr_fwd_enabled.c
parent3b7ae6673ae7bc330d0305098cd9818a4f6a7856 (diff)
downloadvyos-strongswan-27902f634ea544c1f077b19a26ca8c81b67059f3.tar.gz
vyos-strongswan-27902f634ea544c1f077b19a26ca8c81b67059f3.zip
Imported Upstream version 5.3.3
Diffstat (limited to 'src/libimcv/ietf/ietf_attr_fwd_enabled.c')
-rw-r--r--src/libimcv/ietf/ietf_attr_fwd_enabled.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/libimcv/ietf/ietf_attr_fwd_enabled.c b/src/libimcv/ietf/ietf_attr_fwd_enabled.c
index c00a5efc2..876a740c0 100644
--- a/src/libimcv/ietf/ietf_attr_fwd_enabled.c
+++ b/src/libimcv/ietf/ietf_attr_fwd_enabled.c
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2012-2014 Andreas Steffen
+ * Copyright (C) 2012-2015 Andreas Steffen
* HSR Hochschule fuer Technik Rapperswil
*
* This program is free software; you can redistribute it and/or modify it
@@ -180,7 +180,8 @@ METHOD(ietf_attr_fwd_enabled_t, get_status, os_fwd_status_t,
/**
* Described in header.
*/
-pa_tnc_attr_t *ietf_attr_fwd_enabled_create(os_fwd_status_t fwd_status)
+pa_tnc_attr_t *ietf_attr_fwd_enabled_create(os_fwd_status_t fwd_status,
+ pen_type_t type)
{
private_ietf_attr_fwd_enabled_t *this;
@@ -199,7 +200,7 @@ pa_tnc_attr_t *ietf_attr_fwd_enabled_create(os_fwd_status_t fwd_status)
},
.get_status = _get_status,
},
- .type = { PEN_IETF, IETF_ATTR_FORWARDING_ENABLED },
+ .type = type,
.fwd_status = fwd_status,
.ref = 1,
);
@@ -211,7 +212,7 @@ pa_tnc_attr_t *ietf_attr_fwd_enabled_create(os_fwd_status_t fwd_status)
* Described in header.
*/
pa_tnc_attr_t *ietf_attr_fwd_enabled_create_from_data(size_t length,
- chunk_t data)
+ chunk_t data, pen_type_t type)
{
private_ietf_attr_fwd_enabled_t *this;
@@ -230,7 +231,7 @@ pa_tnc_attr_t *ietf_attr_fwd_enabled_create_from_data(size_t length,
},
.get_status = _get_status,
},
- .type = { PEN_IETF, IETF_ATTR_FORWARDING_ENABLED },
+ .type = type,
.length = length,
.value = chunk_clone(data),
.ref = 1,