1833452 Members
3414 Online
110052 Solutions
New Discussion

Capture loopback packets

 
SOLVED
Go to solution
Manish_33
Advisor

Capture loopback packets

Hi friends,
I want to capture loopback udp packets on HP-UX but unable to do so......i have tried ethereal and tcpdump but it is not working. Also it seems that libpcap library doesnt have support for loopback.

Please help me how to do it?
Thanks in advance
7 REPLIES 7
harry d brown jr
Honored Contributor

Re: Capture loopback packets

http://www.faqs.org/faqs/hp/hpux-faq/section-105.html

live free or die
harry d brown jr
Live Free or Die
Asif Sharif
Honored Contributor

Re: Capture loopback packets

Manish_33
Advisor

Re: Capture loopback packets

Hi friends,
Actually i am new to HPUX so having lots of confusion with the parameters and filter files. Can you please give me the exact command to capture udp packets on loopback. My interface name is lan0 and ppa name is snap0.

Thanks in advance.
Arunvijai_4
Honored Contributor
Solution

Re: Capture loopback packets

Hi Manish,

Have you tried running

# nettl -tn all -e ns_ls_ip -size 1024 -tracemax 99999 -f /tmp/raw

as given in the HP-UX FAQ ?

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
Sยภเl Kย๓คг
Respected Contributor

Re: Capture loopback packets

Hi,

All these utilities, nettl, ethereal, tcpdump suit your requirement. You can also use 'nettladm' also with patch PHNE_18218 to get graphical front end for nettl and netfmt.

Regards,
Sunil
Your imagination is the preview of your life's coming attractions
Manish_33
Advisor

Re: Capture loopback packets

Hi Sunil,
thanks, while applying that patch it gives me error that no target found for this source. What does that mean and what do i need to do about it?. Also i am able to open nettladm in GUI mode. but using it how do i capture udp packets on loopback. Please help...i am a newbie so some details would be helpful.
Asif Sharif
Honored Contributor

Re: Capture loopback packets

Hi Manish,

Put that patch in /tmp and give this command to run the path.

#swinstall -s /tmp/patchname.depot
after that sam will run and firstly mark for install and then install. It will install the patch.

Regards,
Asif Sharif
Regards,
Asif Sharif