1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-01-17 04:52:59 +01:00

ccnl: added 'content is dup' debug message

This commit is contained in:
Christian Mehlis 2014-01-11 18:28:32 +01:00
parent 2e1b0b513e
commit b157304481

View File

@ -1325,10 +1325,12 @@ int ccnl_core_RX_i_or_c(struct ccnl_relay_s *relay, struct ccnl_face_s *from,
from->stat.received_content++;
// CONFORM: Step 1:
for (c = relay->contents; c; c = c->next)
for (c = relay->contents; c; c = c->next) {
if (buf_equal(c->pkt, buf)) {
goto Skip; // content is dup
DEBUGMSG(1, "content is dup: skip\n");
goto Skip;
}
}
c = ccnl_content_new(relay, &buf, &p, &ppkd, content, contlen);