# Create a set without timeout
0 ipset -N test iptreemap
# Add first random IP entry
0 ipset -A test 2.0.0.1
# Add second random IP entry
0 ipset -A test 192.168.68.69
# Test first random IP entry
0 ipset -T test 2.0.0.1
# Test second random IP entry
0 ipset -T test 192.168.68.69
# Test value not added to the set
1 ipset -T test 2.0.0.2
# Test value not added to the set
1 ipset -T test 192.168.68.70
# Add IP range
0 ipset -A test 3.0.0.0:3.0.0.2
# Test the three members of the range: first
0 ipset -T test 3.0.0.0
# Test the three members of the range: second
0 ipset -T test 3.0.0.1
# Test the three members of the range: third
0 ipset -T test 3.0.0.2
# Delete the middle of the range
0 ipset -D test 3.0.0.1
# Test the range: first
0 ipset -T test 3.0.0.0
# Test the range: second
1 ipset -T test 3.0.0.1
# Test the range: third
0 ipset -T test 3.0.0.2
# Add a network block
0 ipset -A test 192.168.68.69/27
# Test the lower bound of the network
0 ipset -T test 192.168.68.64
# Test the upper bound of the network
0 ipset -T test 192.168.68.95
# Test element from the middle
0 ipset -T test 192.168.68.71
# Delete a network from the middle
0 ipset -D test 192.168.68.70/30
# Test element from the middle
1 ipset -T test 192.168.68.71
# Delete test test
0 ipset -X test
# eof