[OpenWrt-Devel] [PATCH netifd 2/6] iprule: Insert network and address ip rules before main table lookup rule

Hans Dedecker dedeckeh at gmail.com
Wed Sep 9 09:45:48 EDT 2015


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 s 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 at gmail.com>
---
 iprule.h | 4 ++--
 1 file 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 {
-- 
1.9.1
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel



More information about the openwrt-devel mailing list