From 6c4d5312aef77c9e952d2b6e5cbefc88e59db0ec Mon Sep 17 00:00:00 2001 From: Simon Duquennoy Date: Fri, 3 Jun 2016 22:06:05 +0200 Subject: [PATCH] uip-icmp6.c: call rpl_insert_header only when UIP_CONF_IPV6_RPL is set --- core/net/ipv6/uip-icmp6.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/net/ipv6/uip-icmp6.c b/core/net/ipv6/uip-icmp6.c index 582f49ba3..d246a4d58 100644 --- a/core/net/ipv6/uip-icmp6.c +++ b/core/net/ipv6/uip-icmp6.c @@ -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.ip.sent); +#if UIP_CONF_IPV6_RPL rpl_insert_header(); +#endif /* UIP_CONF_IPV6_RPL */ tcpip_ipv6_output(); } /*---------------------------------------------------------------------------*/