zephyr/net/ip
Sebastien Griffoul fb8d7625d1 net: ipv6: Fix net_set_mac function
The ethernet driver calls net_set_mac before net_init is
called (ie before the uip stack has been fully initialized).
Unfortunately net_set_mac calls the function uip_ds6_set_lladdr.
Therefore this function is called before uip_ds6_init: this is an
issue as uip_ds6_set_lladdr is setting some static data which are
going to be erased by uip_ds6_init. In some case it could even lead
to a system hang due to a timer set twice.

To fix this issue net_set_mac should check whether net_init has been
already called. If not net_set_mac should simply copies the mac
address into uip_lladdr. Indeed uip_ds6_init automatically calls
uip_ds6_set_lladdr for the address stored into uip_lladdr.

Change-Id: Ifbcb07e7cd493b6284a85d70f2439d434cebbb00
Signed-off-by: Sebastien Griffoul <sebastien.griffoul@intel.com>
2016-05-26 12:24:43 +00:00
..
contiki net: 6lowpan: Fix 6lowpan fragmentation 2016-05-19 14:18:38 +00:00
er-coap net: Enable TCP support 2016-04-25 09:40:32 +03:00
rest-engine net: Enable TCP support 2016-04-25 09:40:32 +03:00
tinydtls net: Enable TCP support 2016-04-25 09:40:32 +03:00
Kconfig Cleanup whitespace in Kconfig files 2016-05-25 13:28:07 -05:00
Kconfig.debug net: Enable TCP support 2016-04-25 09:40:32 +03:00
Makefile net/ip: Fix Makefile typo 2016-05-11 21:18:56 +00:00
cc2520_15_4_radio.h cc2520: Initial checkin for TI CC2520 802.15.4 driver 2016-02-05 20:25:23 -05:00
dummy_15_4_radio.c net: 802.15.4: Fix the dummy driver 2016-03-03 07:17:56 +00:00
dummy_15_4_radio.h net: 15.4: Add 802.15.4 driver and 802.15.4 loopback radio driver 2016-02-05 20:14:30 -05:00
ip_buf.c net: Clear the connection pointer when net_buf is allocated 2016-05-24 04:51:58 +00:00
l2_buf.c net: contiki: move neighbor_list to struct l2_buf 2016-03-16 14:20:56 +00:00
net_context.c net: tcp: Fix the TCP client not sending multiple SYN 2016-05-20 12:59:08 +03:00
net_core.c net: ipv6: Fix net_set_mac function 2016-05-26 12:24:43 +00:00
net_driver_15_4.c net: 6lowpan: Fix 6lowpan fragmentation 2016-05-19 14:18:38 +00:00
net_driver_15_4.h net: Refactor code to use new generic net_buf API 2016-02-05 20:24:46 -05:00
net_driver_bt.c net: 6lowpan: Fix 6lowpan fragmentation 2016-05-19 14:18:38 +00:00
net_driver_bt.h net: Network driver for Bluetooth 6LoWPAN connections 2016-02-05 20:24:59 -05:00
net_driver_ethernet.c net: Fix ethernet headers in ipv6 2016-05-04 13:36:56 +00:00
net_driver_ethernet.h net: Refactor code to use new generic net_buf API 2016-02-05 20:24:46 -05:00
net_driver_loopback.c net: Fix not setting loopback address in loopback driver 2016-02-05 20:25:09 -05:00
net_driver_loopback.h net/loopback: add missing license 2016-05-10 05:16:20 +00:00
net_driver_slip.c net: Removed obsolete print defines from slip driver 2016-04-18 12:07:19 +00:00
net_driver_slip.h net: slip: Add slip driver for testing purposes 2016-02-05 20:14:34 -05:00