NetBSD-Bugs archive

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

bin/39732: ping6: It takes interval seconds to send the first echo-request



>Number:         39732
>Category:       bin
>Synopsis:       ping6: It takes interval seconds to send the first echo-request
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Oct 12 12:15:00 +0000 2008
>Originator:     Tetokubo
>Release:        4.0
>Organization:
>Environment:
NetBSD  4.0 NetBSD 4.0 (GENERIC) #0: Sun Dec 16 00:20:10 PST 2007  
builds@wb34:/home/builds/ab/netbsd-4-0-RELEASE/i386/200712160005Z-obj/home/builds/ab/netbsd-4-0-RELEASE/src/sys/arch/i386/compile/GENERIC
 i386
>Description:
The following example, it takes 10 seconds.

ping6 -i 10 -c 1 localhost

It takes interval seconds to send the first echo-request.

>How-To-Repeat:
The following example, it takes 10 seconds.

ping6 -i 10 -c 1 localhost

>Fix:
*** ./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;



Home | Main Index | Thread Index | Old Index