For Programmers: Free Programming Magazines  


Home > Archive > PERL Beginners > May 2007 > Net::Ping Bug found?









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Net::Ping Bug found?
Angerstein

2007-05-16, 6:59 pm

Hi there!

I am using Net::Ping on AIX (here 5.2) and I noticed a strange behaviour
concerning the ICMP Payload Data Field.

If I do a typical default ping with=20
$p =3D new Net::Ping('icmp', $ping_timeout);
I will get a EthernetII-IP-ICMP-Package (so far so good),
but this package does not contain a Payload field (I would normaly
expect),
therefor it contains a Ethernet II Trailer (Wireshark).

(I verified this by using iptrace v2.0 on aix and wireshark on my win2k
desktop box.)

If I do a ping with a manuell specified payload=20
(like $p =3D new Net::Ping('icmp', $ping_timeout, 18);)
the package looks (for me as a halfaway network g) good.

When is this a problem?
It looks like some Router (by some Vendors) do not send icmp echo=20
replies on such kind of requests.
Sometimes it might look like that your router is down, but it isn=B4t.
(And If you have like me over 1000 multivendor routers/switche/etc to
manage,
it=B4s not funny.)

What could be the Problem:
The package building process in Net::Ping is filthy-> I guess
the IP-Total Length field is not set correctly (the payload lenght is
not added to it).=20

So Please:
Could somebody verify this on her/his own System?=20

If anybody feels able or have time to patch this, please patch the
multithreadsupport patch right with it.
(https://rt.cpan.org/Public/Bug/Display.html?id=3D4170)

If you need to verify the fix feel free to ask me.=20

Bastian Angerstein

Tom Phoenix

2007-05-16, 6:59 pm

On 5/16/07, Angerstein <ang@nmc-m.dtag.de> wrote:

> So Please:
> Could somebody verify this on her/his own System?


I'm sure that many people will be glad to help you. Could you please
supply a small program that testers could run and send you the output?

Good luck with your project!

--Tom Phoenix
Stonehenge Perl Training
usenet@DavidFilmer.com

2007-05-16, 6:59 pm

On May 16, 6:01 am, a...@nmc-m.dtag.de (Angerstein) wrote:
> Could somebody verify this on her/his own System?


I'd be happy to test it on an AIX 5.3 system, but you are gonna have
to make it easy for me by posting a small complete test program for me
to run. If you make it easy to help you, I'm glad to do so, but I'm
not gonna write the test program.

--
The best way to get a good answer is to ask a good question.
David Filmer (http://DavidFilmer.com)

Tom Phoenix

2007-05-16, 6:59 pm

On 5/16/07, Angerstein <ang@nmc-m.dtag.de> wrote:

> Start iptrace with


Machine #1: Doesn't have iptrace. OpenBSD 4.0 system.

Machine #2: Doesn't have iptrace. MacOS X 10.4.9.

I hope that other testers have better results for you!

--Tom Phoenix
Stonehenge Perl Training
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com