Skip to content
Snippets Groups Projects
Commit d3d012c0 authored by Peter Kietzmann's avatar Peter Kietzmann
Browse files

shell/ccnl: use new CS add method

parent 59e18df6
No related branches found
No related tags found
No related merge requests found
...@@ -130,8 +130,12 @@ int _ccnl_content(int argc, char **argv) ...@@ -130,8 +130,12 @@ int _ccnl_content(int argc, char **argv)
struct ccnl_content_s *c = 0; struct ccnl_content_s *c = 0;
struct ccnl_pkt_s *pk = ccnl_ndntlv_bytes2pkt(typ, olddata, &data, &arg_len); struct ccnl_pkt_s *pk = ccnl_ndntlv_bytes2pkt(typ, olddata, &data, &arg_len);
c = ccnl_content_new(&pk); c = ccnl_content_new(&pk);
ccnl_content_add2cache(&ccnl_relay, c);
c->flags |= CCNL_CONTENT_FLAGS_STATIC; 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; return 0;
} }
......
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