Re: [tkined] Multiple class C discovery errors

From: Brian Ford (ford@vss.fsi.com)
Date: Tue Feb 15 2000 - 17:47:14 MET


First, let me appologize for the dual messages. I was originally not
aware that the list was closed. Then I thought that I had subscribed
so I resent the message. I found out that I had not yet completed the
confirmation proceedure, so I figured that I had better send it
again after doing so. It looks like both of the last two made it
through, though. Sorry.

Also, let me appologize for leaving out some critical information. When I
originally wrote the message, I was not aware of any version of scotty
other than 2.1.10. Since then, I have found the CVS access to 3.0.0 Alpha
(and of course the snapshots). So, my original problem report was based
on 2.1.10. I have since tested with CVS and the error still
appeared. But, CVS from today appears to have the problem fixed. Thanks.

Incidentally, I am trying this on a Sparc Solaris 7 system with tcl/tk
8.2.3. I ran into one compile problem with CVS scotty and two similar
problems with 2.1.10. It seems that on Solaris 7, ipaddr_t is defined in
/usr/include/netinet/in.h to be a uint32_t. This conflicts with the
definitions for 2.1.10 in tnm/generic/tnmNtp.c & tnm/ntping/ntping.c and
for CVS in nmicmpd.c. I would recommend using something similar to what
Sun did in /usr/include/netinet/in.h:

#ifndef _IPADDR_T
#define _IPADDR_T
typedef goes here
#endif

to avoid this conflict.

Thank you for your help and for this great free software.

On Tue, 15 Feb 2000, Juergen Schoenwaelder wrote:

> >>>>> Brian Ford writes:
>
> Brian> When using tkined and the IP Discovery feature, all works fine
> Brian> for the first class C network that I discover. Trying a second
> Brian> class C network always gives the error:
>
> [...]
>
> Brian> Can anyone suggest a fix or where to start looking?
>
> I assume you are using one of the snapshots. Here is a patch for a
> very stupid bug in the cleanup procedure.
>
> Index: ip_discover.tcl
> diff -u -r1.12 -r1.13
> --- ip_discover.tcl 2000/02/08 14:50:23 1.12
> +++ ip_discover.tcl 2000/02/15 00:50:23 1.13
> @@ -16,7 +16,7 @@
> # See the file "license.terms" for information on usage and redistribution
> # of this file, and for a DISCLAIMER OF ALL WARRANTIES.
> #
> -# @(#) $Id: ip_discover.tcl,v 1.12 2000/02/08 14:50:23 schoenw Exp $
> +# @(#) $Id: ip_discover.tcl,v 1.13 2000/02/15 00:50:23 schoenw Exp $
>
> package require Tnm 3.0
>
> @@ -55,14 +55,18 @@
>
> ##
> ## Reset the global tables. This is now called before we start anything
> -## else to recover from abnormal terminated runs.
> +## else to recover from abnormal terminated runs. Unset the variables
> +## in a loop just in case some do not yet exist.
> ##
>
> proc reset {} {
> - foreach name {
> + set globalvars {
> nodes networks links ids trace mask fip name address gateways
> - } {
> - catch {unset $name}
> + }
> +
> + foreach g $globalvars {
> + global $g
> + catch {unset $g}
> }
> }
>

--
Brian Ford
Software Engineer
Vital Visual Simulation Systems
FlightSafety International
Phone: 314-551-8460
Fax:   314-551-8444

-- !! 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.



This archive was generated by hypermail 2b29 : Mon Jan 08 2001 - 15:27:36 MET