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:
Jan Engelhardt
2008-04-02 04:42:37 +02:00
parent 7d0efafdb3
commit 24dad368dd
3 changed files with 15 additions and 13 deletions

View File

@@ -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 */