diff options
author | Pablo Neira Ayuso <pablo@netfilter.org> | 2009-03-31 15:36:36 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2009-03-31 15:36:36 +0200 |
commit | ff1768673f093c2bfc8e271513b20fc4aa4efeb3 (patch) | |
tree | 88a61508bd859988b6aad847f69fb990d25dd9b0 /include/conntrack.h | |
parent | 70744136608e3ee38f15c994fc2633cf5e3c9fa2 (diff) | |
download | conntrack-tools-ff1768673f093c2bfc8e271513b20fc4aa4efeb3.tar.gz conntrack-tools-ff1768673f093c2bfc8e271513b20fc4aa4efeb3.zip |
conntrack: add `-S' command to display kernel statistics
This patch adds `-S' command to display kernel statistics. Using
raw `cat' on /proc and the hexadecimal output is not very handy.
This option parses the /proc entry and display the information
is a more human friendly way.
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'include/conntrack.h')
-rw-r--r-- | include/conntrack.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/include/conntrack.h b/include/conntrack.h index 87a262d..e1f8d0a 100644 --- a/include/conntrack.h +++ b/include/conntrack.h @@ -65,8 +65,11 @@ enum action { EXP_COUNT_BIT = 16, EXP_COUNT = (1 << EXP_COUNT_BIT), + + X_STATS_BIT = 17, + X_STATS = (1 << X_STATS_BIT), }; -#define NUMBER_OF_CMD 17 +#define NUMBER_OF_CMD 18 enum options { CT_OPT_ORIG_SRC_BIT = 0, |