mirror of
git://git.code.sf.net/p/xtables-addons/xtables-addons
synced 2025-09-07 13:15:12 +02:00
condition: use new structure type
Use __u8 for the invert flag instead of int. Reduce CONDITION_NAME_LEN from 32 to 31 so that the entire structure can fit into a cacheline.
This commit is contained in:
@@ -1,11 +1,13 @@
|
||||
#ifndef _XT_CONDITION_H
|
||||
#define _XT_CONDITION_H
|
||||
|
||||
#define CONDITION_NAME_LEN 32
|
||||
enum {
|
||||
CONDITION_NAME_LEN = 31,
|
||||
};
|
||||
|
||||
struct condition_info {
|
||||
struct xt_condition_mtinfo {
|
||||
char name[CONDITION_NAME_LEN];
|
||||
int invert;
|
||||
__u8 invert;
|
||||
};
|
||||
|
||||
#endif /* _XT_CONDITION_H */
|
||||
|
Reference in New Issue
Block a user