From 1b36fc7ee0dfe4c5796a61d7dcbcbbd47641d4e2 Mon Sep 17 00:00:00 2001 From: Hans Dedecker Date: Wed, 9 Sep 2015 15:45:48 +0200 Subject: [PATCH] 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 --- 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 { -- 2.11.0