diff options
Diffstat (limited to 'src/libimcv/ietf')
-rw-r--r-- | src/libimcv/ietf/ietf_attr_installed_packages.c | 10 | ||||
-rw-r--r-- | src/libimcv/ietf/ietf_attr_installed_packages.h | 3 |
2 files changed, 6 insertions, 7 deletions
diff --git a/src/libimcv/ietf/ietf_attr_installed_packages.c b/src/libimcv/ietf/ietf_attr_installed_packages.c index 462805e38..f33f643af 100644 --- a/src/libimcv/ietf/ietf_attr_installed_packages.c +++ b/src/libimcv/ietf/ietf_attr_installed_packages.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 2012 Andreas Steffen + * Copyright (C) 2012-2014 Andreas Steffen * HSR Hochschule fuer Technik Rapperswil * * This program is free software; you can redistribute it and/or modify it @@ -41,8 +41,6 @@ typedef struct package_entry_t package_entry_t; * +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ */ -#define INSTALLED_PACKAGES_MIN_SIZE 4 - /** * Private data of an ietf_attr_installed_packages_t object. */ @@ -132,7 +130,7 @@ METHOD(pa_tnc_attr_t, build, void, { return; } - writer = bio_writer_create(INSTALLED_PACKAGES_MIN_SIZE); + writer = bio_writer_create(IETF_INSTALLED_PACKAGES_MIN_SIZE); writer->write_uint16(writer, 0x0000); writer->write_uint16(writer, this->packages->get_count(this->packages)); @@ -160,7 +158,7 @@ METHOD(pa_tnc_attr_t, process, status_t, *offset = 0; - if (this->value.len < INSTALLED_PACKAGES_MIN_SIZE) + if (this->value.len < IETF_INSTALLED_PACKAGES_MIN_SIZE) { DBG1(DBG_TNC, "insufficient data for IETF installed packages"); return FAILED; @@ -168,7 +166,7 @@ METHOD(pa_tnc_attr_t, process, status_t, reader = bio_reader_create(this->value); reader->read_uint16(reader, &reserved); reader->read_uint16(reader, &count); - *offset = INSTALLED_PACKAGES_MIN_SIZE; + *offset = IETF_INSTALLED_PACKAGES_MIN_SIZE; while (reader->remaining(reader)) { diff --git a/src/libimcv/ietf/ietf_attr_installed_packages.h b/src/libimcv/ietf/ietf_attr_installed_packages.h index b79c4040c..e19d0f47b 100644 --- a/src/libimcv/ietf/ietf_attr_installed_packages.h +++ b/src/libimcv/ietf/ietf_attr_installed_packages.h @@ -1,5 +1,5 @@ /* - * Copyright (C) 2012 Andreas Steffen + * Copyright (C) 2012-2014 Andreas Steffen * HSR Hochschule fuer Technik Rapperswil * * This program is free software; you can redistribute it and/or modify it @@ -26,6 +26,7 @@ typedef struct ietf_attr_installed_packages_t ietf_attr_installed_packages_t; #include "ietf_attr.h" #include "pa_tnc/pa_tnc_attr.h" +#define IETF_INSTALLED_PACKAGES_MIN_SIZE 4 /** * Class implementing the IETF PA-TNC Installed Packages attribute. |