-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Add a handler for ICMP Destination Unreachable #2544
base: master
Are you sure you want to change the base?
Conversation
Nodes was already able to send Destination Unreachable messages, but was not able to parse them. If DEBUG is true in `core/net/ipv6/uip-icmp6.c`, then a message is printed on the serial line.
In principle that's fine, but... perhaps we should wrap everything inside |
I'm OK for a |
I was thinking more along the lines of wrapping things inside |
Completely disable the handler (even registration) if DEBUG is not activated. Rationale: the handler does not add any functionality other than debugging. contiki-os#2544
Completely disable the handler (even registration) if DEBUG is not activated. Rationale: the handler does not add any functionality other than debugging. contiki-os#2544
I understand your point. I did not think at the memory footprint. However, I do not share the conclusion. Not really about the memory footprint itself, but because of the code clarity. I feel unclear to find a debug-independant code in a Feel free to cherry-pick the commit I did for my tests if you stick to your opinion : drakkar-lig/contiki@6708fae For information (not for the debate : I understand this is not a question of quantity, but a question of principle), I tested it: the handler & registration code is 64B more in .txt, 12B in .data, and 8B in .bss. |
doxygen: add groups for Gecko
Previously, they were silently ignored, because of no handler. Now, some debug information message is written on serial, that's all.