Skip to content
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

interest: fix timeout calculation for suite != NDN-TLV #349

Merged
merged 1 commit into from
Feb 25, 2019

Conversation

cgundogan
Copy link
Collaborator

@cgundogan cgundogan commented Feb 25, 2019

Contribution description

Currently, the lifetime for new interests is read from pkt->s.ndntlv.interestlifetime even for packets that have an CCNx encoding. Since s.ndntlv is a union in this case, it contains something, but definitely not the correct interest lifetime for CCNx. On the other hand, the CCNx parser does not really parse the interest lifetime hop-by-hop option. This patch adds an abstraction to figure out the suite and return the correct lifetime (s.ndntlv.interestlifetime for NDN and CCNL_INTEREST_LIFETIME for CCNx and others).

Issues/PRs references

Probably related to #210

@mfrey mfrey merged commit d974957 into cn-uofbasel:master Feb 25, 2019
@cgundogan cgundogan deleted the pr_interest_timeout branch February 25, 2019 21:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants