1832592 Members
2932 Online
110043 Solutions
New Discussion

ping flood in HPUX

 
Abhijit Sarkar
New Member

ping flood in HPUX

I need to implement linux like ping flood (ping -f) and data size (ping -s) in hpux. Can someone give me the source code of ping utility in hpux 11iv3?
6 REPLIES 6
Suraj K Sankari
Honored Contributor

Re: ping flood in HPUX

Hi,
>>I need to implement linux like ping flood (ping -f) and data size (ping -s) in hpux

In HPUX ping flood is not aviable but you can send the packet-size see the man page of ping.

>>Can someone give me the source code of ping utility in hpux 11iv3?

Like Linux HP is not open source I don't think so you will get the source code for the same.

Suraj
Abhijit Sarkar
New Member

Re: ping flood in HPUX

Even if I don't get the source code, it's fine. Can I get the binary of something like truss so that I can trace the system calls used in ping. I need to know which IOCTL is used to send ICMP packets by ping in hpux.
rick jones
Honored Contributor

Re: ping flood in HPUX

You would download the tusc utility to take those system call traces.

Ping flood is ping without think time right?

Modulo being TCP rather than ICMP you can get the same sort of traffic with a netperf TCP_RR test. http://www.netperf.org/

If you need/want multiple requests in flight at one time, you would ./configure the netperf bits with --enable-burst and add a -b option to the netperf command line.

In the sources there should be an html version of the manual describing much of that (not sure if burst mode is there or not but it may be)
there is no rest for the wicked yet the virtuous have no pillows
dirk dierickx
Honored Contributor

Re: ping flood in HPUX

just use the source of the linux ping and adjust/build it on hpux.
Steven E. Protter
Exalted Contributor

Re: ping flood in HPUX

Shalom,

I have my doubts that the Linux ping source would compile on HP-UX.

Probably best to use an actual Linux box for this job, though controlling ping packet size is a good load test.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Laurent Menase
Honored Contributor

Re: ping flood in HPUX

To send ICMP it is quite simple, just use a AF_INET RAW socket. IT is quite simple.

So take linux source and compile.....
it is basic use of RAW sockets.

HPUX sources are private