pkg: udpate ccn-lite version to include patches for RIOT#6364
pkg: udpate ccn-lite version to include patches for RIOT#6364smlng wants to merge 2 commits intoRIOT-OS:masterfrom
Conversation
|
is needed by #6341 |
|
cn-uofbasel/ccn-lite#100 is merged. |
13b846c to
2b258e2
Compare
|
fixed version to latest head (including merge commit) of ccn-lite. Jenkins was already fine with the version, lets give Murdock a try as well. |
c8a44fd to
02c71af
Compare
|
@OlegHahm had to remove not required patch to make it work - Jenkins found it. Anyhow, Murdock wasn't done yet, so lets wait for it. |
|
Hm, apparently there is more to be done. |
|
but macOS works 😜 anyhow, I'll see to it - more PRs at ccn-lite, then |
| for (pi = i->pending; pi; pi = pi->next) { // check whether already listed | ||
| if (pi->face == from) { | ||
| DEBUGMSG_CORE(DEBUG, " we found a matching interest, updating time\n"); | ||
| - pi->last_used = CCNL_NOW(); |
There was a problem hiding this comment.
I thought we ignore whitespace errors of external packages?
There was a problem hiding this comment.
was my editor that deleted them automatically ...
afdaaf7 to
f28b942
Compare
| DEBUGMSG_CFWD(DEBUG, " content not added to cache\n"); | ||
| free_content(c); | ||
| @@ -201,7 +201,7 @@ ccnl_fwd_handleInterest(struct ccnl_relay_s *relay, struct ccnl_face_s *from, | ||
| int nonce = 0; |
There was a problem hiding this comment.
I think this better should be int32_t ...
|
added a new patch to get rid of those compiler errors on linux and ARM none eabi platforms. If these succeed I may open a similar PR directly at ccn-lite. |
| if (pkt != NULL && (*pkt) != NULL && (*pkt)->s.ndntlv.nonce != NULL) { | ||
| if ((*pkt)->s.ndntlv.nonce->datalen == 4) { | ||
| - nonce = *((int*)(*pkt)->s.ndntlv.nonce->data); | ||
| + memcpy(&nonce, (*pkt)->s.ndntlv.nonce->data, 4); |
There was a problem hiding this comment.
the original code causes a strict-alignment error by the compiler. memcpy is one possible fix, another would be to change the struct behind this <- hence, I found using memcpy less intrusive.
In general, it seems rather opportunistic to assume an int has size 4 on any platform, or not? So additionally, it might be better to define int32_t nounce = 0 as I suggested above.
f28b942 to
427fabf
Compare
|
the patch added does the same as PR 102 for ccn-lite, if that gets merged, I would remove the patch here and update the package version accordingly: @OlegHahm or @cgundogan someone feels lucky to merge the referenced PR for ccn-lite? |
|
Too late. ;) |
427fabf to
02e37d3
Compare
02e37d3 to
738f754
Compare
|
depends on #6399 |
|
obsoleted by #6399 |
replaces #6352 to bump ccn-lite package version as soon as their PR 100 is merged