From 02ac9442198a2f7ccc50d24ad0a832e5f697cf20 Mon Sep 17 00:00:00 2001 From: Bart De Schuymer Date: Sun, 14 Jul 2002 19:12:07 +0000 Subject: add support for retrieving the init table data --- kernel/linux/include/linux/netfilter_bridge/ebtables.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'kernel/linux/include/linux') diff --git a/kernel/linux/include/linux/netfilter_bridge/ebtables.h b/kernel/linux/include/linux/netfilter_bridge/ebtables.h index ca1d7aa..683610f 100644 --- a/kernel/linux/include/linux/netfilter_bridge/ebtables.h +++ b/kernel/linux/include/linux/netfilter_bridge/ebtables.h @@ -29,7 +29,9 @@ #define EBT_SO_GET_INFO (EBT_BASE_CTL) #define EBT_SO_GET_ENTRIES (EBT_SO_GET_INFO+1) -#define EBT_SO_GET_MAX (EBT_SO_GET_ENTRIES+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 @@ -55,9 +57,9 @@ struct ebt_entries { // one standard (accept, drop, return) per hook int policy; // nr. of entries - __u32 nentries; + unsigned int nentries; // entry list - __u8 data[0]; + char data[0]; }; // used for the bitmask of struct ebt_entry -- cgit v1.2.3