From: Hans Dedecker Date: Wed, 9 Sep 2015 13:45:48 +0000 (+0200) Subject: iprule: Insert network and address ip rules before main table lookup rule X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=1b36fc7ee0dfe4c5796a61d7dcbcbbd47641d4e2;p=project%2Fnetifd.git 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 --- 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 {