* ip/ping -6
@ 2017-06-17 12:28 有澤健治
0 siblings, 0 replies; 3+ messages in thread
From: 有澤健治 @ 2017-06-17 12:28 UTC (permalink / raw)
To: 9front
[-- Attachment #1: Type: text/plain, Size: 868 bytes --]
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;
[-- Attachment #2: Type: text/html, Size: 3021 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* ip/ping -6
@ 2017-06-18 2:50 Kenji Arisawa
0 siblings, 0 replies; 3+ messages in thread
From: Kenji Arisawa @ 2017-06-18 2:50 UTC (permalink / raw)
To: 9front
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;
where '+' marks denote the fix.
^ permalink raw reply [flat|nested] 3+ messages in thread
* ip/ping -6
@ 2017-06-17 5:54 arisawa
0 siblings, 0 replies; 3+ messages in thread
From: arisawa @ 2017-06-17 5:54 UTC (permalink / raw)
To: 9front
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;
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2017-06-18 2:50 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-06-17 12:28 ip/ping -6 有澤健治
-- strict thread matches above, loose matches on Subject: below --
2017-06-18 2:50 Kenji Arisawa
2017-06-17 5:54 arisawa
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).