Re: [tcpdump-workers] How to set my device name with

2007-09-27 Thread Guy Harris
Varuna De Silva wrote: > Next I removed the following part from the above code, and the build > succeeded. > if (pcap_add_if(alldevsp, "any", 0, any_descr, errbuf) < 0) > return (-1); > > Is this process acceptable of me removing the above part? Yes. That code is specific to Linux, which

Re: [tcpdump-workers] Pcap header file

2007-09-27 Thread Joerg Mayer
On Thu, Sep 27, 2007 at 01:46:00AM -0700, Win wrote: > > Recently I have installed tcpdump and libpcap on Linux Fedora 7 ( MoonShine ) > my problem is I am unable to find out pcap.h and start my first program in > libpcap. Maybe there is a libpcap-devel package? Ciao Joerg -- Joerg Mayer

Re: [tcpdump-workers] Pcap header file

2007-09-27 Thread Paolo Abeni
On Thu, 2007-09-27 at 01:46 -0700, Win wrote: > Recently I have installed tcpdump and libpcap on Linux Fedora 7 ( MoonShine ) > my problem is I am unable to find out pcap.h and start my first program in > libpcap. You have to install also libcap-devel. Cheers, Paolo

[tcpdump-workers] Pcap header file

2007-09-27 Thread Win
Recently I have installed tcpdump and libpcap on Linux Fedora 7 ( MoonShine ) my problem is I am unable to find out pcap.h and start my first program in libpcap. 135 # >rpm -ql tcpdump /usr/sbin/tcpdump /usr/sbin/tcpslice /usr/share/doc/tcpdump-3.9.5 /usr/share/doc/tcpdump-3.9.5/CHANGES /usr/s

Re: [tcpdump-workers] [patch] Teach tcpdump to recognize new OpenBSD pflog packets

2007-09-27 Thread Max Laier
On Tuesday 25 September 2007, Eygene Ryabinkin wrote: > Guy, good day. > > Mon, Sep 24, 2007 at 02:24:34PM -0700, Guy Harris wrote: > > On Sep 24, 2007, at 11:25 AM, Eygene Ryabinkin wrote: > > >OpenBSD 4.1 introduced an incompatible change to their pflog device > > >packet header: > > > > ...and d

Re: [tcpdump-workers] How to set my device name with pcap_platform_finddevs()

2007-09-27 Thread Varuna De Silva
On 9/26/07, Guy Harris <[EMAIL PROTECTED]> wrote: > > > On Sep 25, 2007, at 4:33 AM, Varuna De Silva wrote: > > > 1. How should I work around so that pcap_findalldevs() will add my > > device in > > the list? > Then add a routine to your pcap-xxx.c that, similarly to > septel_platform_finddevs(), a