ccn-lite icon indicating copy to clipboard operation
ccn-lite copied to clipboard

interest lifetime is encoded as seconds in ccnl_interest_new

Open mfrey opened this issue 6 years ago • 0 comments

Hi,

the interest lifetime in NDN interests is set by default to CCNL_INTEREST_TIMEOUT. The constant is in seconds, but the specification states that the lifetime is milliseconds. In ccnl-relay.c

 327     /* currently, the aging function relies on seconds rather than on milli seconds */
 328     i->lifetime = (*pkt)->s.ndntlv.interestlifetime / 1000;    

The lifetime is encoded as seconds, but it should be milliseconds. I propose to set the constant CCNL_INTEREST_TIMEOUT to milliseconds and transform either the field upon reception into seconds or in the aging function (so the field is always milliseconds and nobody gets confused).

Best, Michael

mfrey avatar Mar 05 '18 11:03 mfrey