-
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
ipv6/nc: doc fix and unittest for unmanaged nc entries #4721
Conversation
Actually it is, because with this manually added entries (which are UNMANAGED) are never reachable... |
d8ffc36
to
4fb3ff8
Compare
9cba6e8
to
e0bf46c
Compare
ah you are right. I tried to reorder the macros to move the unmanaged bit further in the direction of the MSB, |
@@ -88,7 +88,6 @@ extern "C" { | |||
#define GNRC_IPV6_NC_IS_ROUTER (0x08) /**< The neighbor is a router */ | |||
|
|||
#define GNRC_IPV6_NC_TYPE_MASK (0x30) /**< Mask for neighbor cache state */ | |||
#define GNRC_IPV6_NC_TYPE_POS (4) /**< Shift of neighbor cache state */ |
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.
Huh?
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.
unused code. Or is that also intended as a reminder? (:
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.
Really?
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.
Ah okay… probably legacy code from the beginning of the API. Can be removed indeed.
Ack and go. |
ipv6/nc: doc fix and unittest for unmanaged nc entries
This PR includes some doc fixes and a minor enhanced version ofgnrc_ipv6_nc_is_reachable()
.The old version ofgnrc_ipv6_nc_is_reachable()
also returnedtrue
forGNRC_IPV6_NC_STATE_UNMANAGED
while the new enhanced version will returnfalse
for that case. I guess this shouldn't be a problem @authmillenon ?Nevertheless, the new version eats slightly less ROM.Ignore the below size comparisons