summaryrefslogtreecommitdiffstats
path: root/tests/hash:ip,port.t.list2
Commit message (Collapse)AuthorAgeFilesLines
* tests: hash:ip,port.t: Replace VRRP by GRE protocolPhil Sutter2023-03-101-1/+1
| | | | | | | | Some systems may not have "vrrp" as alias to "carp" yet, so use a protocol which is less likely to cause problems for testing purposes. Fixes: a67aa712ed912 ("tests: hash:ip,port.t: 'vrrp' is printed as 'carp'") Signed-off-by: Phil Sutter <phil@nwl.cc>
* tests: hash:ip,port.t: 'vrrp' is printed as 'carp'Phil Sutter2023-03-101-1/+1
| | | | | | | | | | | | % grep vrrp /etc/protocols | carp 112 CARP vrrp # Common Address Redundancy Protocol Nowadays, carp seems to be the preferred name for protocol 112. Simply change the expected output for lack of idea for a backwards compatible change which is not simply using another protocol. Signed-off-by: Phil Sutter <phil@nwl.cc>
* Handle all variable header parts in helper scripts instead ot test tasksJozsef Kadlecsik2020-09-211-1/+2
| | | | | | | Thus the tests tasks can be simplified and all exceptions can be handled in the helper scripts. Signed-off-by: Jozsef Kadlecsik <kadlec@netfilter.org>
* Add bucketsize parameter to all hash typesJozsef Kadlecsik2020-09-211-2/+2
| | | | | | | | | The parameter defines the upper limit in any hash bucket at adding new entries from userspace - if the limit would be exceeded, ipset doubles the hash size and rehashes. It means the set may consume more memory but gives faster evaluation at matching in the set. Signed-off-by: Jozsef Kadlecsik <kadlec@netfilter.org>
* Add element count to hash headersEric B Munson2015-06-191-1/+2
| | | | | | | | | | | | | | | | | | | | | | It would be useful for userspace to query the size of an ipset hash, however, this data is not exposed to userspace outside of counting the number of member entries. This patch uses the attribute IPSET_ATTR_ELEMENTS to indicate the size in the the header that is exported to userspace. This field is then printed by the userspace tool for hashes. Because it is only meaningful for hashes to report their size, the output is conditional on the set type. To do this checking the MATCH_TYPENAME macro was moved to utils.h. The bulk of this patch changes the expected test suite to account for the change in output. Signed-off-by: Eric B Munson <emunson@akamai.com> Cc: Pablo Neira Ayuso <pablo@netfilter.org> Cc: Josh Hunt <johunt@akamai.com> Cc: netfilter-devel@vger.kernel.org Signed-off-by: Jozsef Kadlecsik <kadlec@blackhole.kfki.hu>
* Update testsuite as the trailing space was eliminated at listingsJozsef Kadlecsik2013-05-021-1/+1
|
* Get rid of the trailing empty line at listing sets.Jozsef Kadlecsik2011-04-191-1/+0
| | | | | | | Also, remove the empty "members" section when listing just the set headers. Testsuite is updated to reflect the changes in the output.
* Testsuite fix of ospf replaced with vrrp.Jozsef Kadlecsik2011-01-181-1/+1
| | | | | The testsuite failed incorrectly, because the order of the elements changed.
* Replace ospf with vrrp in the testsuiteJozsef Kadlecsik2011-01-131-1/+1
| | | | Some systems do not contain ospf in /etc/protocols but ospfigp only.
* Fixes, cleanups, commentsv5.0-pre8Jozsef Kadlecsik2010-10-241-2/+2
| | | | | | | | | | | | | | | | | | | - More comments added to the code - ICMP and ICMPv6 support added to the hash:ip,port, hash:ip,port,ip and hash:ip,port,net types - hash:net and hash:ip,port,net types are reworked - hash:net,port type added - Wrong direction parameters fixed in hash:ip,port - Helps and manpage are updated - More tests added - Ugly macros are rewritten to functions in parse.c (Holger Eitzenberger) - resize related bug in hash types fixed (Holger Eitzenberger) - autoreconf patches by Jan Engelhardt applied - netlink patch minimalized: dumping can be initialized by a second parsing of the message (thanks to David and Patrick for the suggestion) - IPv4/IPv6 address attributes are introduced in order to fix the context (suggested by David)
* ipset 5: last new feature addedv5.0-pre3Jozsef Kadlecsik2010-06-221-0/+10
- the hash types can now store protocol together port, not only port - lots of fixes everywhere: parser, error reporting, manpage The last bits on the todo list before announcing ipset 5: - recheck all the error messages - add possibly more tests - polish manpage