aboutsummaryrefslogtreecommitdiffstats
path: root/icnet
diff options
context:
space:
mode:
authorMauro Sardara <msardara+fdio@cisco.com>2018-02-23 15:25:32 +0100
committerMauro Sardara <msardara+fdio@cisco.com>2018-02-23 18:34:34 +0100
commit95f3619c8be677bcd9cf3bb320c7262bbe6dc44b (patch)
treedce5ef7a24e987797f79a90a6009b40e667e1be5 /icnet
parent9b35eadcca5b19078c55a10e68abeace81cf032c (diff)
Added native PING application
Change-Id: If76818fdc90e7223e811ece0c21f8a7c67defa4c Signed-off-by: Mauro Sardara <msardara+fdio@cisco.com>
Diffstat (limited to 'icnet')
-rw-r--r--icnet/ccnx/icnet_ccnx_content_object.cc2
-rw-r--r--icnet/ccnx/icnet_ccnx_content_object.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/icnet/ccnx/icnet_ccnx_content_object.cc b/icnet/ccnx/icnet_ccnx_content_object.cc
index e4070194..da9a71f2 100644
--- a/icnet/ccnx/icnet_ccnx_content_object.cc
+++ b/icnet/ccnx/icnet_ccnx_content_object.cc
@@ -29,7 +29,7 @@ ContentObject::ContentObject()
content_type_(PayloadType::DATA) {
}
-ContentObject::ContentObject(const Name &name, uint8_t *payload, std::size_t size)
+ContentObject::ContentObject(const Name &name, const uint8_t *payload, std::size_t size)
: name_(name), content_type_(PayloadType::DATA) {
PARCBuffer *buffer = parcBuffer_CreateFromArray(payload, size);
buffer = parcBuffer_Flip(buffer);
diff --git a/icnet/ccnx/icnet_ccnx_content_object.h b/icnet/ccnx/icnet_ccnx_content_object.h
index e7e641e6..367df0be 100644
--- a/icnet/ccnx/icnet_ccnx_content_object.h
+++ b/icnet/ccnx/icnet_ccnx_content_object.h
@@ -59,7 +59,7 @@ class ContentObject : public std::enable_shared_from_this<ContentObject> {
public:
ContentObject();
- ContentObject(const Name &name, uint8_t *payload, std::size_t size);
+ ContentObject(const Name &name, const uint8_t *payload, std::size_t size);
ContentObject(const CCNxContentObjectStructure *content_object);