contiki-os / contiki

The official git repository for Contiki, the open source OS for the Internet of Things
http://www.contiki-os.org/
Other
3.71k stars 2.58k forks source link

Possible mistake in code while sending Router Advertisement? #944

Open darkopetrovic opened 9 years ago

darkopetrovic commented 9 years ago

In the function uip_nd6_ra_output() in core/net/ipv6/uip-nd6.c, why the Prefix Information option is disabled when the device is set as a router (UIP_CONF_ROUTER=1)?

This function is in any case never called when the device is not a router.

???

ioannisg commented 9 years ago

I have seen this issue, as well. I think the guard macro must be removed, so RAs do have a prefix information option, RAs should be sent when the mote operates as a standard IPV6 router (not RPL) right?