Operating System - HP-UX
1748058 Members
5661 Online
108758 Solutions
New Discussion юеВ

Re: libpcap/tcpdump and HP's DLPI implementation

 
James A. Donovan
Honored Contributor

libpcap/tcpdump and HP's DLPI implementation

Apparently, the only libpcap library that I can find doesn't fully support HP's DLPI implementation. I can't capture the outgoing packets when I run tcpdump on my L-Class. Does anyone have a libpcap that works, or know what needs to be modified in the code in order to get it to work?

TIA,

Jim
Remember, wherever you go, there you are...
2 REPLIES 2
Kofi ARTHIABAH
Honored Contributor

Re: libpcap/tcpdump and HP's DLPI implementation

Hi Jim:

Must you absolutely run tcpdump? You might want to try ethereal...

http://hpux.cs.utah.edu/hppd/hpux/Gtk/ethereal-0.8.9/

better yet, follow the thread:

http://forums.itrc.hp.com:80/cm/QuestionAnswer/1,1150,0x6e5168c57f64d4118fee0090279cd0f9,00.html
nothing wrong with me that a few lines of code cannot fix!
James A. Donovan
Honored Contributor

Re: libpcap/tcpdump and HP's DLPI implementation

I could use ethereal if the program didn't core dump every time I try to specify /dev/dlpi0 as the interface to monitor.

I finally did find what appears to be the answer to my question about why I couldn't trace outbound packets. I just have to test and make sure it actually works. Buried at the end of the readme file for patch PHNE_21687 in the "Special Installation Instructions" section was this little blurb.

"To trace the outbound packets, please do the following to turn on a global promiscuous switch before running the promiscuous applications like snoop or tcpdump:
adb -w /stand/vmunix /dev/mem
lanc_outbound_promisc_flag/W 1
(adb will echo the result showing that the flag has been changed)
$quit
"
Remember, wherever you go, there you are...