mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-15 15:15:47 +00:00
06988b0693
Resolve these warnings on `make headers_check`: usr/include/linux/netfilter/xt_CT.h:7: found __[us]{8,16,32,64} type without #include <linux/types.h> ... Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
42 lines
689 B
C
42 lines
689 B
C
#ifndef _XT_U32_H
|
|
#define _XT_U32_H 1
|
|
|
|
#include <linux/types.h>
|
|
|
|
enum xt_u32_ops {
|
|
XT_U32_AND,
|
|
XT_U32_LEFTSH,
|
|
XT_U32_RIGHTSH,
|
|
XT_U32_AT,
|
|
};
|
|
|
|
struct xt_u32_location_element {
|
|
__u32 number;
|
|
__u8 nextop;
|
|
};
|
|
|
|
struct xt_u32_value_element {
|
|
__u32 min;
|
|
__u32 max;
|
|
};
|
|
|
|
/*
|
|
* Any way to allow for an arbitrary number of elements?
|
|
* For now, I settle with a limit of 10 each.
|
|
*/
|
|
#define XT_U32_MAXSIZE 10
|
|
|
|
struct xt_u32_test {
|
|
struct xt_u32_location_element location[XT_U32_MAXSIZE+1];
|
|
struct xt_u32_value_element value[XT_U32_MAXSIZE+1];
|
|
__u8 nnums;
|
|
__u8 nvalues;
|
|
};
|
|
|
|
struct xt_u32 {
|
|
struct xt_u32_test tests[XT_U32_MAXSIZE+1];
|
|
__u8 ntests;
|
|
__u8 invert;
|
|
};
|
|
|
|
#endif /* _XT_U32_H */
|