1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-12-26 15:03:53 +01:00

net/network_layer/fib: added clearing flags for expired entries

This commit is contained in:
BytesGalore 2015-04-28 08:17:38 +02:00
parent b829dfa66f
commit 2a8aa7add5

View File

@ -107,6 +107,9 @@ static int fib_find_entry(uint8_t *dst, size_t dst_size,
/* remove this entry if its lifetime expired */
fib_table[i].lifetime.seconds = 0;
fib_table[i].lifetime.microseconds = 0;
fib_table[i].global_flags = 0;
fib_table[i].next_hop_flags = 0;
fib_table[i].iface_id = KERNEL_PID_UNDEF;
if (fib_table[i].global != NULL) {
universal_address_rem(fib_table[i].global);