From: Hongyi Zhao <hongyi.zhao@gmail.com>
To: netfilter@vger.kernel.org
Subject: The differences between hash:ip and hash:net.
Date: Wed, 14 Oct 2015 07:19:46 +0000 (UTC) [thread overview]
Message-ID: <mvkvmi$7k2$1@ger.gmane.org> (raw)
Hi all,
From the ipset manpage, I can see the following depictions:
hash:ip
The hash:ip set type uses a hash to store
IP host addresses (default) or network addresses.
hash:net
The hash:net set type uses a hash to store different
sized IP network addresses.
So, it seems that both types can be used to store the network addresses.
Hence, my issues are:
1- Since the hash:ip can be used to store both host addresses and network
addresses, why the developer design another set type hash:net?
2- It's well know that any host addresses can be written into the form of
the 32-bits cidr prefix form. Since the ipset type hash:net should also
can be used to store the host addresses and network addresses.
In one word: what's the differences between hash:ip and hash:net?
Regards
--
.: Hongyi Zhao [ hongyi.zhao AT gmail.com ] Free as in Freedom :.
next reply other threads:[~2015-10-14 7:19 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-10-14 7:19 Hongyi Zhao [this message]
2015-10-14 7:41 ` The differences between hash:ip and hash:net Jozsef Kadlecsik
2015-10-14 8:01 ` Hongyi Zhao
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='mvkvmi$7k2$1@ger.gmane.org' \
--to=hongyi.zhao@gmail.com \
--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.