-
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
net: initial import of an IPv6 neighbor cache #2461
Conversation
@@ -0,0 +1,40 @@ | |||
/* | |||
* Copyright (C) 2014 Martin Lenders <[email protected]> |
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.
Aren't this date & name deprecated? :)
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.
Yes. It seems I have a broken template somewhere :D
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.
(This file is part of #2433 but thanks, never the less)
b051f47
to
1f5d857
Compare
Rebased to current master |
/** | ||
* @brief The size of the neighbor cache | ||
*/ | ||
#define NG_IPV6_NC_SIZE (NG_NETIF_NUMOF * 8) |
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.
is 8 big enough? I would definitely put an #ifndef...
around this, so that the application designer - who might know more about expected node degree - can overwrite this.
I guess it's too earlier for a review, right? |
I think so too ;-) |
9f5a25a
to
aafaf38
Compare
cdf108b
to
f10d6ea
Compare
No longer WIP (except for tests) |
f10d6ea
to
d097c22
Compare
No longer WIP |
Depends on #2546 for debug output |
9186e0c
to
94f12c0
Compare
Rebased to current #2546. |
}; | ||
|
||
test_ipv6_nc_add__success(); | ||
ng_ipv6_nc_remove(TEST_UINT16 + 1, &addr); |
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.
Why + 1
?
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.
To have another interface than the already registered one
Addressed comments. |
rebase is required. |
TEST_ASSERT(ng_ipv6_addr_equal(&(entry->ipv6_addr), &addr)); | ||
TEST_ASSERT_EQUAL_STRING(TEST_STRING4, (char *)entry->l2_addr); | ||
TEST_ASSERT_EQUAL_INT(sizeof(TEST_STRING4), entry->l2_addr_len); | ||
TEST_ASSERT_EQUAL_INT(0, entry->flags); |
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.
If this the only additional test, why do we need a separate function?
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.
No, this is an interface global search (see https://github.com/RIOT-OS/RIOT/pull/2461/files#diff-bfdde70ccc3110439add7db00ff1edd6R200). But yes, this test is missing in test_ipv6_nc_get__success1();
7162e66
to
1b35c99
Compare
Rebased |
Addressed comments |
ACK, please squash. |
78508d2
to
1d25aff
Compare
Rebased |
1d25aff
to
e740c6f
Compare
Sigh, after 6 h of idling Travis realized there was some missing documentation. So here we go again -.- |
net: initial import of an IPv6 neighbor cache
Finally :D |
Woohoo! |
(now onwards to #2437?) |
That's not my assignment. 😏 |
Depends on #2433mergedDepends on #2546 for debug outputmerged