diff options
author | Hans Dedecker <dedeckeh@gmail.com> | 2015-09-09 15:45:48 +0200 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2015-09-10 22:49:56 +0200 |
commit | 1b36fc7ee0dfe4c5796a61d7dcbcbbd47641d4e2 (patch) | |
tree | 7352654c5032926ef4178135f9ba6b87ed120104 /iprule.h | |
parent | 001100fd10fb799572e21551b4f9bdad861a1b4f (diff) |
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.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 { |