Skip to content

gnrc_sixlowpan_frag: Expose functions to finish datagram#9483

Merged
miri64 merged 1 commit intoRIOT-OS:masterfrom
miri64:gnrc_sixlowpan_frag/enh/finish-frag
Jul 25, 2018
Merged

gnrc_sixlowpan_frag: Expose functions to finish datagram#9483
miri64 merged 1 commit intoRIOT-OS:masterfrom
miri64:gnrc_sixlowpan_frag/enh/finish-frag

Conversation

@miri64
Copy link
Copy Markdown
Member

@miri64 miri64 commented Jul 3, 2018

Contribution description

This will be used in the IPHC refactoring to control the reassembly buffer as a context.

I also adapted the name of gnrc_sixlowpan_frag_gc_rbuf() to be in line with the rest of the newer functions.

Issues/PRs references

None

@miri64 miri64 added Type: enhancement The issue suggests enhanceable parts / The PR enhances parts of the codebase / documentation Area: network Area: Networking GNRC CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR labels Jul 3, 2018
@miri64 miri64 requested a review from cgundogan July 3, 2018 12:35
@miri64 miri64 force-pushed the gnrc_sixlowpan_frag/enh/finish-frag branch from 2eb350f to 8239a02 Compare July 3, 2018 12:38
Copy link
Copy Markdown
Member

@cgundogan cgundogan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested on the the testbed. Fragmentation still works. I have a minor change request for a function name (see below), though.

* Used to construct the @ref gnrc_netif_hdr_t of the completed
* datagram. Must not be NULL.
*/
void gnrc_sixlowpan_frag_rbuf_check(gnrc_sixlowpan_rbuf_t *rbuf,
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

_check as a function name is quite misleading when there is no virtual return value. How about renaming it to _dispatch or dispatch_on_complete?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How about _dispatch_when_complete? This way it doesn't sound to be like it's supposed to be an event handler.

Copy link
Copy Markdown
Member

@cgundogan cgundogan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ACK! Please squash.

This will be used in the IPHC refactoring to control the reassembly
buffer as a context.

I also adapted the name of `gnrc_sixlowpan_frag_gc_rbuf()` to be in
line with the rest of the newer functions.
@miri64 miri64 force-pushed the gnrc_sixlowpan_frag/enh/finish-frag branch from c39f8db to 64fed62 Compare July 25, 2018 09:26
@miri64
Copy link
Copy Markdown
Member Author

miri64 commented Jul 25, 2018

Squashed

@miri64 miri64 merged commit d6b2a9e into RIOT-OS:master Jul 25, 2018
@miri64 miri64 deleted the gnrc_sixlowpan_frag/enh/finish-frag branch July 25, 2018 09:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Area: network Area: Networking CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR Type: enhancement The issue suggests enhanceable parts / The PR enhances parts of the codebase / documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants