From a8b3c9f535ba4182a13047e2d70c486401b1915b Mon Sep 17 00:00:00 2001 From: Lotte Steenbrink Date: Wed, 17 Dec 2014 02:09:09 -0800 Subject: [PATCH] exclude ``ipv6_iface_set_routing_provider()`` from ``#ifdef MODULE_RPL`` so that other routing protocols can use it too. --- sys/net/network_layer/sixlowpan/ip.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sys/net/network_layer/sixlowpan/ip.c b/sys/net/network_layer/sixlowpan/ip.c index bf7ee6480f..1a53e2f025 100644 --- a/sys/net/network_layer/sixlowpan/ip.c +++ b/sys/net/network_layer/sixlowpan/ip.c @@ -863,13 +863,14 @@ void ipv6_register_next_header_handler(uint8_t next_header, kernel_pid_t pid) break; } } -#ifdef MODULE_RPL + /* register routing function */ void ipv6_iface_set_routing_provider(ipv6_addr_t *(*next_hop)(ipv6_addr_t *dest)) { ip_get_next_hop = next_hop; } +#ifdef MODULE_RPL /* register source-routing indicator function */ void ipv6_iface_set_srh_indicator(uint8_t (*srh_indi)(void)) {