mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-12-27 15:31:17 +01:00
[sys/net/sixlowpan/sixlowip.c]
* avoid duplicate attachement of IPv6 addresses to the interface
This commit is contained in:
parent
79d6157cfc
commit
f298c74c44
@ -129,6 +129,9 @@ void ipv6_iface_add_addr(ipv6_addr_t *addr, uint8_t state, uint32_t val_ltime,
|
||||
printf("ERROR: unspecified address (::) can't be assigned to interface.\n");
|
||||
return;
|
||||
}
|
||||
if(ipv6_iface_addr_match(addr) != 0) {
|
||||
return;
|
||||
}
|
||||
if(iface_addr_list_count < IFACE_ADDR_LIST_LEN){
|
||||
memcpy(&(iface.addr_list[iface_addr_list_count].addr.uint8[0]),
|
||||
&(addr->uint8[0]), 16);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user