uip-icmp6.c: call rpl_insert_header only when UIP_CONF_IPV6_RPL is set

This commit is contained in:
Simon Duquennoy 2016-06-03 22:06:05 +02:00 committed by Simon Duquennoy
parent 4208973017
commit 6c4d5312ae

View File

@ -301,7 +301,9 @@ uip_icmp6_send(const uip_ipaddr_t *dest, int type, int code, int payload_len)
UIP_STAT(++uip_stat.icmp.sent); UIP_STAT(++uip_stat.icmp.sent);
UIP_STAT(++uip_stat.ip.sent); UIP_STAT(++uip_stat.ip.sent);
#if UIP_CONF_IPV6_RPL
rpl_insert_header(); rpl_insert_header();
#endif /* UIP_CONF_IPV6_RPL */
tcpip_ipv6_output(); tcpip_ipv6_output();
} }
/*---------------------------------------------------------------------------*/ /*---------------------------------------------------------------------------*/