netfilter: ipset: No need to make nomatch bitfield
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>
This commit is contained in:
parent
caed0ed35b
commit
2b67d6e01d
1 changed files with 2 additions and 2 deletions
|
@ -54,7 +54,7 @@ struct hash_netportnet4_elem {
|
||||||
u16 ccmp;
|
u16 ccmp;
|
||||||
};
|
};
|
||||||
u16 padding;
|
u16 padding;
|
||||||
u8 nomatch:1;
|
u8 nomatch;
|
||||||
u8 proto;
|
u8 proto;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -326,7 +326,7 @@ struct hash_netportnet6_elem {
|
||||||
u16 ccmp;
|
u16 ccmp;
|
||||||
};
|
};
|
||||||
u16 padding;
|
u16 padding;
|
||||||
u8 nomatch:1;
|
u8 nomatch;
|
||||||
u8 proto;
|
u8 proto;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue