From: Thomas Jarosch Date: Tue, 13 Apr 2004 14:22:07 +0000 (+0000) Subject: polished documentation for first public release X-Git-Tag: v1.9~36 X-Git-Url: http://developer.intra2net.com/git/?p=ipt_ACCOUNT;a=commitdiff_plain;h=547561148f04750c5c23fcb87e2c457850c2b479 polished documentation for first public release --- diff --git a/help b/help index 0478a54..f28b9da 100644 --- a/help +++ b/help @@ -4,10 +4,14 @@ 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 +--addr is the subnet which is accounted for --tname is the table name where the information is stored -The data can later be queried using the libipt_ACCOUNT userspace library +The data can be queried later using the libipt_ACCOUNT userspace library or by the "iptaccount" tool which is part of the libipt_ACCOUNT package. +A special subnet is "0.0.0.0/0": All data is stored in the src_bytes +and src_packets structure of slot "0". This is useful if you want +to account the overall traffic to/from your internet provider. + For more information go to http://www.intra2net.com/opensource/ipt_ACCOUNT diff --git a/linux/Documentation/Configure.help.ladd b/linux/Documentation/Configure.help.ladd index f663079..8d57f8b 100644 --- a/linux/Documentation/Configure.help.ladd +++ b/linux/Documentation/Configure.help.ladd @@ -5,11 +5,15 @@ 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 + --addr is the subnet which is accounted for --tname is the table name where the information is stored - The data can later be queried using the libipt_ACCOUNT userspace library + The data can be queried later using the libipt_ACCOUNT userspace library or by the "iptaccount" tool which is part of the libipt_ACCOUNT package. + A special subnet is "0.0.0.0/0": All data is stored in the src_bytes + and src_packets structure of slot "0". This is useful if you want + to account the overall traffic to/from your internet provider. + If you want to compile it as a module, say M here and read Documentation/modules.txt. If unsure, say `N'. diff --git a/linux/include/linux/netfilter_ipv4/ipt_ACCOUNT.h b/linux/include/linux/netfilter_ipv4/ipt_ACCOUNT.h index 3d59241..402b889 100644 --- a/linux/include/linux/netfilter_ipv4/ipt_ACCOUNT.h +++ b/linux/include/linux/netfilter_ipv4/ipt_ACCOUNT.h @@ -1,3 +1,13 @@ +/*************************************************************************** + * Copyright (C) 2004 by Intra2net AG * + * opensource@intra2net.com * + * * + * This program is free software; you can redistribute it and/or modify * + * it under the terms of the GNU General Public License * + * version 2 as published by the Free Software Foundation; * + * * + ***************************************************************************/ + #ifndef _IPT_ACCOUNT_H #define _IPT_ACCOUNT_H diff --git a/linux/net/ipv4/netfilter/ipt_ACCOUNT.c b/linux/net/ipv4/netfilter/ipt_ACCOUNT.c index b68858e..edac8ff 100644 --- a/linux/net/ipv4/netfilter/ipt_ACCOUNT.c +++ b/linux/net/ipv4/netfilter/ipt_ACCOUNT.c @@ -1,6 +1,17 @@ -/* - * This is a module which is used for counting packets. - */ +/*************************************************************************** + * This is a module which is used for counting packets. * + * See http://www.intra2net.com/opensource/ipt_ACCOUNT * + * for further information * + * * + * Copyright (C) 2004 by Intra2net AG * + * opensource@intra2net.com * + * * + * This program is free software; you can redistribute it and/or modify * + * it under the terms of the GNU General Public License * + * version 2 as published by the Free Software Foundation; * + * * + ***************************************************************************/ + #include #include #include