X-Git-Url: https://git.archive.openwrt.org/?a=blobdiff_plain;f=iprule.h;h=7617c7600985cf2f7edb03bbd29ecd81342200c2;hb=90e2e2c404eeeb3414c794dfb45f5ee4b88cd479;hp=e1ac84b9b074ad30f7618f92e2e77f557ae792e1;hpb=1b36fc7ee0dfe4c5796a61d7dcbcbbd47641d4e2;p=project%2Fnetifd.git diff --git a/iprule.h b/iprule.h index e1ac84b..7617c76 100644 --- a/iprule.h +++ b/iprule.h @@ -18,7 +18,8 @@ #include "interface-ip.h" #define IPRULE_PRIORITY_ADDR 10000 -#define IPRULE_PRIORITY_NW 20000 +#define IPRULE_PRIORITY_ADDR_MASK 20000 +#define IPRULE_PRIORITY_NW 90000 #define IPRULE_PRIORITY_REJECT 4200000000 enum iprule_flags { @@ -59,6 +60,9 @@ enum iprule_flags { /* rule is a goto */ IPRULE_GOTO = (1 << 12), + + /* rule suppresses results by prefix length */ + IPRULE_SUP_PREFIXLEN = (1 << 13), }; struct iprule { @@ -86,6 +90,7 @@ struct iprule { unsigned int fwmask; unsigned int lookup; + unsigned int sup_prefixlen; unsigned int action; unsigned int gotoid; };