shell/ccnl: use new CS add method

This commit is contained in:
PeterKietzmann 2018-05-24 13:49:40 +02:00
parent 59e18df6c8
commit d3d012c077

View File

@ -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;
}