Bug 22196

Summary: shell-ip-address: 0.0.0.0 is not valid
Product: Sisyphus Reporter: Sir Raorn <raorn>
Component: libshellAssignee: Alexey Gladkov <legion>
Status: CLOSED FIXED QA Contact: qa-sisyphus
Severity: normal    
Priority: P3 CC: legion
Version: unstable   
Hardware: all   
OS: Linux   

Description Sir Raorn 2009-11-06 18:54:13 MSK
0.0.0.0 should be treated as valid IP address since it is possible to run service on this IP (which means "all interfaces and addresses") and connect to this address (using http://0.0.0.0:3000/ for local Rails applications works too).

Another issue, addresses like A.B.C.0 CAN be valid if netmask (which is not taken in account in this checks) is greater than /24.
Comment 1 Alexey Gladkov 2009-11-06 19:44:24 MSK
Function and regular expressions make only what is described in the commentary in the source text. You want real ip calculator?

(english powered by translate.google.com)
Comment 2 Alexey Gladkov 2010-04-29 19:26:55 MSD
Добавлено несколько функций:

ipv4_ip_subnet
ipv4_mask2prefix
ipv4_prefix2mask