redjack/ipset — pull request #15 by johnzachary (2012-03-04 14:06:08+00:00)
Title: Improved error checking for IP/CIDR address input

This version utilizes a new libcork function for checking if IP addresses are aligned with a given CIDR block. It also introduce a new command line option `--loose-cidr` to turn off this check.

The current error checking code is a bit awkward and could be refactored if we update the cork_ip_is_valid_network() to include a parameter for loose or hard CIDR block checks.