Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fib6: fix adding default route as first route
[ upstream commit fd66617c5774a2869cbb69f86494d1b4803890fc ] Currently when adding default route as first route it is not added and no error is reported. When we enter the loop over an address range in the general case we will eventually reach the check for when the range has ended, and exit the loop. However when adding default route as first route, since address range covered begins and ends at zero this also triggers loop exit without writing to the table. Fixed by adding check for default route, i.e. both ledge and redge are equal to 0::0. Bugzilla ID: 1272 Fixes: c3e12e0 ("fib: add dataplane algorithm for IPv6") Signed-off-by: Vladimir Medvedkin <vladimir.medvedkin@intel.com>
- Loading branch information