File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -355,6 +355,7 @@ uip_icmp6_echo_reply_callback_rm(struct uip_icmp6_echo_reply_notification *n)
355355}
356356
357357/*---------------------------------------------------------------------------*/
358+ #if DEBUG & DEBUG_PRINT
358359static void
359360destination_unreachable_input (void )
360361{
@@ -383,22 +384,27 @@ destination_unreachable_input(void)
383384
384385 return ;
385386}
387+ #endif
386388
387389/*---------------------------------------------------------------------------*/
388390UIP_ICMP6_HANDLER (echo_request_handler , ICMP6_ECHO_REQUEST ,
389391 UIP_ICMP6_HANDLER_CODE_ANY , echo_request_input );
390392UIP_ICMP6_HANDLER (echo_reply_handler , ICMP6_ECHO_REPLY ,
391393 UIP_ICMP6_HANDLER_CODE_ANY , echo_reply_input );
394+ #if DEBUG & DEBUG_PRINT
392395UIP_ICMP6_HANDLER (destination_unreachable_handler , ICMP6_DST_UNREACH ,
393396 UIP_ICMP6_HANDLER_CODE_ANY , destination_unreachable_input );
397+ #endif
394398/*---------------------------------------------------------------------------*/
395399void
396400uip_icmp6_init ()
397401{
398402 /* Register Echo Request and Reply handlers */
399403 uip_icmp6_register_input_handler (& echo_request_handler );
400404 uip_icmp6_register_input_handler (& echo_reply_handler );
405+ #if DEBUG & DEBUG_PRINT
401406 uip_icmp6_register_input_handler (& destination_unreachable_handler );
407+ #endif
402408}
403409/*---------------------------------------------------------------------------*/
404410/** @} */
You can’t perform that action at this time.
0 commit comments