mirror of
git://git.code.sf.net/p/xtables-addons/xtables-addons
synced 2025-09-06 20:55:13 +02:00

Replace the loop over all possible condvars by a simple deref. This changes the runtime from O(n) to O(1) at the expense of only 8 bytes for rule.
17 lines
276 B
C
17 lines
276 B
C
#ifndef _XT_CONDITION_H
|
|
#define _XT_CONDITION_H
|
|
|
|
enum {
|
|
CONDITION_NAME_LEN = 31,
|
|
};
|
|
|
|
struct xt_condition_mtinfo {
|
|
char name[CONDITION_NAME_LEN];
|
|
__u8 invert;
|
|
|
|
/* Used internally by the kernel */
|
|
void *condvar __attribute__((aligned(8)));
|
|
};
|
|
|
|
#endif /* _XT_CONDITION_H */
|