Julian Anastasov
4f823defdd
ipv4: fix to not remove local route on link down
...
When fib_netdev_event calls fib_disable_ip on NETDEV_DOWN event
we should not delete the local routes if the local address
is still present. The confusion comes from the fact that both
fib_netdev_event and fib_inetaddr_event use the NETDEV_DOWN
constant. Fix it by returning back the variable 'force'.
Steps to reproduce:
modprobe dummy
ifconfig dummy0 192.168.168.1 up
ifconfig dummy0 down
ip route list table local | grep dummy | grep host
local 192.168.168.1 dev dummy0 proto kernel scope host src 192.168.168.1
Fixes: 8a3d03166f19 ("net: track link-status of ipv4 nexthops")
Signed-off-by: Julian Anastasov <ja@ssi.bg>
Signed-off-by: David S. Miller <davem@davemloft.net>
2015-11-01 16:57:39 -05:00
..
2015-10-12 17:27:48 +02:00
2015-09-01 14:32:44 -07:00
2015-08-25 13:38:50 -07:00
2015-10-05 04:05:15 -07:00
2015-04-03 12:11:15 -04:00
2015-07-29 22:44:04 -07:00
2015-07-28 23:38:13 -07:00
2015-05-28 11:23:20 +08:00
2015-11-01 16:57:39 -05:00
2015-07-24 22:46:11 -07:00
2015-09-09 14:19:50 -07:00
2015-11-01 16:57:39 -05:00
2015-10-27 18:14:51 -07:00
2015-08-29 13:07:54 -07:00
2015-08-10 14:03:54 -07:00
2015-10-26 22:01:18 -07:00
2015-09-25 21:44:02 -07:00
2015-08-28 13:28:47 -07:00
2015-10-05 04:04:09 -07:00
2015-07-10 23:25:24 -07:00
2015-07-26 21:00:15 -07:00
2015-07-23 00:41:16 -07:00
2013-12-29 16:34:25 -05:00
2015-09-21 16:32:29 -07:00
2015-08-28 13:32:36 -07:00
2015-05-25 00:08:48 -04:00
2015-08-28 13:32:36 -07:00
2015-10-22 19:39:25 -07:00
2015-07-21 10:39:05 -07:00
2015-04-03 12:11:15 -04:00
2015-08-13 22:43:21 -07:00
2015-06-24 02:58:51 -07:00
2015-09-24 14:31:37 -07:00
2015-08-10 14:03:54 -07:00
2015-05-28 06:23:32 +02:00
2015-04-03 12:11:15 -04:00
2015-08-12 16:40:22 -07:00
2015-08-10 14:03:54 -07:00
2015-09-09 14:19:50 -07:00
2015-08-27 15:42:48 -07:00
2015-08-27 15:42:48 -07:00
2015-06-16 14:12:34 -04:00
2015-07-09 21:09:10 -07:00
2015-07-21 22:36:33 -07:00
2014-09-19 17:15:31 -04:00
2015-04-13 18:18:05 -04:00
2015-09-29 21:52:32 -07:00
2015-06-07 15:19:52 -07:00
2015-08-28 13:28:47 -07:00
2015-07-09 14:22:52 -07:00
2015-07-09 14:22:52 -07:00
2015-08-31 12:34:00 -07:00
2015-09-17 22:35:07 -07:00
2015-10-23 02:46:52 -07:00
2015-06-15 19:49:22 -07:00
2015-06-23 02:38:10 -07:00
2015-07-09 14:22:52 -07:00
2015-07-09 14:22:52 -07:00
2015-07-09 14:22:52 -07:00
2015-07-09 14:22:52 -07:00
2015-08-31 12:34:00 -07:00
2015-08-13 16:23:11 -07:00
2014-05-03 19:23:07 -04:00
2015-02-12 18:54:10 -08:00
2015-08-28 13:32:36 -07:00
2015-09-21 16:32:29 -07:00
2015-06-11 16:33:10 -07:00
2015-10-21 19:29:26 -07:00
2014-09-01 18:12:45 -07:00
2015-07-09 14:22:52 -07:00
2015-07-09 21:44:38 -07:00
2015-07-09 14:22:52 -07:00
2015-04-29 17:10:38 -04:00
2015-07-09 14:22:52 -07:00
2015-05-05 19:50:09 -04:00
2015-01-28 22:18:37 -08:00
2015-08-25 11:22:50 -07:00
2012-03-11 23:42:51 -07:00
2015-06-15 19:49:22 -07:00
2015-03-02 13:06:31 -05:00
2015-04-03 12:11:15 -04:00
2015-08-27 15:42:47 -07:00
2015-09-17 16:36:34 -07:00
2014-05-23 16:28:53 -04:00
2015-04-07 15:25:55 -04:00
2013-12-26 13:43:21 -05:00
2015-03-25 14:07:04 -04:00
2015-10-19 10:30:05 +02:00
2015-09-17 16:36:34 -07:00
2014-06-30 07:49:47 +02:00
2013-12-18 16:58:20 -05:00
2013-05-31 17:19:05 -07:00