[tkined] Minor Tnm bugs

Stefan Finzel (finzel@osn.de)
Fri, 18 Jun 1999 18:28:47 +0200

While porting applications to Tcl8.x I found a few minor bugs.

uname -a
Linux pc1 2.2.5 #3 Fri Apr 2 17:04:34 MEST 1999 i686 unknown

info load
{/usr/local/lib/tnm3.0.0.so Tnm} {{} Tk}

set tcl_patchLevel
8.0.5

set tk_patchLevel
8.0.5

set tnm(version)
3.0.0

# no DNS

# ------------------------------------------------

Tnm::netdb networks
{loopback 127.0.0.0} {finzel.de 150.10.10.0} {fis.de 150.10.10.0}

Tnm::netdb networks address loopback
0.0.0.127

# EXPECTED 127.0.0.0

Tnm::netdb networks address fis.de
0.10.10.150

# EXPECTED 150.10.10.0

# ------------------------------------------------

Tnm::netdb hosts
{localhost 127.0.0.1} ...

# works well using Unix/Linux.
# It fails using Windows 95, returning an empty string.
# The files hosts and hosts.sam are in the \windows
# directory and in the directory \etc.
# Resolving names and addresses works fine all the time:

Tnm::netdb hosts address localhost
127.0.0.1

Tnm::netdb hosts name 127.0.0.1
localhost

# I've seen the same problem with

Tnm::netdb networks

# ------------------------------------------------

-- 
___________________________________________________________

Stefan G. R. Finzel Dipl. Phys. (Univ.) Amalienstraße 69/IV Phone +49 (0)911 7419474 D - 90763 Fürth EMail mailto:finzel@osn.de Germany, Europe URL http://www.osn.de/user/finzel/ ___________________________________________________________

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