Conversation
There was a problem hiding this comment.
changing the inequality to prev < NG_IPV6_NC_SIZE + ncache might be preferable. In this case the cpu might cache the right hand side in one of its registers, hence computing it only once.
|
I don't like the use of the ITER... macros here. Except having to write 3 lines less of code for iterating (and no saving of code size whatsoever), these macros don't have any other benefit. So far we were able to keep RIOT largely free of function-style-macros, and I think we should keep it that way! |
|
This is an iterator macro, not a function-style-macro... |
|
Okay. I'll remove the macros. |
|
Done |
9f184dd to
45554bf
Compare
485bdeb to
b96818c
Compare
|
Rebased to current master and adapted shell commands for the iterators (adds commands for listing neighbors and routers) |
|
I think this PR does a little bit more than its description indicates. |
|
I don't think so, but please tell me what is too much. |
|
I was referring mostly to the shell command. |
|
That's just extends the shell command by this particular functionality in this PR. I wanted to add this in #2583 already, but I wanted to keep the dependencies of that one low, so I retrofitted it in here. In light of #2755 it might be a good idea however to make |
|
Ping? |
|
ACK |
ccc6e3c to
188c1a4
Compare
|
Squashed |
Adds iterators for the neighbor cache. Inspired by iterators in
utlist.