David S. Miller
e058464990
Revert "ipv4: Allow configuring subnets as local addresses"
...
This reverts commit 4465b469008bc03b98a1b8df4e9ae501b6c69d4b.
Conflicts:
net/ipv4/fib_frontend.c
As reported by Ben Greear, this causes regressions:
> Change 4465b469008bc03b98a1b8df4e9ae501b6c69d4b caused rules
> to stop matching the input device properly because the
> FLOWI_FLAG_MATCH_ANY_IIF is always defined in ip_dev_find().
>
> This breaks rules such as:
>
> ip rule add pref 512 lookup local
> ip rule del pref 0 lookup local
> ip link set eth2 up
> ip -4 addr add 172.16.0.102/24 broadcast 172.16.0.255 dev eth2
> ip rule add to 172.16.0.102 iif eth2 lookup local pref 10
> ip rule add iif eth2 lookup 10001 pref 20
> ip route add 172.16.0.0/24 dev eth2 table 10001
> ip route add unreachable 0/0 table 10001
>
> If you had a second interface 'eth0' that was on a different
> subnet, pinging a system on that interface would fail:
>
> [root@ct503-60 ~]# ping 192.168.100.1
> connect: Invalid argument
Reported-by: Ben Greear <greearb@candelatech.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2010-12-23 12:03:57 -08:00
..
2010-10-28 09:08:49 -05:00
2010-10-12 12:44:53 -03:00
2010-11-03 18:50:03 -07:00
2010-09-23 14:33:39 -07:00
2010-03-30 22:02:32 +09:00
2010-10-23 11:47:02 -07:00
2010-10-17 13:49:14 -07:00
2010-10-13 14:40:34 -07:00
2010-09-23 14:33:39 -07:00
2010-08-20 01:42:59 -07:00
2010-10-16 11:13:24 -07:00
2010-06-11 18:37:08 -07:00
2010-10-05 00:47:39 -07:00
2009-08-12 21:54:50 -07:00
2010-11-29 09:45:15 -08:00
2009-11-04 05:06:25 -08:00
2010-09-29 19:45:35 -07:00
2009-01-21 14:01:59 -08:00
2010-03-30 22:02:32 +09:00
2009-03-24 23:32:03 -07:00
2010-11-15 15:00:42 -05:00
2008-11-19 15:44:53 -08:00
2009-03-28 15:01:36 +11:00
2010-10-07 09:43:45 +02:00
2009-12-11 15:07:56 -08:00
2009-09-01 01:24:30 -07:00
2010-06-03 03:21:52 -07:00
2010-03-27 19:23:46 -07:00
2010-06-03 03:21:52 -07:00
2010-06-10 23:31:35 -07:00
2010-11-10 12:12:00 -08:00
2009-03-21 19:06:54 -07:00
2010-11-15 15:00:42 -05:00
2010-10-27 11:37:31 -07:00
2009-03-27 00:16:21 -07:00
2010-10-27 11:37:32 -07:00
2010-12-23 12:03:57 -08:00
2010-10-25 13:09:44 -07:00
2009-11-04 05:06:25 -08:00
2010-10-05 13:35:30 -04:00
2010-08-21 23:05:39 -07:00
2010-04-13 14:49:31 -07:00
2010-02-08 16:50:53 -05:00
2009-11-06 14:32:18 +03:00
2009-07-23 17:08:51 +04:00
2010-05-18 15:36:06 -07:00
2010-04-15 23:36:37 -07:00
2009-12-08 20:17:51 -08:00
2010-07-12 20:21:46 -07:00
2010-08-30 13:23:33 -07:00
2010-09-23 14:33:39 -07:00
2010-06-30 13:44:29 -07:00
2010-10-21 13:06:43 +02:00
2010-06-23 13:16:38 -07:00
2010-04-27 12:39:01 -07:00
2010-10-27 11:37:33 -07:00
2010-06-10 23:31:35 -07:00
2010-12-19 20:22:23 -08:00
2010-10-25 13:09:45 -07:00
2010-10-28 10:27:03 -07:00
2010-10-21 11:04:43 +02:00
2010-10-25 14:18:28 -07:00
2010-02-16 23:05:38 -08:00
2008-06-11 21:00:38 -07:00
2010-10-27 11:37:32 -07:00
2010-09-23 14:33:39 -07:00
2010-06-03 03:21:52 -07:00
2010-03-31 14:49:12 -04:00
2010-07-26 15:09:04 -04:00
2009-12-26 20:43:57 -08:00
2009-12-26 20:46:28 -08:00
2010-12-20 13:48:04 -05:00
2010-06-03 03:21:52 -07:00
2010-04-23 13:35:55 +09:00
2010-06-03 03:21:52 -07:00
2010-11-18 09:40:04 -08:00
2010-10-25 14:18:27 -07:00
2009-01-06 11:38:15 -07:00
2010-03-30 22:02:32 +09:00
2010-11-04 12:26:34 -07:00
2010-03-30 22:02:32 +09:00
2009-08-19 23:08:22 +04:00
2010-12-21 12:43:16 -08:00
2010-06-02 03:23:51 -07:00
2010-10-27 11:37:31 -07:00
2009-03-21 19:06:50 -07:00
2010-09-08 13:42:22 -07:00
2009-06-23 04:31:07 -07:00
2009-11-04 05:06:25 -08:00
2010-07-20 16:44:35 -04:00
2010-01-17 19:09:39 -08:00
2009-07-26 19:11:14 -07:00
2010-09-27 15:03:33 -07:00
2010-10-21 03:09:45 -07:00
2010-12-20 10:27:19 -08:00
2010-06-16 14:55:56 -07:00
2010-06-30 13:31:19 -07:00
2010-12-16 14:26:56 -08:00
2008-07-05 21:25:39 -07:00
2010-11-10 12:12:00 -08:00
2008-11-21 16:45:22 -08:00
2010-04-23 23:35:28 -07:00
2010-11-10 12:12:00 -08:00
2008-10-29 01:41:45 -07:00
2009-10-07 16:39:43 -04:00
2009-12-09 19:43:33 -08:00
2009-11-06 14:32:24 +03:00
2010-05-17 17:39:27 -07:00
2010-04-22 16:12:36 -07:00
2010-10-27 11:37:32 -07:00