--- /dev/null
+
+This patch adds the ACCOUNT target
+
+The ACCOUNT target is a high performance accounting system for local networks.
+It takes two parameters: --addr network/netmask and --tname NAME.
+
+--addr is the subnet we want accounting for
+--tname is the table name where the information is stored
+
+The data can later be queried using the libipt_ACCOUNT userspace library
+or by the "iptaccount" tool which is part of the libipt_ACCOUNT package.
+
+For more information go to http://www.intra2net.com/opensource/ipt_ACCOUNT
--- /dev/null
+Author: Intra2net AG <opensource@intra2net.com>
+Status: Alpha
+Repository: extra
+Recompile: netfilter
--- /dev/null
+diff -u -r kernel-2.4.25/include/linux/netfilter_ipv4/ip_tables.h kernel-2.4.25.ipt_ACCOUNT/include/linux/netfilter_ipv4/ip_tables.h
+--- kernel-2.4.25/include/linux/netfilter_ipv4/ip_tables.h Mon Apr 12 20:02:19 2004
++++ kernel-2.4.25.ipt_ACCOUNT/include/linux/netfilter_ipv4/ip_tables.h Mon Apr 12 17:37:20 2004
+@@ -151,10 +151,21 @@
+ #define IPT_SO_SET_ADD_COUNTERS (IPT_BASE_CTL + 1)
+ #define IPT_SO_SET_MAX IPT_SO_SET_ADD_COUNTERS
+
++#define IPT_SO_SET_ACCOUNT_HANDLE_FREE (IPT_BASE_CTL + 3)
++#define IPT_SO_SET_ACCOUNT_HANDLE_FREE_ALL (IPT_BASE_CTL + 4)
++#define IPT_SO_SET_ACCOUNT_MAX IPT_SO_SET_ACCOUNT_HANDLE_FREE_ALL
++
+ #define IPT_SO_GET_INFO (IPT_BASE_CTL)
+ #define IPT_SO_GET_ENTRIES (IPT_BASE_CTL + 1)
+ #define IPT_SO_GET_MAX IPT_SO_GET_ENTRIES
+
++#define IPT_SO_GET_ACCOUNT_PREPARE_READ (IPT_BASE_CTL + 3)
++#define IPT_SO_GET_ACCOUNT_PREPARE_READ_FLUSH (IPT_BASE_CTL + 4)
++#define IPT_SO_GET_ACCOUNT_GET_DATA (IPT_BASE_CTL + 5)
++#define IPT_SO_GET_ACCOUNT_GET_HANDLE_USAGE (IPT_BASE_CTL + 6)
++#define IPT_SO_GET_ACCOUNT_GET_TABLE_NAMES (IPT_BASE_CTL + 7)
++#define IPT_SO_GET_ACCOUNT_MAX IPT_SO_GET_ACCOUNT_GET_TABLE_NAMES
++
+ /* CONTINUE verdict for targets */
+ #define IPT_CONTINUE 0xFFFFFFFF
+
--- /dev/null
+CONFIG_IP_NF_TARGET_ULOG
+ACCOUNT target support
+CONFIG_IP_NF_TARGET_ACCOUNT
+
+ The ACCOUNT target is a high performance accounting system for local networks.
+ It takes two parameters: --addr network/netmask and --tname NAME.
+
+ --addr is the subnet we want accounting for
+ --tname is the table name where the information is stored
+
+ The data can later be queried using the libipt_ACCOUNT userspace library
+ or by the "iptaccount" tool which is part of the libipt_ACCOUNT package.
+
+ If you want to compile it as a module, say M here and read
+ Documentation/modules.txt. If unsure, say `N'.
--- /dev/null
+ dep_tristate ' ULOG target support' CONFIG_IP_NF_TARGET_ULOG $CONFIG_IP_NF_IPTABLES
+ dep_tristate ' ACCOUNT target support' CONFIG_IP_NF_TARGET_ACCOUNT $CONFIG_IP_NF_IPTABLES
--- /dev/null
+obj-$(CONFIG_IP_NF_TARGET_ULOG) += ipt_ULOG.o
+obj-$(CONFIG_IP_NF_TARGET_ACCOUNT) += ipt_ACCOUNT.o