Re: [tkined] Subnet-zero and one another

Juergen Schoenwaelder (schoenw@ibr.cs.tu-bs.de)
Tue, 15 Dec 1998 13:37:47 +0100

>>>>> Peter Polkinghorne writes:

Peter> This is a good question and has sometimes bothered me in the
Peter> past. What is needed is a standard for how to represent
Peter> netmasks and some routines to manipulate - input, output,
Peter> membership of nework and all members of a network - should be
Peter> enough?

The Tnm 3.0.0 `Tnm::netdb ip' command has several options to do what
you want:

: Tnm::netdb ip broadcast address mask
: Tnm::netdb ip class address
: Tnm::netdb ip compare mask mask
: Tnm::netdb ip range address mask
: The first version of the Tnm::netdb ip command applies
: the mask to the address and returns the resulting sub-
: net. The Tnm::netdb ip broadcast command applies the
: mask to the address and returns the resulting broadcast
: address. The netdb ip class command returns the IP
: class of the address argument. The following classes
: are recognized: A, B, C, D and loopback. The Tnm::netdb
: ip compare command compares two masks and returns -1, 0
: or 1, depending on whether the first mask is smaller,
: equal or greater than the second mask. The Tnm::netdb
: ip range command returns the list of IP addresses in
: the address range given by address and mask.

The problem is that the discover script does not use these commands. I
once started a project to rewrite the script using the new Tnm::map
command in order to allow arbitrary subnets and (more important) to
turn the script into a set of modular incremental discovery steps
which can be run on an existing network in order to verify or update
the topology information. I never found time to complete this rewrite
and hence I am still distributing the old version. If there is a
volunteer to work on such a rewrite, just let me know. (I am willing
to give assistence as time permits.)
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.