Revert "add prelocal table to manipulate locally destinated traffic"
authorJo-Philipp Wich <jow@openwrt.org>
Wed, 30 Mar 2016 21:56:24 +0000 (23:56 +0200)
committerJo-Philipp Wich <jow@openwrt.org>
Wed, 30 Mar 2016 21:56:24 +0000 (23:56 +0200)
Revert commit 3eea8576d48d9b20cc1c6b46f54c7345a39d13aa since it changes the
default behaviour of user ip rules in unexpected ways.

When an ip rule is added without an explicit priority then the kernel will
use the priority value of the 2nd rule, decreased by one.

On an ordinary system, the 2nd rule usually is "from all lookup main" with
priority 32766 which means that user rules are added beginning with priority
32765 in decreasing order.

Since the introduction of the prelocal rule at prio 0 and the subsequent
moving of "from all lookup local" to prio 1, the kernel will insert all user
rules with priority 0, between the prelocal and local lookup rules, leading
to broken routing in many common scenarios.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>

No differences found