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

ng_sixlowpan_ctx: add compression flag support #3143

Merged
merged 3 commits into from
Jul 17, 2015

Conversation

miri64
Copy link
Member

@miri64 miri64 commented Jun 2, 2015

The compression flag allows a context to be invalidated for compression, but still be valid for decompression. This is needed for context dissimination in a LoWPAN.

@miri64 miri64 added Type: bug The issue reports a bug / The PR fixes a bug (including spelling errors) Process: API change Integration Process: PR contains or issue proposes an API change. Should be handled with care. NSTF labels Jun 2, 2015
@miri64 miri64 added this to the Network Stack Task Force milestone Jun 2, 2015
@OlegHahm OlegHahm assigned BytesGalore and unassigned OlegHahm Jun 3, 2015
@miri64 miri64 modified the milestones: Release 2015.06, Network Stack Task Force Jun 15, 2015
@miri64
Copy link
Member Author

miri64 commented Jun 15, 2015

Ping?

@OlegHahm OlegHahm assigned OlegHahm and unassigned BytesGalore Jun 23, 2015
@miri64 miri64 force-pushed the ng_sixlowpan_ctx/api/comp-flag branch from 23c81a7 to 8ea1a1c Compare July 1, 2015 20:23
@miri64
Copy link
Member Author

miri64 commented Jul 1, 2015

Rebased and adapted for changes in #3159.

*/
static inline void ng_sixlowpan_ctx_remove(uint8_t id)
{
ng_sixlowpan_ctx_lookup_id(id)->prefix_len = 0;
Copy link
Member

Choose a reason for hiding this comment

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

I would argue that one doesn't need a function for it, but that's only a weak opinion.

Copy link
Member Author

Choose a reason for hiding this comment

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

That's why it is a inline function.

Copy link
Member

Choose a reason for hiding this comment

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

I noticed, but after all this is just a suggestion to the compiler.

@miri64
Copy link
Member Author

miri64 commented Jul 16, 2015

Adressed comments

@OlegHahm OlegHahm added the CI: needs squashing Commits in this PR need to be squashed; If set, CI systems will mark this PR as unmergable label Jul 17, 2015
@OlegHahm
Copy link
Member

ACK, please squash!

miri64 added 3 commits July 17, 2015 07:59
The compression flag allows a context to be invalidated for compression,
but still be valid for decompression. This is needed for context
dissimination in a LoWPAN.
@miri64 miri64 force-pushed the ng_sixlowpan_ctx/api/comp-flag branch from 8fcc7fc to e6747b8 Compare July 17, 2015 05:59
@miri64
Copy link
Member Author

miri64 commented Jul 17, 2015

Squashed.

@miri64 miri64 added the CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR label Jul 17, 2015
@miri64 miri64 removed the CI: needs squashing Commits in this PR need to be squashed; If set, CI systems will mark this PR as unmergable label Jul 17, 2015
OlegHahm added a commit that referenced this pull request Jul 17, 2015
…flag

ng_sixlowpan_ctx: add compression flag support
@OlegHahm OlegHahm merged commit 717a4c8 into RIOT-OS:master Jul 17, 2015
}
}

if ((src_ctx != NULL) || ng_ipv6_addr_is_link_local(&(ipv6_hdr->src))) {
eui64_t iid;
eui64_t iid = { 0 };
Copy link
Member

Choose a reason for hiding this comment

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

I'm getting the following error:

.../riot/sys/net/network_layer/ng_sixlowpan/iphc/ng_sixlowpan_iphc.c: In function ‘ng_sixlowpan_iphc_encode’:
.../riot/sys/net/network_layer/ng_sixlowpan/iphc/ng_sixlowpan_iphc.c:502:13: error: missing braces around initializer [-Werror=missing-braces]
             eui64_t iid = { 0 };
             ^
.../riot/sys/net/network_layer/ng_sixlowpan/iphc/ng_sixlowpan_iphc.c:502:13: error: (near initialization for ‘iid.uint64’) [-Werror=missing-braces]

Copy link
Member

Choose a reason for hiding this comment

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

eui64_t iid = { .uint64.u64 = 0, }; works

Copy link
Member Author

Choose a reason for hiding this comment

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

(see #3435)

@miri64 miri64 deleted the ng_sixlowpan_ctx/api/comp-flag branch July 18, 2015 00:29
@miri64 miri64 added the Area: network Area: Networking label Sep 30, 2018
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 Process: API change Integration Process: PR contains or issue proposes an API change. Should be handled with care. Type: bug The issue reports a bug / The PR fixes a bug (including spelling errors)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants