-
Notifications
You must be signed in to change notification settings - Fork 63
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Revert "ccnl-riot: initialize fields for default options" #214
Conversation
There's no need to revert the full commit.
This just needs to be
if I am not mistaken. struct ccnl_interest_s -> interestlifetime is in seconds, while AFAIK there's no way to interact with |
So, this means that these two variables refer to "different" (but related) topics? The first is more about a timeout of an interest (no matter which ICN flavor) and the latter is specific to NDN? Honestly, this is kind-of confusing (and also explains why @OlegHahm assigned But, maybe I'm missing something and just need more sleep. |
Ok, but the incorrect default value does not effect the functionality nor the interoperability with NDN. Somehow, at this point I did not get the problem at all. If we have arguments to change that to Milliseconds, I am open to do so. |
default_opts.ndntlv.interestlifetime = CCNL_INTEREST_TIMEOUT; at least this needs to be changed to milliseconds, because the |
ok, now I get close to the issue, so having this, we will end up with inconsistencies? In this case I do not know, if it is not a better idea to revert the PR and to really fix the issue by introducing milliseconds and by looking forward to consistent time values? |
This is generating more "fuzz" than it should be. I would suggest to define a constant /**
* Default interest lifetime in milliseconds. If the element is omitted by a user, a default
* value of 4 seconds is used.
*/
#ifndef NDN_DEFAULT_INTEREST_LIFETIME
#define NDN_DEFAULT_INTEREST_LIFETIME (4000u)
#endif and assign it to the default initialisation. I would also to suggest to postpone the whole (internal?) lifetime discussion and update #210 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Like I've mentioned in the main discussion, I would introduce a new define, probably in the ndntlv header and set it to the default of the specification (in milliseconds).
See PR #216 |
Reverts #209