Re: [tkined] Multiple class C discovery errors

From: Juergen Schoenwaelder (schoenw@ibr.cs.tu-bs.de)
Date: Tue Feb 15 2000 - 01:52:47 MET


>>>>> 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}
     }
 }
 

/js

-- 
Juergen Schoenwaelder      Technical University Braunschweig
<schoenw@ibr.cs.tu-bs.de>  Dept. Operating Systems & Computer Networks
Phone: +49 531 391 3289    Bueltenweg 74/75, 38106 Braunschweig, Germany
Fax:   +49 531 391 5936    <URL:http://www.ibr.cs.tu-bs.de/~schoenw/>

-- !! 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:35 MET