net/mtr and IPv6 with 6.0-STABLE

Hajimu UMEMOTO ume at freebsd.org
Wed Nov 16 08:29:02 PST 2005


Hi,

>>>>> On Wed, 16 Nov 2005 13:16:16 +0000
>>>>> Mark Knight <markk at knigma.org> said:

markk> 2)  net/mtr doesn't seem to be working with ipv6 anymore.  For example:

Yes, there is a bug in mtr.  The following patch should fix this issue:

Index: net.c
diff -u -p net.c.orig net.c
--- net.c.orig	Thu Nov 17 01:19:41 2005
+++ net.c	Thu Nov 17 01:24:05 2005
@@ -277,7 +277,7 @@ void net_send_query(int index) 
       exit( EXIT_FAILURE);
     }
     echotype = ICMP6_ECHO_REQUEST;
-    salen = sizeof (struct sockaddr_storage);
+    salen = sizeof (struct sockaddr_in6);
     break;
 #endif
   }


Sincerely,

--
Hajimu UMEMOTO @ Internet Mutual Aid Society Yokohama, Japan
ume at mahoroba.org  ume@{,jp.}FreeBSD.org
http://www.imasy.org/~ume/


More information about the freebsd-ports mailing list