-
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
remove iot tlv from ccn-lite #222
Conversation
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.
I did not go through the changes line by line.
What I can say:
-
scripted demo scenarios from Tutorial in Berlin are good
-
scripted NFN demo is good.
-
NFN demos uses:
ICN data transfers from cache and from NFN.
NFN computations and communication with
NFN-scala.
PIT for dedupblication and FIB for forwarding -
this is true for NDN and CCNx
So I conclude from this, that none of the existing functions and features is broken for OSX and Unix.
RIOT should be evaluated by Cenk. We should wait for his OK
@@ -71,8 +71,6 @@ ccnl_echo_request(struct ccnl_relay_s *relay, struct ccnl_face_s *inface, | |||
ucp = reply->data; | |||
len = reply->datalen; | |||
|
|||
while (!ccnl_switch_dehead(&ucp, &len, &enc)); // for iot2014 encoding |
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.
@blacksheeep I am not very familiar with this program. Is it safe to remove this line here (despite the comment saying it's just for iottlv, maybe the comment is wrong?)
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.
Neither me, and we have a lack of documentation.
I think this functionality is only required to distinguish CISTLV and IOTTLV, so that it can be removed.
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.
Here's a list of places in the code that still refer to IOT TLV:
- https://github.com/mfrey/ccn-lite/blob/c28511cdec2bab17552cf165ad16a792c53ac3fb/doc/internal/README-multiprotocol.md
- https://github.com/mfrey/ccn-lite/blame/c28511cdec2bab17552cf165ad16a792c53ac3fb/README.md#L175
- https://github.com/mfrey/ccn-lite/blob/c28511cdec2bab17552cf165ad16a792c53ac3fb/src/CMakeLists.txt#L61
- https://github.com/mfrey/ccn-lite/blob/c28511cdec2bab17552cf165ad16a792c53ac3fb/src/build-test.mk#L81
- https://github.com/mfrey/ccn-lite/blob/c28511cdec2bab17552cf165ad16a792c53ac3fb/src/build-test.mk#L96
- https://github.com/mfrey/ccn-lite/blob/c28511cdec2bab17552cf165ad16a792c53ac3fb/src/ccn-lite-simu.c#L42
- https://github.com/mfrey/ccn-lite/blob/c28511cdec2bab17552cf165ad16a792c53ac3fb/src/ccnl-android/native/CMakeLists.txt#L44
- https://github.com/mfrey/ccn-lite/blob/c28511cdec2bab17552cf165ad16a792c53ac3fb/src/ccnl-android/native/src/ccn-lite-android.c#L685
- https://github.com/mfrey/ccn-lite/blob/c28511cdec2bab17552cf165ad16a792c53ac3fb/src/ccnl-android/native/src/ccn-lite-jni.c#L153 (seems to be a bug here)
- https://github.com/mfrey/ccn-lite/blob/c28511cdec2bab17552cf165ad16a792c53ac3fb/src/ccnl-core/include/ccnl-defs.h#L98
- https://github.com/mfrey/ccn-lite/blob/c28511cdec2bab17552cf165ad16a792c53ac3fb/src/ccnl-core/include/ccnl-defs.h#L121
- https://github.com/mfrey/ccn-lite/blob/c28511cdec2bab17552cf165ad16a792c53ac3fb/src/ccnl-core/src/ccnl-frag.c#L49 (note about depcretation for IOT TLV?)
- https://github.com/mfrey/ccn-lite/blob/c28511cdec2bab17552cf165ad16a792c53ac3fb/src/ccnl-core/src/ccnl-interest.c#L90
- https://github.com/mfrey/ccn-lite/blob/c28511cdec2bab17552cf165ad16a792c53ac3fb/src/ccnl-core/src/ccnl-pkt.c#L61
- https://github.com/mfrey/ccn-lite/blob/c28511cdec2bab17552cf165ad16a792c53ac3fb/src/ccnl-core/src/ccnl-pkt.c#L112
- https://github.com/mfrey/ccn-lite/blob/c28511cdec2bab17552cf165ad16a792c53ac3fb/src/ccnl-core/src/ccnl-relay.c#L652
- https://github.com/mfrey/ccn-lite/blob/c28511cdec2bab17552cf165ad16a792c53ac3fb/src/ccnl-lnxkernel/ccn-lite-lnxkernel.c#L42
- https://github.com/mfrey/ccn-lite/blob/c28511cdec2bab17552cf165ad16a792c53ac3fb/src/doc/Doxyfile.in#L2064
These (still) match to enum {
CCNL_ENC_CCNB,
CCNL_ENC_NDN2013,
CCNL_ENC_CCNX2014,
CCNL_ENC_IOT2014,
CCNL_ENC_LOCALRPC,
CCNL_ENC_CISCO2015
}; In theory it should be fine just to remove What we can do is:
enum {
CCNL_ENC_CCNB = 0,
CCNL_ENC_NDN2013 = 1,
CCNL_ENC_CCNX2014 = 2,
CCNL_ENC_LOCALRPC = 3,
CCNL_ENC_CISCO2015 = 4
};
|
@cgundogan |
I've added doxygen documentation to the enum and also added a typedef. I removed the enum members from the readme (unfortunately, I can't point to an online documentation) and made a remark where to find the enum. @cgundogan care to check the PR again? |
doc/internal/README-multiprotocol.md
Outdated
@@ -15,7 +15,7 @@ potentially confronted with packets encoded in different schemas like | |||
ccnb, CCNx2014 or NDN2013. In the past it was possible to discriminate | |||
among these packets because luckily enough the "type values" were | |||
sparsely populated and the programmers had chosen code points that do | |||
not overlap. But with the compact IOT2014 format, there is no sparsity | |||
not overlap. But with no packet formats, there might be no sparsity |
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.
But with no packet formats, there might be no sparsity
Hmm, this sounds weird now ..
Maybe just remove this block:
In the past it was possible to discriminate among these packets because luckily enough the "type values" were sparsely populated and the programmers had chosen code points that do not overlap. But with no packet formats, there might be no sparsity anymore.
?
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.
That's right. It was supposed to be "new" and not "no". Would that work for you?
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.
looks alright now, please squash
1e6262b
to
6701675
Compare
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.
looks great. ACK
okay, it builds (again?). could someone please approve? |
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.
ACK again
This PR removes support for the IOT TLV format (and addresses #212). After the review and approval the commits need to be squashed before merging. I've basically tried to split the whole removal process into small pieces, so reverting (if necessary) should be easier.