[uClibc]tcpdump-3.6.2

trevor t_list at vtnet.ca
Fri May 10 13:10:15 UTC 2002


in case anyone's interested in tcpdump, here's what i did to get it to 
compile against uClibc-0.9.11. note: it's rather large, on my system the 
executable is roughly 400KB. libpcap is listed in the "known applications" 
list, but tcpdump isn't (or at least a "find" on that page didn't return it).

the tcpdump and libpcap sources can be found at "http://www.tcpdump.org". i 
created a directory "tcpdump" and extracted both libpcap and tcpdump at that 
location.

extract, "./configure", and "make" libpcap-0.6.2. you don't have to install 
it; for me, the configure and build of tcpdump found it.

extract tcpdump-3.6.2. delete the file "configure". apply the patch found 
below. then run the command "autoconf" (this generates a "configure" script 
for you). i then did a "./configure --without-crypto" (since i don't have 
openssl on my embedded system), then a "make".

hope this helps.

patch:
diff -urN tcpdump-3.6.2/configure.in tcpdump-3.6.2-tlw/configure.in
--- tcpdump-3.6.2/configure.in	Wed Jan 17 13:29:58 2001
+++ tcpdump-3.6.2-tlw/configure.in	Fri May 10 08:51:48 2002
@@ -474,7 +474,6 @@
 
 AC_CHECK_LIB(dnet, main)
 AC_CHECK_LIB(rpc, main)
-AC_CHECK_LIB(nsl, getrpcbynumber)
 dnl AC_CHECK_LIB(z, uncompress)
 dnl AC_CHECK_HEADERS(zlib.h)
 
diff -urN tcpdump-3.6.2/print-udp.c tcpdump-3.6.2-tlw/print-udp.c
--- tcpdump-3.6.2/print-udp.c	Sat Dec 23 15:55:22 2000
+++ tcpdump-3.6.2-tlw/print-udp.c	Thu May  9 12:54:13 2002
@@ -484,7 +484,7 @@
 				udpport_string(dport));
 			wb_print((void *)(up + 1), length);
 			break;
-
+/*
 		case PT_RPC:
 			rp = (struct rpc_msg *)(up + 1);
 			direction = (enum msg_type)ntohl(rp->rm_direction);
@@ -493,8 +493,9 @@
 				    (u_char *)ip);
 			else
 				nfsreply_print((u_char *)rp, length,
-				    (u_char *)ip);			/*XXX*/
+				    (u_char *)ip);
 			break;
+*/
 
 		case PT_RTP:
 			(void)printf("%s.%s > %s.%s:",
@@ -554,10 +555,12 @@
 				return;
 			}
 #ifdef notdef
+/*
 			if (dport == SUNRPC_PORT && direction == CALL) {
 				sunrpcrequest_print((u_char *)rp, length, (u_char *)ip);
 				return;
 			}
+*/
 #endif
 		}
 		if (TTEST(((struct LAP *)cp)->type) &&

-- 
please remove the underscore if you want to email me



More information about the uClibc mailing list