-
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
struct ccnl_buf_s has only one byte of data #7
Comments
On Mon, 2 Sep 2013, Christian Mehlis wrote:
The ccnl_buf_s structure is but a header. The len of 1 is correct (with 0, which I would have preferred, the The real length of a buffer is allocated in ccnl-core.c#L35 best, christian |
I see, you are right. I don't see a better way to implement this without this dummy array. Perhaps a comment in source code would be nice for the next time someone is confused. |
…able fixup retrans timeout
https://github.com/cn-uofbasel/ccn-lite/blob/master/ccnl-core.h#L112
I think this should be like
MAX_DATA_LEN
not1
the data field is used for storing the content, right now it uses the memory after this struct. this struct is created via
calloc
, so we are in the heap.The text was updated successfully, but these errors were encountered: