Description of problem: ipcalc utils handling netmask parameters incorrectly with '-c' option. one problem: ignoring invalid cidr, second - not accepting netmask in format allowed by manual. Version-Release number of selected component (if applicable): How reproducible: problem one: Steps to Reproduce: 1. ipcalc -c 128.34.34.2/FF;echo $? Actual results: not output error code: 0 Expected results: invalid mask, non-zero error code and second: Steps to Reproduce: 1. ipcalc -c 128.34.34.2 255.255.255.0 Actual results: ipcalc: unexpected argument: 255.255.0.0 Usage: ipcalc [OPTION...] -c, --check Validate IP address for specified address family -4, --ipv4 IPv4 address family (default) -6, --ipv6 IPv6 address family -b, --broadcast Display calculated broadcast address -h, --hostname Show hostname determined via DNS -m, --netmask Display default netmask for IP (class A, B, or C) -n, --network Display network address -p, --prefix Display network prefix -s, --silent Don't ever display error messages Help options: -?, --help Show this help message --usage Display brief usage message error code: 1 Expected results: no ouput. error code zero. Additional info:
Thanks for the report, this should be fixed.
https://git.fedorahosted.org/cgit/initscripts.git/commit/?h=rhel6-branch&id=dcd293b7f70962c6193253d86f9b6f002d3e22de https://git.fedorahosted.org/cgit/initscripts.git/commit/?h=rhel6-branch&id=54aa7d8e28b55a65038164b27a141bc13e813458
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. http://rhn.redhat.com/errata/RHBA-2014-1448.html