Michael C. Toren on Sun, 8 Jun 2003 14:35:22 -0400

[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: [tcptra-dev] tcptraceroute test suite

> See the attachments. It's not the full output since your "findsource" 
> routine does not work on my Solaris system. The connect for localhost 
> and michael.toren.net fails with:
> connect: Cannot assign requested address

Oops, you're right.  This one-line fix should correct the problem:

--- foo Sun Jun  8 13:59:15 2003
+++ tcptra-testsuite.pl   Sun Jun  8
13:58:16 2003
@@ -18,3 +18,3 @@
        socket(S, PF_INET, SOCK_DGRAM, $udp) or die "scoket: $!\n";
-       my $s = sockaddr_in 0, (inet_aton $host or die "Unknown host: $host\n");
+       my $s = sockaddr_in 1, (inet_aton $host or die "Unknown host: $host\n");
        connect S, $s or die "connect: $!\n";

The change has been incorporated into the test suite script linked from
the compatibility page.

> And even if the findsource() did work, tracing to localhost would have 
> failed:
> # ./tcptraceroute
> error opening device lo0: /dev/lo0: No such file or directory

This is much more concerning to me.  Can you try sending the output of
"tcptraceroute -d localhost"?  It might also be interesting to see if the
error is also present with libnet-1.1.x.

tcptraceroute-dev mailing list