Re: [tkined] network & subnet

Juergen Schoenwaelder (schoenw@ibr.cs.tu-bs.de)
Thu, 12 Aug 1999 12:01:42 +0200

>>>>> Matthew Levine writes:

Matthew> I've fixed the discover script (attached) in the examples
Matthew> directory to use subnet masks. The network address now needs
Matthew> to be a four octet dotted-decimal address (ie 192.168.1.0)
Matthew> instead of the old format it wanted (192.168.1 or 192.168).

[...]

The scotty 3.0.x snaphot already contains a script which works with
arbitrary netmasks. Scotty 3.0.x provides some new buildin commands
that do all the bit handling in C. The key is the following command:

Tnm::netdb ip range address mask

The Tnm::netdb ip range command returns the list of IP addresses
in the address range given by address and mask.

If you seriously want to update the ip_discover.tcl script, please
consider to use the 3.0.x commands. If you need things running with
2.1.X, then you can write a replacement for the Tnm::netdb ip
subcommands in pure Tcl.
Juergen

-- 
Juergen Schoenwaelder  schoenw@ibr.cs.tu-bs.de http://www.cs.tu-bs.de/~schoenw
Technical University Braunschweig, Dept. Operating Systems & Computer Networks
Bueltenweg 74/75, 38106 Braunschweig, Germany.        (Tel. +49 531 / 391 3289)
--
!! This message is brought to you via the `tkined & scotty' mailing list.
!! Please do not reply to this message to unsubscribe. To subscribe or
!! unsubscribe, send a mail message to <tkined-request@ibr.cs.tu-bs.de>.
!! See http://wwwsnmp.cs.utwente.nl/~schoenw/scotty/ for more information.