net/network_layer/fib: corrected handling of all 0 addresses#2783
net/network_layer/fib: corrected handling of all 0 addresses#2783cgundogan merged 1 commit intoRIOT-OS:masterfrom
Conversation
213ef5d to
9b7ddef
Compare
9b7ddef to
78363cd
Compare
78363cd to
012cf85
Compare
|
@BytesGalore could you please rebase this one? |
012cf85 to
a35957c
Compare
a35957c to
ab663ba
Compare
|
@cgundogan sure, done :) |
|
BTW, I noticed that you don't make any real use of |
|
|
|
@BytesGalore yes but, |
|
ok, here [1] Its updated with |
|
And prior to this assignment you could exchange all occurences of |
|
I don't understand the function of |
|
ah the there is an outer loop! Excuse me, Sir! this changes everything (: |
|
I tested and can confirm: this works for the |
|
nice, thx for testing |
|
Travis, why you no build.. With your consent, I want to get this merged as soon as travis has a smiling face. |
|
I am not sure if this is related to this bug, but I seem to cannot add the default route to a fib table which has >= 1 entries. On a fib table with zero entries, adding the default route is a success. |
|
My ACK still holds. I am not sure if the strange behavior reported in my last comment is related to this PR. If yes, a follow-up PR can fix it. GO |
net/network_layer/fib: corrected handling of all 0 addresses
The FIB did not handled all
0addresses correctly.When a default GW IPv6 address
::has been added to the FIB it could not be removed byfib_remove_entry()or updated byfib_update_entry()since it has not been discovered as an exact matching address.This PR adds a check if the searched entry is an all
0address and adjusts the determination if we have an exact match, so all0addresses can be removed and updated correctly.