From d3d012c07754bb51a5e5ed4169fd8cb3d84510b2 Mon Sep 17 00:00:00 2001 From: PeterKietzmann Date: Thu, 24 May 2018 13:49:40 +0200 Subject: [PATCH] shell/ccnl: use new CS add method --- sys/shell/commands/sc_ccnl.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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; }