shell/ccnl: use new CS add method
This commit is contained in:
parent
59e18df6c8
commit
d3d012c077
@ -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;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user