summaryrefslogtreecommitdiff
path: root/iprule.h
diff options
context:
space:
mode:
authorHans Dedecker <dedeckeh@gmail.com>2015-09-09 15:45:48 +0200
committerFelix Fietkau <nbd@openwrt.org>2015-09-10 22:49:56 +0200
commit1b36fc7ee0dfe4c5796a61d7dcbcbbd47641d4e2 (patch)
tree7352654c5032926ef4178135f9ba6b87ed120104 /iprule.h
parent001100fd10fb799572e21551b4f9bdad861a1b4f (diff)
downloadnetifd-1b36fc7ee0dfe4c5796a61d7dcbcbbd47641d4e2.tar.gz
iprule: Insert network and address ip rules before main table lookup rule
Specific IP address and network rules are now checked before the main table lookup as the main table often holds a default route. As a result the IP address and network rules pointing to a specific routing table will not be checked anymore; by reversing the order the specific routing tables are checked first if the ip rule matches. Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
Diffstat (limited to 'iprule.h')
-rw-r--r--iprule.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/iprule.h b/iprule.h
index b4b124c..e1ac84b 100644
--- a/iprule.h
+++ b/iprule.h
@@ -17,8 +17,8 @@
#include "interface-ip.h"
-#define IPRULE_PRIORITY_ADDR 80000
-#define IPRULE_PRIORITY_NW 90000
+#define IPRULE_PRIORITY_ADDR 10000
+#define IPRULE_PRIORITY_NW 20000
#define IPRULE_PRIORITY_REJECT 4200000000
enum iprule_flags {