I could not compile Tcpdump 3.7.1 for some reason. This seems to be a
problem with the original tcpdump code and specific to version 3.7.1. I
would consult the tcpdump developers, but I would probably get the
answer "Just download and compile the latest version of tcpdump"

tar xzvf tcpdump-3.7.1.tar.gz
cd tcpdump-3.7.1
../configure
make

The following error occurs

gcc -O2 -DHAVE_CONFIG_H -I. -I./missing -I/usr/include -c ./print-sctp.c
In file included from print-sctp.c:54:
/usr/include/netinet/in.h:83: error: syntax error before numeric constant
print-sctp.c: In function `sctp_print':
print-sctp.c:130: error: `IPPROTO_SCTP' undeclared (first use in this
function)
print-sctp.c:130: error: (Each undeclared identifier is reported only once
print-sctp.c:130: error: for each function it appears in.)
make: *** [print-sctp.o] Error 1

Kernel Version:
Linux coconuts 2.4.26-gentoo-r9 #13 Sat Oct 16 18:46:39 EST 2004 i686
Pentium III (Coppermine) GenuineIntel GNU/Linux

I was concerned about changing things in /usr/include so I just mangled
tcpdump. Here are the diffs:

Makefile.diff
81c81
< print-raw.c print-rip.c print-rx.c print-sctp.c \
---
> print-raw.c print-rip.c print-rx.c \



print-ip.diff (before the dicom patch)
369,372d368
< case IPPROTO_SCTP:
< sctp_print(cp, (const u_char *)ip, len);
< break;
<



--

nrb@
Robbie Barnett
imag
Research Assistant
wsahs
Nuclear Medicine & Ultrasound
nsw
Westmead Hospital
gov
Sydney Australia
au
+61 2 9845 7223