diff --git a/sys/shell/commands/sc_ccnl.c b/sys/shell/commands/sc_ccnl.c index e843624860..5a3b62571d 100644 --- a/sys/shell/commands/sc_ccnl.c +++ b/sys/shell/commands/sc_ccnl.c @@ -130,8 +130,12 @@ int _ccnl_content(int argc, char **argv) struct ccnl_content_s *c = 0; struct ccnl_pkt_s *pk = ccnl_ndntlv_bytes2pkt(typ, olddata, &data, &arg_len); c = ccnl_content_new(&pk); - ccnl_content_add2cache(&ccnl_relay, c); c->flags |= CCNL_CONTENT_FLAGS_STATIC; + msg_t m = { .type = CCNL_MSG_CS_ADD, .content.ptr = c }; + + if(msg_send(&m, ccnl_event_loop_pid) < 1){ + puts("could not add content"); + } return 0; }