-
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
shell: add commands to manage neighbor cache manually #2583
Conversation
5e1e069
to
8699c56
Compare
Rebased to current master |
Can I haz review? |
void _ipv6_nc_manage(int argc, char **argv) | ||
{ | ||
if (argc > 2) { | ||
kernel_pid_t iface = (kernel_pid_t)atoi(argv[2]); |
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.
Doesn't this only work for add
? For del
, argv[2] would be an ipv6 address... or am I missing something?
If not, I'd propose to just move this line below line 115.
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.
Done: Moved it.
Done for now :) |
ea1139f
to
a697517
Compare
Rebased to #2705 and addressed comments |
|
a697517
to
7ea1fb7
Compare
Rebased to current #2705 and adapted for shell handler return values. |
9f184dd
to
45554bf
Compare
Otherwise looks good to my eyes, but I don't have any strong opinons here, style-wise. @OlegHahm @haukepetersen, any complaints? |
Please comment on changes in the PR not in the commits ;-) I actually would like to add support for #2721, but that I can do later, too. |
Fixed. |
Thanks. Personally, I'd like to not let this PR linger any longer than it has to... |
Squash then? |
Yup :) (I think I need to work on the ambiguousness of my comments :D) |
ff84d58
to
63a46c8
Compare
Done, but #2705 needs to get merged before we can merge this one ;-) (I took the liberty to assign you this PR :-)) |
Oooh boy :D I have a long train ride ahead of me tomorrow, will go through it then, okay? |
Okay :-) |
63a46c8
to
bc072db
Compare
Rebased to current master, adapt to API change in #2705 and squashed |
Thank you :) ACK if travis is happy. |
shell: add commands to manage neighbor cache manually
Sorry to hop in that late: do we really want to provide these commands for every build? They seem to be rather a debugging/development tool, so I would expect them to only get linked with |
Isn't that the main purpose for the shell anyways? |
Is there a English equivalent to German "jein" (it's obviously not "yo", so maybe "nes"?). Anyway, I think you're right that the shell is usually not meant for real, productive deployment, but I would still distinguish between commands that are helpful for normal operation ( |
(Also for some reason related to #2725 I did not manage to compile any application on native with the DEVELHELP macro so this is out of the question ;-)) |
(But I see your point, but as you've said: this is not only related to this PR) |
Right. I'll open an issue. |
Sounds weird to me. Since when do we have memory issues on native? |
I don't think it's a memory issue (because without DEVELHELP everything works fine), it's just that |
But regardless: putting this into |
see #2755 |
Depends on #2461 and all its dependencies.(merged)Waiting for #2602(merged)Depends on #2705(merged)