-
Notifications
You must be signed in to change notification settings - Fork 2k
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
sixlowpan: iphc: fix dependencies for udp and nhc #4540
sixlowpan: iphc: fix dependencies for udp and nhc #4540
Conversation
@@ -77,7 +77,8 @@ typedef enum { | |||
#ifdef MODULE_GNRC_TCP | |||
GNRC_NETTYPE_TCP, /**< Protocol is TCP */ | |||
#endif | |||
#ifdef MODULE_GNRC_UDP | |||
#if defined(MODULE_GNRC_UDP) || \ | |||
(defined(MODULE_GNRC_SIXLOWPAN_IPHC_NHC) && defined(MODULE_GNRC_SIXLOWPAN_ND_BORDER_ROUTER)) |
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.
Make it just MODULE_GNRC_SIXLOWPAN_IPHC_NHC
. There is no need for the relation to gnrc_udp
since no functions from that module is used. If we want to make UDP support for NHC optional we should introduce a pseudo module gnrc_sixlowpan_iphc_nhc_udp
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 have to test here for udp || iphc_nhc, for scenarios where we want to use udp but not iphc_nhc (this is nettype.h
)
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.
Make set to UNDEF if UDP is not available ;)
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.
Make set to UNDEF if UDP is not available ;)
I do not understand - it's too late for my brain. Could you elaborate?
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.
See cgundogan#9
ffe430e
to
7f57951
Compare
addressed comments |
@@ -77,7 +77,7 @@ typedef enum { | |||
#ifdef MODULE_GNRC_TCP | |||
GNRC_NETTYPE_TCP, /**< Protocol is TCP */ | |||
#endif | |||
#ifdef MODULE_GNRC_UDP | |||
#if defined(MODULE_GNRC_UDP) || defined(MODULE_GNRC_SIXLOWPAN_IPHC_NHC) |
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, that could have implications to netreg size
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 cgundogan#9)
merged cgundogan#9 as proposed by @authmillenon |
Please squash down to one commit. Will try to test as soon as I have a border router scenario running. |
32e8817
to
7d62851
Compare
squashed |
As soon as this is backported I make a new RC |
I will create the backport as soon as you ACK |
I can't test, because for some reason |
sixlowpan: iphc: fix dependencies for udp and nhc
This PR tries to fix the dependency issue that we have with udp <-> nhc <-> border routers (#4462 (comment)).
Not sure if I like this solution, nevertheless, I put this on the table for review.
@authmillenon @jfischer-phytec-iot please review