netifd: Assign interface metric to route metric when route is created
authorHans Dedecker <dedeckeh@gmail.com>
Mon, 10 Mar 2014 15:27:52 +0000 (16:27 +0100)
committerFelix Fietkau <nbd@openwrt.org>
Tue, 11 Mar 2014 09:23:36 +0000 (10:23 +0100)
commitceeed831285357d125f71b9a3b4c27de50af49e6
tree3d19559a8884534f2ad8beabe36edc5f84b04667
parent02021e2069d0ee315b0ff263b6c010bef63b879c
netifd: Assign interface metric to route metric when route is created

Interface metric needs to be assigned to the route metric parameter at route creation time. Otherwise if the interface metric is different from 0 route_cmp will wrongly conclude the routes are different.
In this case the route will be added/deleted and could end up with the route missing in the kernel depending on the add/delete order.

Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
interface-ip.c