mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-12-26 06:53:52 +01:00
Merge pull request #2875 from BytesGalore/fib_clear_flags_on_remove_entry
net/network_layer/fib: added clearing flags for expired entries
This commit is contained in:
commit
3876823c21
@ -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);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user