Skip to content
Snippets Groups Projects
Commit b1573044 authored by Christian Mehlis's avatar Christian Mehlis
Browse files

ccnl: added 'content is dup' debug message

parent 2e1b0b51
No related branches found
No related tags found
No related merge requests found
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment