-
Notifications
You must be signed in to change notification settings - Fork 63
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
issue in ccnl_mkSimpleContent #207
Comments
I've uploaded the code for this example over here. |
In order to compile your example I had to apply some changes: https://gist.github.com/OlegHahm/5c6034994e324f6c2769c00fc6802f7a and build with |
Since there seems to be no documentation on So, yes, I can confirm the behavior. Yes, it is confusing. No, I have no idea what was the intentions (if any) behind that. |
I can also confirm the behavior, but I have no idea, why it is like it is. |
So we can agree that It is pointing to the wrong position in the buffer and make it a bug? |
Yes, I think so |
Hi,
I've encountered an issue while using
ccnl_mkContentObject
. Basically, the pointer to the content (returned via the function) does not match the content I've passed to the function. I've started to narrow it down and basically there seems to be something wrong withUnfortunately, copy/paste in my VM setup does not work, but I basically provided my own local producer function which in turn calls
ccnl_mkSimpleContent
. The following screenshot depicts an interest/foo/bar
which triggers the call of my local producer which tries to create content. The content is set to "RIOT!" (meaning no matter which name you pass via an interest, it will always create a corresponding NDO containing a "RIOT!" string).What you notice is that the offset is
25
while the actual content is at offset18
. Speaking again about the listing above, the data inc_p->content
is not pointing to actual data I've passed toccnl_mkSimpleContent
.First, am I missing something? Second, can somebody confirm this behaviour?
TIA
The text was updated successfully, but these errors were encountered: