wireless: clean up prev_config handling
[project/netifd.git] / iprule.h
index 89b94b459a49ec1cd9fa87809342185297e3b9a4..488aafc69c3a7bc305139f58035280776e7a6246 100644 (file)
--- a/iprule.h
+++ b/iprule.h
@@ -63,6 +63,9 @@ enum iprule_flags {
 
        /* rule suppresses results by prefix length */
        IPRULE_SUP_PREFIXLEN    = (1 << 13),
+
+       /* rule specifies uidrange */
+       IPRULE_UIDRANGE         = (1 << 14),
 };
 
 struct iprule {
@@ -74,8 +77,8 @@ struct iprule {
        struct interface_user out_iface_user;
 
        /* device name */
-       char in_dev[IFNAMSIZ + 1];
-       char out_dev[IFNAMSIZ + 1];
+       char in_dev[IFNAMSIZ];
+       char out_dev[IFNAMSIZ];
 
        /* everything below is used as avl tree key */
        /* don't change the order                   */
@@ -102,6 +105,8 @@ struct iprule {
 
        unsigned int lookup;
        unsigned int sup_prefixlen;
+       unsigned int uidrange_start;
+       unsigned int uidrange_end;
        unsigned int action;
        unsigned int gotoid;
 };