x is 192.179.1.112
y is 192.179.1.0
result z should contain the result ip address...
Thanks in advance!
Regards,
Anil A Kumar
Check tcllibs IP package [http://tcllib.sourceforge.net/] you can then
do:
% ::ip::intToString [expr [::ip::toInteger 192.179.1.112] &
[::ip::toInteger 192.179.1.0]]
192.179.1.0
Mark
will it work for 8.14 tcl version?
I assume yoou mean 8.4.14? tcllib's ip package should work for 8.4,
best way to know is to just download and install Tcllib and try it.
Mark
ip version 1.1.2 requires Tcl 8.2. Modification to make it work
with 8.0 is trivial. The same might well be true back to 7.6, or
beyond.