[IPV4] fib: fix route replacement, fib_info is shared
authorJulian Anastasov <ja@ssi.bg>
Tue, 29 Jan 2008 05:14:10 +0000 (21:14 -0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 1 Feb 2008 03:27:10 +0000 (19:27 -0800)
fib_info can be shared by many route prefixes but we don't want
duplicate alternative routes for a prefix+tos+priority. Last change
was not correct to check fib_treeref because it accounts usage from
other prefixes. Additionally, avoid replacement without error if new
route is same, as Joonwoo Park suggests.

Signed-off-by: Julian Anastasov <ja@ssi.bg>
Signed-off-by: David S. Miller <davem@davemloft.net>

No differences found