tech-userlevel archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: tcpdump -D not working by default



Jukka Salmi --> tech-userlevel (2008-01-07 12:54:59 +0100):
> Hello,
> 
> tcpdump(1)'s -D option (list available network interfaces) is available
> on NetBSD 4, but not on NetBSD 3 and -current. Reasons:
> 
> - On NetBSD 3 tcpdump does'n not enable HAVE_PCAP_FINDALLDEVS. Is there
>   any particular reason for this? It seems to work just fine...

Same for the -U option and HAVE_PCAP_DUMP_FLUSH respectively; updated
patch attached.


Cheers, Jukka

-- 
bashian roulette:
$ ((RANDOM%6)) || rm -rf ~
Index: usr.sbin/tcpdump/Makefile
===================================================================
RCS file: /cvsroot/src/usr.sbin/tcpdump/Makefile,v
retrieving revision 1.39
diff -u -p -r1.39 Makefile
--- usr.sbin/tcpdump/Makefile   9 Mar 2005 03:11:23 -0000       1.39
+++ usr.sbin/tcpdump/Makefile   7 Jan 2008 14:14:57 -0000
@@ -59,7 +59,8 @@ CPPFLAGS+= \
        -DHAVE_SETLINEBUF=1 -DHAVE_VSNPRINTF=1 -DHAVE_SNPRINTF=1 \
        -DRETSIGTYPE=void -DRETSIGVAL= -DHAVE_SIGACTION=1 \
        -DHAVE_SOCKADDR_SA_LEN=1 -DHAVE_H_ERRNO=1 -DHAVE_OPENSSL_EVP_H=1 \
-       -DHAVE_PCAP_LIB_VERSION=1 -DHAVE_PCAP_SET_DATALINK=1
+       -DHAVE_PCAP_LIB_VERSION=1 -DHAVE_PCAP_SET_DATALINK=1 \
+       -DHAVE_PCAP_FINDALLDEVS=1 -DHAVE_PCAP_DUMP_FLUSH=1
 CPPFLAGS+=-DLBL_ALIGN=1
 CPPFLAGS+=-DTCPDUMP_DO_SMB=1
 CPPFLAGS+=-D_U_="__attribute__((unused))"


Home | Main Index | Thread Index | Old Index