cdpr - Cisco Discovory Protocol Reporter (Pete's notes)

Web to the cdpr page.

Garth D'Attillo gave me a Windows ZIP file. I installed it on proteus. To do so, unzip'd it into C:\cdpr-2.1.0 and then executed the WinPcap_3_0.exe file. To run it, open a Command window and execute C:\cdpr-2.1.0\cdpr.exe.

Download the tar file.

(as siemsen)
~/tmp/ cd ~/tmp
tar -xf cdpr-2.1.0.tar
rm cdpr-2.1.0.tar
cd cdpr-2.1.0
make
I got "cdpr.c:37:18: pcap.h: No such file or directory". I did
# rpm -qa | grep pcap
libpcap-0.6.2-12
#
So it's installed. I found /usr/include/pcap/pcap.h, but obviously the C compiler isn't finding it. I edited the Makefile and inserted
CFLAGS = -Wall -ggdb -I/usr/include/pcap
Now the C compiler finds pcap.h, but pcap.h doesn't define pcap_if_t, so I must have an old version of libpcap. I verified that libpcap-devel-0.7.1-3.i386.rpm has a version of pcap.h that defines pcap_if_t, but I got lost in rpm dependency hell when I tried to install libpcap-devel-0.7.1-3.i386.rpm.

Pete Siemsen
Last modified: Fri Mar 5 09:12:47 MST 2004