提交 2b67d6e0 编写于 作者: S Sergey Popovich 提交者: Pablo Neira Ayuso

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: NSergey Popovich <popovich_sergei@mail.ua>
Signed-off-by: NJozsef Kadlecsik <kadlec@blackhole.kfki.hu>
Signed-off-by: NPablo Neira Ayuso <pablo@netfilter.org>
上级 caed0ed3
......@@ -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;
};
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册