Description of problem: If we try to change netmask of the interface and we choose incorrect one (i.e. 255.255.252.255), ifconfig shows us warning, but exits with exit code 0. Version-Release number of selected component (if applicable): rhel 4.5 How reproducible: always Steps to Reproduce: ifconfig eth0 ip_addres netmask 255.255.252.255 echo $? Actual results: 0 Expected results: non-zero exit code Additional info:
ifcondig uses ioct() to setting netmask. If ioctl() successes, then ifconfig returns 0. In this case, ioctl() really successes, so ifconfig returns zero. In my opinion this is not a bug but a feature. Zdenek