-
Notifications
You must be signed in to change notification settings - Fork 2.1k
gnrc_sixlowpan_iphc: refactor sending for #8511 #9485
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -53,13 +53,15 @@ size_t gnrc_sixlowpan_iphc_decode(gnrc_pktsnip_t **dec_hdr, gnrc_pktsnip_t *pkt, | |
| /** | ||
| * @brief Compresses a 6LoWPAN for IPHC. | ||
| * | ||
| * @param[in,out] pkt A 6LoWPAN frame with an uncompressed IPv6 header to | ||
| * send. Will be translated to an 6LoWPAN IPHC frame. | ||
| * @pre (pkt != NULL) | ||
| * | ||
| * @param[in] pkt A 6LoWPAN frame with an uncompressed IPv6 header to send. | ||
| * Will be translated to an 6LoWPAN IPHC frame. | ||
| * @param[in] ctx Context for the packet. May be NULL. | ||
| * @param[in] page Current 6Lo dispatch parsing page. | ||
| * | ||
| * @return true, on success | ||
| * @return false, on error. | ||
| */ | ||
| bool gnrc_sixlowpan_iphc_encode(gnrc_pktsnip_t *pkt); | ||
| void gnrc_sixlowpan_iphc_send(gnrc_pktsnip_t *pkt, void *ctx, unsigned page); | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. const void *ctx,
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is not what is proposed in #8511 and we also shouldn't restrict the use of |
||
|
|
||
| #ifdef __cplusplus | ||
| } | ||
|
|
||
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.
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.
Mh... while in the current version of the code
netifisn't changed, I can see a future version wherenetifis provided as to a_send()function which then again would require casting.