-
Notifications
You must be signed in to change notification settings - Fork 83
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
feat: support start/stop fragment marker #813
Merged
Mallets
merged 32 commits into
eclipse-zenoh:main
from
ZettaScaleLabs:feat/fragment_marker
Dec 5, 2024
Merged
Changes from all commits
Commits
Show all changes
32 commits
Select commit
Hold shift + click to select a range
1f4cf1d
feat: support start/stop fragment marker
wyfo 6837602
fix: fix test
wyfo ad94190
fix: typo
wyfo c5f50ac
fix: format
wyfo 3736054
fix: fragment ext encoding
wyfo 218019a
fix: rename start/stop marker to first/drop
wyfo 0c5f62b
Update src/protocol/codec/transport.c
wyfo 0f2a139
Update src/protocol/definitions/transport.c
wyfo c93e694
Update src/protocol/definitions/transport.c
wyfo 8c55511
Update src/protocol/codec/transport.c
wyfo e997fc4
Update src/transport/unicast/rx.c
wyfo b42dca2
Update src/transport/unicast/rx.c
wyfo 223d085
Update src/transport/multicast/rx.c
wyfo a05524d
Update src/protocol/definitions/transport.c
wyfo 107ac1a
Update src/protocol/definitions/transport.c
wyfo bd89a76
Update src/protocol/codec/transport.c
wyfo 645acc4
Update src/protocol/codec/transport.c
wyfo 002a0e1
Update src/protocol/codec/transport.c
wyfo 47d15e1
Update src/transport/multicast/rx.c
wyfo 524b3df
Update src/transport/multicast/rx.c
wyfo daa56a0
Update src/transport/multicast/rx.c
wyfo 1ba505b
Update src/transport/unicast/rx.c
wyfo 1b681bb
Update src/transport/unicast/rx.c
wyfo 5490645
Update src/transport/unicast/rx.c
wyfo 1b36f8e
fix: apply PR feedbacks
wyfo bca36bd
fix: apply PR feedbacks
wyfo 733a23d
fix: initializing all the fields is always a good idea
wyfo e73ce42
fix: add _patch field in copy functions
wyfo e55c499
fix: typo
wyfo 6da6c45
fix: format
wyfo 3fa9b5d
fix: reset dbuf instead of clear
wyfo 9320775
fix: format
wyfo File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Just a nit and I see there are some that precedes that PR, but all conditions should be booleans so the
== true / false
would be redundant and 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.
See #813 (comment)
I asked before writing the code, but didn't understand Sasha's answer ^_^' (I would never have the idea to write
== true
if I had not seen it everywhere in the code)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.
@sashacmc @jean-roland @wyfo this is about MISRA-C rules: https://stackoverflow.com/questions/44131637/misra-c-2012-rule-10-1-boolean-operand-to-be-used-in-case-where-expression-is-of
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.
AFAIK, MISRA-C rules about using non-boolean values as boolean expression:
e. g.
but this kind of expression is absolutely legal:
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.
Well, yes but I also believe it depends on the static analyser... I'm not saying we should use
== true
, I was just providing a bit more context :)