diff options
author | Bart De Schuymer <bdschuym@pandora.be> | 2002-09-07 12:11:36 +0000 |
---|---|---|
committer | Bart De Schuymer <bdschuym@pandora.be> | 2002-09-07 12:11:36 +0000 |
commit | 8c9df4e47075b3667708f226ae06a4d8811f6aad (patch) | |
tree | 7c216524f0b6646091f49b158a7a41d1c5056e5e /kernel/linux2.5/include/linux/netfilter_bridge/ebtables.h | |
parent | 4104dda69d78030ebcb1d4cdcff9eabce83cdd91 (diff) |
get some defines inside __KERNEL__
Diffstat (limited to 'kernel/linux2.5/include/linux/netfilter_bridge/ebtables.h')
-rw-r--r-- | kernel/linux2.5/include/linux/netfilter_bridge/ebtables.h | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/kernel/linux2.5/include/linux/netfilter_bridge/ebtables.h b/kernel/linux2.5/include/linux/netfilter_bridge/ebtables.h index 369e6da..c653c35 100644 --- a/kernel/linux2.5/include/linux/netfilter_bridge/ebtables.h +++ b/kernel/linux2.5/include/linux/netfilter_bridge/ebtables.h @@ -20,19 +20,6 @@ #define EBT_CHAIN_MAXNAMELEN EBT_TABLE_MAXNAMELEN #define EBT_FUNCTION_MAXNAMELEN EBT_TABLE_MAXNAMELEN -// [gs]etsockopt numbers -#define EBT_BASE_CTL 128 - -#define EBT_SO_SET_ENTRIES (EBT_BASE_CTL) -#define EBT_SO_SET_COUNTERS (EBT_SO_SET_ENTRIES+1) -#define EBT_SO_SET_MAX (EBT_SO_SET_COUNTERS+1) - -#define EBT_SO_GET_INFO (EBT_BASE_CTL) -#define EBT_SO_GET_ENTRIES (EBT_SO_GET_INFO+1) -#define EBT_SO_GET_INIT_INFO (EBT_SO_GET_ENTRIES+1) -#define EBT_SO_GET_INIT_ENTRIES (EBT_SO_GET_INIT_INFO+1) -#define EBT_SO_GET_MAX (EBT_SO_GET_INIT_ENTRIES+1) - // verdicts >0 are "branches" #define EBT_ACCEPT -1 #define EBT_DROP -2 @@ -40,10 +27,6 @@ #define EBT_RETURN -4 #define NUM_STANDARD_TARGETS 4 -// return values for match() functions -#define EBT_MATCH 0 -#define EBT_NOMATCH 1 - struct ebt_counter { uint64_t pcnt; @@ -180,6 +163,23 @@ struct ebt_replace #ifdef __KERNEL__ +// [gs]etsockopt numbers +#define EBT_BASE_CTL 128 + +#define EBT_SO_SET_ENTRIES (EBT_BASE_CTL) +#define EBT_SO_SET_COUNTERS (EBT_SO_SET_ENTRIES+1) +#define EBT_SO_SET_MAX (EBT_SO_SET_COUNTERS+1) + +#define EBT_SO_GET_INFO (EBT_BASE_CTL) +#define EBT_SO_GET_ENTRIES (EBT_SO_GET_INFO+1) +#define EBT_SO_GET_INIT_INFO (EBT_SO_GET_ENTRIES+1) +#define EBT_SO_GET_INIT_ENTRIES (EBT_SO_GET_INIT_INFO+1) +#define EBT_SO_GET_MAX (EBT_SO_GET_INIT_ENTRIES+1) + +// return values for match() functions +#define EBT_MATCH 0 +#define EBT_NOMATCH 1 + struct ebt_match { struct list_head list; |