Closed mfrey closed 5 years ago
The member freshnessperiod
of the struct ccnl_content_s
seems to be set in ccnl_content_new
but is never used throughout the code?
The member last_used
of struct ccnl_content_s
seems to handle the staleness/non-stale indication of data packets.
740 if ((c->last_used + (c->pkt->s.ndntlv.freshnessperiod / 1000)) <= (uint32_t) t) {
If unsused, I think the field can be removed.
The definition of struct
ccnl_content.h
contains a memberfreshnessperiod
However, the freshnessperiod seems also to be defined in
ccnl_packet.h
, e.g.This seems a bit too redundant too me, but maybe I'm missing the point?