From 65719adc9338125eef642ccf9a38b8872d071946 Mon Sep 17 00:00:00 2001 From: Mariano Alvira Date: Thu, 10 May 2012 16:32:55 -0400 Subject: [PATCH] Set the R flag in NAs if UIP_CONF_ROUTER --- core/net/uip-nd6.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/core/net/uip-nd6.c b/core/net/uip-nd6.c index a52962aef..d0b7dac99 100644 --- a/core/net/uip-nd6.c +++ b/core/net/uip-nd6.c @@ -278,6 +278,10 @@ uip_nd6_ns_input(void) create_na: + /* If the node is a router it should set R flag in NAs */ +#if UIP_CONF_ROUTER + flags = flags | UIP_ND6_NA_FLAG_ROUTER; +#endif uip_ext_len = 0; UIP_IP_BUF->vtc = 0x60; UIP_IP_BUF->tcflow = 0;