9front - general discussion about 9front
 help / color / mirror / Atom feed
From: arisawa <karisawa@gmail.com>
To: 9front@9front.org
Subject: ip/ping -6
Date: Sat, 17 Jun 2017 14:54:16 +0900	[thread overview]
Message-ID: <1E2F651D-EE70-458E-B383-A2ADBD32A034@gmail.com> (raw)

Hello,

"ip/ping -6" does not work.

hebe% ndb/csquery
> net!mbook!*
/net/il/clone 192.168.0.249!*!fasttimeout
/net/tcp/clone 192.168.0.249!*
/net/tcp/clone 2402:6b00:4040:b600:22c9:d0ff:fe8b:2b5!*
/net/il/clone 192.168.0.249!*
> 

then 
	ip/ping -6 mbook
freezes.

the problem comes from /sys/src/libc/9sys/dial.c.

In function csdial(DS *ds)

  	while((n = read(fd, buf, sizeof(buf) - 1)) > 0){
  		buf[n] = 0;
  		p = strchr(buf, ' ');
  		if(p == nil)
  			continue;
  		*p++ = 0;
+ 		if((strcmp(ds->proto,"icmp") == 0) && strchr(p,':'))
+ 			continue;
+ 		if((strcmp(ds->proto,"icmpv6") == 0) && strchr(p,'.'))
+ 			continue;
  		rv = call(buf, p, ds);
  		if(rv >= 0)
  			break;



             reply	other threads:[~2017-06-17  5:54 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-06-17  5:54 arisawa [this message]
2017-06-17 12:28 有澤健治
2017-06-18  2:50 Kenji Arisawa

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1E2F651D-EE70-458E-B383-A2ADBD32A034@gmail.com \
    --to=karisawa@gmail.com \
    --cc=9front@9front.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).