All of lore.kernel.org
 help / color / mirror / Atom feed
From: Husnu Demir <hdemir@metu.edu.tr>
To: netfilter@vger.kernel.org
Subject: Fwd: ipset and counters
Date: Mon, 22 Apr 2013 15:46:59 +0300	[thread overview]
Message-ID: <51753143.8090908@metu.edu.tr> (raw)
In-Reply-To: <51752B00.8090908@metu.edu.tr>

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


Hi,

I want to give a try for COUNTERS properties of IPSET. But I could not
manage it;

# ipset create COUNTERS bitmap:ip  counters
ipset v6.17: Unknown argument: `counters'
Try `ipset help' for more information.


# man ipset
..
..
   counters, packets, bytes
       All set types support the optional counters option when
creating a set. If the option is specified then the set is created
with packet and byte counters per element support. The packet and byte
 counters  are  initialized  to
       zero when the elements are (re-)added to the set, unless the
packet and byte counter values are explicitly specified by the packets
and bytes options. An example when an element is added to a set with
non-zero counter values:

              ipset create foo hash:ip counters

              ipset add foo 192.168.1.1 packets 42 bytes 1024

..


I could not set counters. How can I activate it?

I used ipset-20130422 BUILD. And;

# autogen.sh
# ./configure
# make
# make install
# make CONFIG_IP_SET_MAX=2048 modules
# make CONFIG_IP_SET_MAX=2048 modules_install

# ipset -V
ipset v6.17, protocol version: 6

There is a ipset v6.18 bu daily build says 6.17.


Please help.

Thanks in advance.

Husnu Demir.
Network.



-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with undefined - http://www.enigmail.net/

iQEcBAEBAgAGBQJRdTFDAAoJEISpBAM51qlEP1oH+wfBPOQLmmU8wD+EQ83fUx85
u62Rj0S189piWKNzc4Mb/TijHjDLelGuems7CMGvlqsxSBQQtltog8+15n/GmP3I
jeIGXjg4q638ax6+04q+zZwjIm7uF3axWUBuoAhEJgcf0bjjJVXg7QDJTdwWTgU0
jJVRK01NbdIT32PqmpLvlq0CtovtsOmwfv98ENVHqUPyiUjcJuzBh1SjMvZgFO6G
94tez2gevM0mRjz8Dq5J2nxzE6zlsQlGI7mQA7NHW84pTGAgeil2UG1SJV2+mlAL
m2GbOL5b2bUQrtNXdLV/00EMlYOj4nZ3vhzAd0rptDKV21SiabP8pVCeQlvXI9w=
=bLRy
-----END PGP SIGNATURE-----

       reply	other threads:[~2013-04-22 12:46 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <51752B00.8090908@metu.edu.tr>
2013-04-22 12:46 ` Husnu Demir [this message]
2013-04-22 13:57   ` Fwd: ipset and counters Jozsef Kadlecsik
2013-04-22 14:03     ` Husnu Demir
2013-04-22 17:24       ` Jozsef Kadlecsik
2013-05-06 13:14         ` tian fang
2013-05-06 13:40           ` Jozsef Kadlecsik
2013-05-06 14:03             ` tian fang
2013-05-06 14:46             ` tian fang
2013-05-06 18:28               ` Jozsef Kadlecsik
2013-05-06 19:59                 ` hdemir
2013-05-07 12:05                 ` tian fang
2013-05-07 12:19                   ` Jozsef Kadlecsik
2013-05-07 13:32                     ` tian fang
2013-05-07 13:40                       ` Jozsef Kadlecsik
2013-04-22 18:06 hdemir

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=51753143.8090908@metu.edu.tr \
    --to=hdemir@metu.edu.tr \
    --cc=netfilter@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.