summaryrefslogtreecommitdiff
path: root/alias.c
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2016-03-30 23:56:24 +0200
committerJo-Philipp Wich <jow@openwrt.org>2016-03-30 23:56:24 +0200
commit39d9ceeb96162a83a3f5fa63e6aaa1ccb38caa62 (patch)
tree2dbc45115fbf95782cef465d32c17b8aa6fa7561 /alias.c
parentbd1ee3efb46ae013d81b1aec51668e7595274e69 (diff)
downloadnetifd-39d9ceeb96162a83a3f5fa63e6aaa1ccb38caa62.tar.gz
Revert "add prelocal table to manipulate locally destinated traffic"
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>
Diffstat (limited to 'alias.c')
0 files changed, 0 insertions, 0 deletions