i have a little problem..
i have to check if a IP is valid... i have this Ip in a uservar [the ip is: 192.168.2.11] and i only want to check if the IP is correct.
now i use the iptest.dll
[i hope i do ]😛
is there any bug in this following code?
!insertmacro ReadOutIp
StrCpy $0 $Ip
Loop:
Push $0
;Call GetNextIp
Call CheckIp
MessageBox MB_OK "Type of Ip $2"
Pop $2 ; Type of current IP-address
Pop $1 ; Current IP-address
Pop $0 ; Remaining addresses
StrCmp $2 '1' '' NoLoopBackIp
MessageBox MB_OK "LoopBack IP-address: $1"
Goto Continue
NoLoopBackIp:
StrCmp $2 '2' '' NoAPA
MessageBox MB_OK "Automatic Private IP-address: $1"
Goto Continue
NoAPA:
StrCmp $2 '3' '' NoLanIp
MessageBox MB_OK "Network IP-address: $1"
Goto Continue
NoLanIp:
MessageBox MB_OK "Internet IP-address: $1"
Goto Continue
Continue:
;StrCmp $0 '' ExitLoop Loop
Goto ExitLoop
ExitLoop: