Discussion:
ping6 strange behavior
(too old to reply)
Tetokubo
2008-10-11 19:49:55 UTC
Permalink
Hi.

The following command, it takes 10 seconds.

ping6 -i 10 -c 1 localhost

ping6 interval affects the first packet.
ping doesn't.
Is this behavior necessary?
I think it is unnecessary.


--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-***@muc.de
David Young
2008-10-12 21:13:16 UTC
Permalink
Post by Tetokubo
Hi.
The following command, it takes 10 seconds.
ping6 -i 10 -c 1 localhost
ping6 interval affects the first packet.
ping doesn't.
Is this behavior necessary?
I think it is unnecessary.
I think you are right. Will you send a patch that fixes the problem?

Dave
--
David Young OJC Technologies
***@ojctech.com Urbana, IL * (217) 278-3933 ext 24

--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-***@muc.de
Tetokubo
2008-10-13 02:12:35 UTC
Permalink
Post by David Young
I think you are right. Will you send a patch that fixes the problem?
Dave
Thank you for the reply.
I submitted it as Problem Report #39732 with patch.
The patch is below.

*** ./ping6.c.orig Sun Oct 12 22:09:25 2008
--- ./ping6.c Mon Oct 13 05:54:58 2008
***************
*** 1008,1015 ****
itimer.it_interval = interval;
itimer.it_value = interval;
(void)setitimer(ITIMER_REAL, &itimer, NULL);
! if (ntransmitted)
! retransmit();
}


seenalrm = seenint = 0;
--- 1008,1014 ----
itimer.it_interval = interval;
itimer.it_value = interval;
(void)setitimer(ITIMER_REAL, &itimer, NULL);
! retransmit();
}


seenalrm = seenint = 0;

--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-***@muc.de
Loading...