Skip Menu |

This queue is for tickets about the Net-Ping CPAN distribution.

Report information
The Basics
Id: 6706
Status: resolved
Priority: 0/
Queue: Net-Ping

People
Owner: SMPETERS [...] cpan.org
Requestors: Torgny.Hofstedt [...] 7L.se
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 2.31
Fixed in: (no value)



Subject: Problem (and maybe a solution) with ToS in Ping.pm 2.31
I've noticed that when I use UDP-echo with ToS to ping a list of hosts only the first host is pinged with the ToS value. The following pings have ToS == 0. For ICMP it works as expected. I'd a look in the Ping.pm module and located the problem to the "ping_udp" subroutine when it executes the "flush" code the ToS value is not restored. I borrowed the ToS set-up code from the "new" subroutine and added it to the "flush" path in "ping_udp" It seems to work. Regards, Torgny...

Message body is not shown because it is too large.

On Tue Jun 22 05:08:32 2004, guest wrote: Show quoted text
> I've noticed that when I use UDP-echo with ToS to ping a list of hosts > only the first host is pinged with the ToS value. The following pings > have ToS == 0. For ICMP it works as expected. I'd a look in the > Ping.pm module and located the problem to the "ping_udp" subroutine > when it executes the "flush" code the ToS value is not restored. I > borrowed the ToS set-up code from the "new" subroutine and added it to > the "flush" path in "ping_udp" It seems to work. Regards, Torgny...
The device also needs to re-bound. Good patch, thanks. Uploaded as RURBAN/Net-Ping-2.49_03.tar.gz -- Reini Urban