netfilter: ipset: No need to make nomatch bitfield
authorSergey Popovich <popovich_sergei@mail.ua>
Sat, 2 May 2015 17:28:05 +0000 (19:28 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Wed, 13 May 2015 11:25:45 +0000 (13:25 +0200)
We do not store cidr packed with no match, so there is no
need to make nomatch bitfield.

This simplifies mtype_data_reset_flags() a bit.

Signed-off-by: Sergey Popovich <popovich_sergei@mail.ua>
Signed-off-by: Jozsef Kadlecsik <kadlec@blackhole.kfki.hu>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/ipset/ip_set_hash_netportnet.c

index bfaa94c7baa79300da255f9f7761f888b79136e7..7cfd2dfc8f9d0efd57f785ca84dc7eb5aa237fde 100644 (file)
@@ -54,7 +54,7 @@ struct hash_netportnet4_elem {
                u16 ccmp;
        };
        u16 padding;
-       u8 nomatch:1;
+       u8 nomatch;
        u8 proto;
 };
 
@@ -326,7 +326,7 @@ struct hash_netportnet6_elem {
                u16 ccmp;
        };
        u16 padding;
-       u8 nomatch:1;
+       u8 nomatch;
        u8 proto;
 };