[tcpdump-workers] [libpcap] Any reason to keep "--disable-protochain" configure option?

2025-02-17 Thread Francois-Xavier Le Bail via tcpdump-workers
--- Begin Message --- Hi, The only information I found is the commit 5b7ead917355395a613b637c0de01901fbb156af with title: "add configure option --disable-protochain, to make Arne happier". and in it a comment: "dnl to pacify those who hate protochain insn". Does anyone use it? -- Francois-Xavi

[tcpdump-workers] libpcap : An entry in the manual about multithreading

2023-05-03 Thread Frederick Virchanza Gotham
I think that there should be a page in the libpcap manual that explicitly explains the multithreading capabilities and limitations. Some libraries have an entry in the manual stating that the library is not threadsafe at all. Nine times out of ten, you're safe to use these libraries from multiple

[tcpdump-workers] libpcap: hw timestamps via adapter_unsynced do not work

2022-02-11 Thread belinea123--- via tcpdump-workers
--- Begin Message ---   Hello list, I use libpcap on linux to start a measurement on the PCIe NIC that my company developed. I set the tstamp type to adapter_unsynced. pcap_set_tstamp_type returns with PCAP_WARNING_TSTAMP_TYPE_NOTSUP. The packets I receive in the packet_handler function I reg

Re: [tcpdump-workers] [libpcap] Keep Win32/Prj/* files ?

2021-12-07 Thread Francois-Xavier Le Bail via tcpdump-workers
--- Begin Message --- On 07/12/2021 02:26, Denis Ovsienko via tcpdump-workers wrote: > On Mon, 6 Dec 2021 12:31:33 -0800 > Guy Harris wrote: > > [...] >> The CMake files are likely to be better maintained than the "use >> Visual Studio directly" files, as you don't need Visual Studio, and >> don'

Re: [tcpdump-workers] [libpcap] Keep Win32/Prj/* files ?

2021-12-06 Thread Denis Ovsienko via tcpdump-workers
--- Begin Message --- On Mon, 6 Dec 2021 12:31:33 -0800 Guy Harris wrote: [...] > The CMake files are likely to be better maintained than the "use > Visual Studio directly" files, as you don't need Visual Studio, and > don't need to know how Visual Studio solution or project files work > internal

Re: [tcpdump-workers] [libpcap] Keep Win32/Prj/* files ?

2021-12-06 Thread Guy Harris via tcpdump-workers
--- Begin Message --- On Dec 6, 2021, at 10:55 AM, Denis Ovsienko via tcpdump-workers wrote: > On Mon, 29 Nov 2021 19:20:32 +0100 Francois-Xavier Le Bail via > tcpdump-workers wrote: > >> Does anyone use these files? >> Win32/Prj/wpcap.sln >> Win32/Prj/wpcap.vcxproj >> Win32/Prj/wpcap.vcxproj

Re: [tcpdump-workers] [libpcap] Keep Win32/Prj/* files ?

2021-12-06 Thread Denis Ovsienko via tcpdump-workers
--- Begin Message --- On Mon, 29 Nov 2021 19:20:32 +0100 Francois-Xavier Le Bail via tcpdump-workers wrote: > Hello, > > The information on building libpcap on Windows with Visual Studio is > here: > https://github.com/the-tcpdump-group/libpcap/blob/master/doc/README.Win32.md > (The supported wa

[tcpdump-workers] [libpcap] Keep Win32/Prj/* files ?

2021-11-29 Thread Francois-Xavier Le Bail via tcpdump-workers
--- Begin Message --- Hello, The information on building libpcap on Windows with Visual Studio is here: https://github.com/the-tcpdump-group/libpcap/blob/master/doc/README.Win32.md (The supported way to build libpcap (and tcpdump) on Windows is with CMake) Does anyone use these files? Win32/Prj/w

Re: [tcpdump-workers] libpcap detection and linking in tcpdump

2021-01-23 Thread Michael Richardson via tcpdump-workers
--- Begin Message --- Guy Harris via tcpdump-workers wrote: > (The existence of libtool is an indication that shared libraries have > gotten messy on UN*X.) > Perhaps for this particular case the right thing to do is to set > LD_LIBRARY_PATH when running the temporarily-installed

Re: [tcpdump-workers] libpcap detection and linking in tcpdump

2021-01-23 Thread Guy Harris via tcpdump-workers
--- Begin Message --- On Jan 22, 2021, at 7:11 PM, Guy Harris via tcpdump-workers wrote: > I'll try experimenting with one of my Ubuntu VMs. Welcome to Shared Library Search Hell. Most UN*Xes have a notion of RPATH (with, of course, different compiler command-line flags to set it). pcap-conf

Re: [tcpdump-workers] libpcap detection and linking in tcpdump

2021-01-23 Thread Michael Richardson via tcpdump-workers
--- Begin Message --- Guy Harris via tcpdump-workers wrote: >> $ /tmp/libpcap/bin/pcap-config --libs -L/tmp/libpcap/lib >> -Wl,-rpath,/tmp/libpcap/lib -lpcap > So that *should* cause /tmp/libpcap/lib to be added to the executable's > path, which *should* cause it to look in /tmp/l

Re: [tcpdump-workers] libpcap detection and linking in tcpdump

2021-01-22 Thread Guy Harris via tcpdump-workers
--- Begin Message --- On Jan 22, 2021, at 2:54 PM, Denis Ovsienko via tcpdump-workers wrote: > I have tested it again with the current master branches of libpcap and > tcpdump. Both builds (with and without libpcap0.8-dev) now complete > without errors. > > However, in both cases the installed

Re: [tcpdump-workers] libpcap detection and linking in tcpdump

2021-01-22 Thread Denis Ovsienko via tcpdump-workers
--- Begin Message --- On Wed, 9 Sep 2020 17:07:25 +0100 Denis Ovsienko via tcpdump-workers wrote: > Here are my steps to reproduce: > > libpcap$ ./configure --enable-remote --prefix=/tmp/libpcap > libpcap$ make > libpcap$ make install > tcpdumpbuild$ cmake -DWITH_CRYPTO="yes" > -DCMAKE_PREFIX_PA

Re: [tcpdump-workers] libpcap detection and linking in tcpdump

2021-01-08 Thread Guy Harris via tcpdump-workers
--- Begin Message --- On Jan 7, 2021, at 5:41 PM, Denis Ovsienko via tcpdump-workers wrote: > 5 years of backward compatibility might be OK'ish, although from time > to time I run into such "long-term support" systems that in practice > mean someone keeps paying good money for "support" for 5-10

Re: [tcpdump-workers] libpcap detection and linking in tcpdump

2021-01-07 Thread Denis Ovsienko via tcpdump-workers
--- Begin Message --- On Thu, 7 Jan 2021 16:46:41 -0800 Guy Harris wrote: > 3.1 dates back to 2015. That might be sufficient to treat as a > minimum. 5 years of backward compatibility might be OK'ish, although from time to time I run into such "long-term support" systems that in practice mean s

Re: [tcpdump-workers] libpcap detection and linking in tcpdump

2021-01-07 Thread Guy Harris via tcpdump-workers
--- Begin Message --- On Jan 7, 2021, at 3:21 PM, Guy Harris via tcpdump-workers wrote: > So we should either 1) require CMake 3.1 or later or 2) forcibly set > PKG_CONFIG_USE_CMAKE_PREFIX_PATH to YES. For now, my inclination is to do > the latter. That won't work - PKG_CONFIG_USE_CMAKE_PREF

Re: [tcpdump-workers] libpcap detection and linking in tcpdump

2021-01-07 Thread Guy Harris via tcpdump-workers
--- Begin Message --- On Sep 9, 2020, at 9:07 AM, Denis Ovsienko via tcpdump-workers wrote: > The "Found pcap-config" message means that FindPCAP.cmake has not found > libpcap by means of pkg-config, and the lack of the message means the > pkg-config method worked. A few weeks ago Ubuntu 18.04 s

Re: [tcpdump-workers] libpcap detection and linking in tcpdump

2021-01-07 Thread Guy Harris via tcpdump-workers
--- Begin Message --- On Jan 7, 2021, at 9:35 AM, Bill Fenner via tcpdump-workers wrote: > These jobs are still failing, but now for a different reason. Part of the problem is that pkg-config wasn't finding the locally-installed libpcap under /tmp, because PKG_CONFIG_PATH wasn't set to point t

Re: [tcpdump-workers] libpcap detection and linking in tcpdump

2021-01-07 Thread Francois-Xavier Le Bail via tcpdump-workers
--- Begin Message --- On 07/01/2021 18:35, Bill Fenner via tcpdump-workers wrote: > These jobs are still failing, but now for a different reason. The build > succeeds, but the tests fail - the tests that require the new libpcap. > However, if you augment TESTrun to print the version, it says > 1.1

Re: [tcpdump-workers] libpcap detection and linking in tcpdump

2021-01-07 Thread Bill Fenner via tcpdump-workers
--- Begin Message --- On Wed, Sep 9, 2020 at 12:08 PM Denis Ovsienko via tcpdump-workers < tcpdump-workers@lists.tcpdump.org> wrote: > Travis CI tcpdump builds have been failing for a while and I went to > see why. It is easy to see that only the jobs that have > "BUILD_LIBPCAP=yes CMAKE=yes" fail

Re: [tcpdump-workers] libpcap error codes?

2020-10-07 Thread Guy Harris via tcpdump-workers
--- Begin Message --- On Oct 7, 2020, at 3:16 PM, Denis Ovsienko via tcpdump-workers wrote: > Do you mean to introduce a function like pcap_error(), which the > developers would be able to interrogate if they need in use cases like > this? Then existing functions could be slowly updated as neede

Re: [tcpdump-workers] libpcap error codes?

2020-10-07 Thread Denis Ovsienko via tcpdump-workers
--- Begin Message --- On Wed, 7 Oct 2020 14:37:41 -0700 Guy Harris via tcpdump-workers wrote: [...] > A new API could be added that returns a PCAP_ERROR_ value rather than > -1 on error (so as not to break source or binary compatibility with > code using the existing APIs). Do you mean to intro

Re: [tcpdump-workers] libpcap error codes?

2020-10-07 Thread Guy Harris via tcpdump-workers
--- Begin Message --- On Oct 7, 2020, at 1:30 PM, Fernando Gont via tcpdump-workers wrote: > WHile using pcap_inject() in Linux, it is failing with "pcap_inject(): send: > Resource temporarily unavailable". In principle, one would expect that for > temporary problems (such as this one), one ma

[tcpdump-workers] libpcap error codes?

2020-10-07 Thread Fernando Gont via tcpdump-workers
--- Begin Message --- Hi, WHile using pcap_inject() in Linux, it is failing with "pcap_inject(): send: Resource temporarily unavailable". In principle, one would expect that for temporary problems (such as this one), one may one to wait a bit and retry. So it would make sense to somehow be ab

[tcpdump-workers] libpcap detection and linking in tcpdump

2020-09-09 Thread Denis Ovsienko via tcpdump-workers
--- Begin Message --- Hello list. Travis CI tcpdump builds have been failing for a while and I went to see why. It is easy to see that only the jobs that have "BUILD_LIBPCAP=yes CMAKE=yes" fail, for example [1], and the same jobs built well before, for example [2]. The tcpdump build process fails

Re: [tcpdump-workers] libpcap pluggable I/O branch, rebased

2020-08-21 Thread Ray Bellis via tcpdump-workers
--- Begin Message --- On 21/08/2020 20:26, Michael Richardson wrote: > > Ray, I rebased raybellis-gzip-v2 upon libpcap head. > Do you have a github that I can add as as reviewer? Do you mean my github a/c name? That's just "raybellis". > Mostly I did this because the FreeBSD tests seemed to

[tcpdump-workers] libpcap logo?

2019-04-25 Thread Michael Richardson
Now that the libpcap repo has a program (rpcapd) and travis.yml, it seems that maybe it should have a logo unique to it. I am inspired in asking simply because github wants to know what my social media image should be :-) {maybe we already have one, and I've forgotten?} I envision something arou

[tcpdump-workers] [libpcap] $libdir check in pcap-config.in

2019-01-29 Thread eno
Dear experts, Could somebody tell is this changes are reasonable? The pcap-config.in file have the following check that if $libdir is not /usr/lib then set RPATH env: if [ "$libdir" != "/usr/lib" ] then RPATH=$V_RPATH_OPT$libdir fi The problem is if the build system is x86_64 then $libdir wil

Re: [tcpdump-workers] libpcap usage while reading pcapNG files

2018-09-13 Thread Madhav Ancha
Thanks Guy. Is the best way then to parse pcapNG in code and run bpf_filter on the packets please. a) open the pcap file in c b) parse the blocks c) For every enhanced packet block c1) Manually construct struct pcap_pkthdr * c2) Run bpf_filter explicitly This file can be updated as it is

Re: [tcpdump-workers] libpcap usage while reading pcapNG files

2018-09-13 Thread Guy Harris
On Sep 13, 2018, at 1:49 PM, Madhav Ancha wrote: > Is there a way to get the "options" along with the "packet data "in an > Enhanced Packet Block when reading the pcapNG files please? No. There are no provisions in the current pcap API to provide that information, as the API was designed whe

[tcpdump-workers] libpcap usage while reading pcapNG files

2018-09-13 Thread Madhav Ancha
Hi, Is there a way to get the "options" along with the "packet data "in an Enhanced Packet Block when reading the pcapNG files please? pcap_next_ex() seems to return only the packet data. Thanks Madhav. ___ tcpdump-workers mailing list tcpdump-

Re: [tcpdump-workers] [libpcap] Problem with version 1.9.0

2018-07-23 Thread Stephen Donnelly
>Behalf Of Francois-Xavier Le Bail >On 23/07/2018 15:33, Michael Richardson wrote: >> Francois-Xavier Le Bail via tcpdump-security wrote: >> > Need autoreconf. >> > And 1.9.1 ? >> >> Let's do 1.9.1 in September. > >Why not this week to have a proper version tag ? Agreed, seems like a simpl

Re: [tcpdump-workers] [libpcap] Problem with version 1.9.0

2018-07-23 Thread Francois-Xavier Le Bail
On 23/07/2018 15:33, Michael Richardson wrote: > Francois-Xavier Le Bail via tcpdump-security wrote: > > Hello, > > > We have in 1.9.0 branch: > > > $ git grep '1\.9\.0-PRE-GIT' > > configure:# Generated by GNU Autoconf 2.69 for pcap 1.9.0-PRE-GIT. > > configure:PACKAGE_VERSIO

[tcpdump-workers] [libpcap] Problem with version 1.9.0

2018-07-23 Thread Michael Richardson
Francois-Xavier Le Bail via tcpdump-security wrote: > Hello, > We have in 1.9.0 branch: > $ git grep '1\.9\.0-PRE-GIT' > configure:# Generated by GNU Autoconf 2.69 for pcap 1.9.0-PRE-GIT. > configure:PACKAGE_VERSION='1.9.0-PRE-GIT' > configure:PACKAGE_STRING='pcap 1.9.0-PR

[tcpdump-workers] libpcap 1.9.0 released

2018-07-22 Thread Michael Richardson
I've released the 1.9.0 version. It is not identical to the 1.9.0rc2 release. It includes a bunch of small typos/fixes found in the rc2 release, including some missing files in the release tarball, and a 64-bit alignment fix. There are no CVEs or security issues fixed in libpcap compared to the 1.

[tcpdump-workers] libpcap : User and kernel slots out of sync and holes in ring.

2018-05-07 Thread Raghav K
Hi, I've an application which uses libpcap 1.8.1 in TPACKET_V2 mode on an Azure VM with multiple cores (4 - 8 in my case). The underlying interface is Azure's paravirtualized NIC - hv_netsvc. In this setup, I observe that under heavy ingress traffic the notion of kernel and user space ownershi

Re: [tcpdump-workers] libpcap requires Flex 2.5.31 issue

2017-04-18 Thread Guy Harris
On Apr 16, 2017, at 12:19 PM, Joseph Freemaker wrote: > When compiling libpcap on AIX 6.1 receive the error: > > configure: error: flex is insufficient to compile libpcap. libpcap requires > Flex 2.5.31 or later, or a compatible version of lex. > > However flex 2.5.4 is installed per the belo

[tcpdump-workers] libpcap requires Flex 2.5.31 issue

2017-04-18 Thread Joseph Freemaker
When compiling libpcap on AIX 6.1 receive the error: configure: error: flex is insufficient to compile libpcap. libpcap requires Flex 2.5.31 or later, or a compatible version of lex. However flex 2.5.4 is installed per the below: $ flex --versionflex version 2.5.4 Is there a workaround for this

Re: [tcpdump-workers] libpcap: fatal flex scanner internal error--end of buffer missed

2016-06-07 Thread Guy Harris
On Jun 7, 2016, at 6:02 AM, ikuzar RABE wrote: > I catched the segfault with gdb. This time I put tcp as filter: > >Program received signal SIGSEGV, Segmentation fault. > [Switching to Thread 0x76125700 (LWP 5304)] > 0x7772ddcb in pcap_lex () at scanner.c:3860 > 3860scanner.c

Re: [tcpdump-workers] libpcap: fatal flex scanner internal error--end of buffer missed

2016-06-07 Thread ikuzar RABE
I catched the segfault with gdb. This time I put tcp as filter: Program received signal SIGSEGV, Segmentation fault. [Switching to Thread 0x76125700 (LWP 5304)] 0x7772ddcb in pcap_lex () at scanner.c:3860 3860scanner.c: No such file or directory. (gdb) bt #0 0x7772ddcb

[tcpdump-workers] libpcap: fatal flex scanner internal error--end of buffer missed

2016-06-06 Thread ikuzar RABE
Hi all, I work on Debian 8, with linux version 3.16.0-4-amd64, with flex 2.5.39-8+b1. I wrote a C program which reads packets on one interface (NIC), then dumps it into a pcap file. I usually use filter (vlan 1024) when I capture with my program and it works fine with libpcap-1.3.0 (soname: libpca

Re: [tcpdump-workers] libpcap picks up sent packets on freebsd (plus link state query)

2016-01-18 Thread mate csaba
dear team, i'm still waiting for your idea on how to achieve fast link loss detection with libpcap thanks in advance, csaba mate niif/as1955 On 01/07/2016 12:50 PM, mate csaba wrote: hi, On 01/07/2016 11:51 AM, Guy Harris wrote: On Jan 7, 2016, at 2:20 AM, mate csaba wrote: i'm devel

Re: [tcpdump-workers] libpcap picks up sent packets on freebsd (plus link state query)

2016-01-07 Thread mate csaba
hi, On 01/07/2016 11:51 AM, Guy Harris wrote: On Jan 7, 2016, at 2:20 AM, mate csaba wrote: i'm developing a router (rtros.nop.hu) which uses libpcap to capture and send packets to interfaces. the interface handler can be found here: http://sources.nop.hu/src/zzz/nat-pcapInt.c it's an inter

Re: [tcpdump-workers] [libpcap] [RFC] bpf: if generating code for vlan keyword also check for non-offloaded case (#431)

2015-11-07 Thread Michael Richardson
> Since this is [RFC] and - if I understand correctly - there are > problems with the produced BPF code, maybe this should be > discussed in the tcpdump-workers mailing-list? Michal Sekletar wrote: > Any particular reason why we shouldn't continue discussion here? I > think it

Re: [tcpdump-workers] Libpcap-in java

2015-07-14 Thread H R, Shashikumar
Hi AJ I google it but I didn't get any specific java libpcap library. Regards Shashi -Original Message- From: Ander Juaristi [mailto:ajuari...@gmx.es] Sent: Wednesday, July 15, 2015 12:04 PM To: tcpdump-workers@lists.tcpdump.org Cc: H R, Shashikumar Subject: Re: [tcpdump-wo

Re: [tcpdump-workers] Libpcap-in java

2015-07-14 Thread Ander Juaristi
On 07/15/2015 07:42 AM, H R, Shashikumar wrote: Hi All I want know whether any libpcap library is available in java. If there please provide me the link. Thanks and Regards Shashikumar H R ___ tcpdump-workers mailing list tcpdump-workers@lists.tcpdu

[tcpdump-workers] Libpcap-in java

2015-07-14 Thread H R, Shashikumar
Hi All I want know whether any libpcap library is available in java. If there please provide me the link. Thanks and Regards Shashikumar H R ___ tcpdump-workers mailing list tcpdump-workers@lists.tcpdump.org https://lists.sandelman.ca/mailman/listinfo

Re: [tcpdump-workers] [libpcap] Consider not pushing your work-in-progress branches upstream (#420)

2015-03-09 Thread Michael Richardson
As discussed a few months ago, this is how github is being used. 1) "master" for tcpdump, libpcap and tcpdump-htdocs lives on http://github.com/the-tcpdump-group We pull daily from github master to the server at bpf.tcpdump.org. 2) release branches live on bpf.tcpdump.org, and are

Re: [tcpdump-workers] [libpcap] Compiling with TDM-gcc / MingW64 (#418)

2015-02-17 Thread Michael Richardson
Denis Ovsienko wrote: > Could you please check bpf repository once again? There is still no > such commit in it. okay, I sorted things out. The problem is that I got stuck with the MPTCP patch which no longer compiled, and wound up reverting too much, and then I had code on the wrong br

Re: [tcpdump-workers] [libpcap] Remove BlueZ dependence (#417)

2015-02-16 Thread Michal Labedzki
Those headers are in BlueZ 4 (or 5) and Linux (source: include/net/bluetooth/; not exported to userland) "own copy" --> own version of "unofficial" Linux API for Bluetooth. Feel free to rewrite that "code" to satisfy BSDvsGPLv2. As I remember there is no plan to publish API by Bluetooth Linux group

Re: [tcpdump-workers] [libpcap] Remove BlueZ dependence (#417)

2015-02-15 Thread Michael Richardson
Guy Harris wrote: > I guess my concern is whether the "our own copy" could get people > complaining that we just took GPLed code from Linux or not; if it was a > reimplementation from scratch (I don't think "clean room" is > necessary), that should suffice. I am not disputing thi

Re: [tcpdump-workers] Libpcap timeout settings in tcpdump - too long when printing to a terminal?

2015-02-11 Thread David Laight
From: Guy Harris > On Jan 9, 2015, at 8:30 AM, Michael Richardson wrote: > > > Guy Harris wrote: > >> The longer timeout can reduce capturing overhead, and if you're > >> capturing a high volume of traffic to a file, it's probably the right > >> timeout to have. If you are capturing a high volu

Re: [tcpdump-workers] Libpcap timeout settings in tcpdump - too long when printing to a terminal?

2015-02-10 Thread Guy Harris
On Jan 9, 2015, at 8:30 AM, Michael Richardson wrote: > Guy Harris wrote: >> The longer timeout can reduce capturing overhead, and if you're >> capturing a high volume of traffic to a file, it's probably the right >> timeout to have. If, however, you're printing packets to the console, >> you'

Re: [tcpdump-workers] Libpcap performance problem

2015-01-29 Thread Giray Simsek
Hi, We are using version 1.6.2. Regards,Giray > From: anders.bro...@ericsson.com > To: tcpdump-workers@lists.tcpdump.org > Date: Wed, 28 Jan 2015 15:21:10 + > Subject: Re: [tcpdump-workers] Libpcap performance problem > > > Hi, > What version of libpcap are you usin

Re: [tcpdump-workers] Libpcap performance problem

2015-01-29 Thread Giray Simsek
ernel. Regards,Giray > From: david.lai...@aculab.com > To: rick.jon...@hp.com; tcpdump-workers@lists.tcpdump.org > Date: Wed, 28 Jan 2015 17:17:15 + > Subject: Re: [tcpdump-workers] Libpcap performance problem > > From: Rick Jones > > On 01/28/2015 06:57 AM, Giray Simsek

Re: [tcpdump-workers] Libpcap performance problem

2015-01-28 Thread David Laight
From: Rick Jones > On 01/28/2015 06:57 AM, Giray Simsek wrote: > > Hi, > > We are currently working on testing Linux network performance. We > > have two Linux machines in our test setup. Machine1 is the attacker > > machine from which we are sending SYN packets to Machine2 at a rate > > of 3millio

Re: [tcpdump-workers] Libpcap performance problem

2015-01-28 Thread Rick Jones
On 01/28/2015 06:57 AM, Giray Simsek wrote: Hi, We are currently working on testing Linux network performance. We have two Linux machines in our test setup. Machine1 is the attacker machine from which we are sending SYN packets to Machine2 at a rate of 3million pps. We are able to receive these p

Re: [tcpdump-workers] Libpcap performance problem

2015-01-28 Thread Anders Broman
To: tcpdump-workers@lists.tcpdump.org Subject: [tcpdump-workers] Libpcap performance problem Hi, We are currently working on testing Linux network performance. We have two Linux machines in our test setup. Machine1 is the attacker machine from which we are sending SYN packets to Machine2 at a rate

[tcpdump-workers] Libpcap performance problem

2015-01-28 Thread Giray Simsek
Hi, We are currently working on testing Linux network performance. We have two Linux machines in our test setup. Machine1 is the attacker machine from which we are sending SYN packets to Machine2 at a rate of 3million pps. We are able to receive these packets on Machine2's external interface and

Re: [tcpdump-workers] [libpcap] Uninitialized scalar variable

2015-01-27 Thread Guy Harris
On Jan 27, 2015, at 1:58 AM, PEUGNEZ Baptiste wrote: > I do computer security studies and I wanted to test Coverity, a source code > analysis tool. If you're interested, I corrected a problem in /pcap-linux.c/ > file: uninitialized variable (/req.tp_frame_size/). > > You will find above the G

[tcpdump-workers] [libpcap] Uninitialized scalar variable

2015-01-27 Thread PEUGNEZ Baptiste
Hello, I do computer security studies and I wanted to test Coverity, a source code analysis tool. If you're interested, I corrected a problem in /pcap-linux.c/ file: uninitialized variable (/req.tp_frame_size/). You will find above the Github commit. https://github.com/peugnezb/libpcap/commi

Re: [tcpdump-workers] [libpcap] New DLT value Request - Wattstopper DLM (#401)

2015-01-25 Thread Steve Karg
Hello Guy, It would certainly make sense to try and make it generic so that the LINKTYPE could be used by multiple families. If the other families don't have a dongle code and packet delay, they could fill them in with some consistent values (i.e. match the DLM values, have zero packet delay) if

Re: [tcpdump-workers] [libpcap] New DLT value Request - Wattstopper DLM (#401)

2015-01-20 Thread Guy Harris
On Jan 9, 2015, at 8:08 AM, Steve Karg wrote: > Yes, the Family codes are dependent on the hardware. The WattStopper > DLM hardware uses a USB interface: > http://www.wattstopper.com/products/digital-lighting-management/configuration-tools/dlm-computer-interface-tools-and-software.aspx > and al

Re: [tcpdump-workers] [libpcap] New DLT value Request - Wattstopper DLM (#401)

2015-01-16 Thread Steve Karg
Hello, Is there anything pending before assigning a new DLT? I put a pull request into GitHub: https://github.com/the-tcpdump-group/libpcap/issues/401 Are there other files that I need to modify (i.e. HTML or documentation files)? Best Regards, Steve

Re: [tcpdump-workers] Libpcap timeout settings in tcpdump - too long when printing to a terminal?

2015-01-13 Thread vipul Kumar
Hello, I am new to this community. And i would like to know from where i should start. Please guide me. Thanking you Bipul kumar On 1/12/15, David Laight wrote: > From: Guy Harris >> On Jan 9, 2015, at 2:09 AM, Michal Sekletar wrote: >> >> > Can't we use new default timeout value (lower) if we

Re: [tcpdump-workers] Libpcap timeout settings in tcpdump - too long when printing to a terminal?

2015-01-12 Thread David Laight
From: Guy Harris > On Jan 9, 2015, at 2:09 AM, Michal Sekletar wrote: > > > Can't we use new default timeout value (lower) if we detect TPACKET_V3, > > The first sentence of my original mail was "With TPACKET_V3 support, Linux > users are discovering what > those of us using BSD-flavored OSes h

Re: [tcpdump-workers] [libpcap] New DLT value Request - Wattstopper DLM (#401)

2015-01-09 Thread Steve Karg
Hello Guy, > 6 or 7 - escape > 7 or 6 - DLM Bootloader > > The information you quoted said "111=escape, and 111=DLM Bootloader"; I > assume one of those 111's is supposed to be 110. Which one of them should be > 110? 6 - unused 7 - escape and DLM Bootloader (unfortunately). Th

Re: [tcpdump-workers] [libpcap] New DLT value Request - Wattstopper DLM (#401)

2015-01-09 Thread Guy Harris
On Jan 9, 2015, at 4:11 PM, Steve Karg wrote: >> I.e., following the Family/Address/IR field, other families might not have >> the Sequence ID, Source and Destination MAC addresses, Opcode, and Payload >> Length followed by Payload? > > Yes, that is correct. OK, so we should, for now, indica

Re: [tcpdump-workers] [libpcap] New DLT value Request - Wattstopper DLM (#401)

2015-01-09 Thread Steve Karg
Hello Guy, The Family/Address/IR field contains 3-bits of family code, 2-bits of address mode, 2-bits of IR (infrared) routing, and 1-bit unused. The 8 Legrand NITOO families are 000=CAD Filaire, 001=TopDog, 010=CAD RF, 011=CAD PLC, 100=CAD IR, 101=DLM, 111=escape, and 111=DLM

Re: [tcpdump-workers] [libpcap] New DLT value Request - Wattstopper DLM (#401)

2015-01-09 Thread Guy Harris
On Jan 9, 2015, at 8:08 AM, Steve Karg wrote: > Hello Guy, > >>> The Family/Address/IR field contains 3-bits of family code, 2-bits of >>> address mode, 2-bits of IR (infrared) routing, and 1-bit unused. >>> The 8 Legrand NITOO families are 000=CAD Filaire, 001=TopDog, 010=CAD RF, >>> 011=CAD P

Re: [tcpdump-workers] Libpcap timeout settings in tcpdump - too long when printing to a terminal?

2015-01-09 Thread Guy Harris
On Jan 9, 2015, at 2:09 AM, Michal Sekletar wrote: > Can't we use new default timeout value (lower) if we detect TPACKET_V3, The first sentence of my original mail was "With TPACKET_V3 support, Linux users are discovering what those of us using BSD-flavored OSes have known for quite a while:"

Re: [tcpdump-workers] Libpcap timeout settings in tcpdump - too long when printing to a terminal?

2015-01-09 Thread Michael Richardson
Guy Harris wrote: > The longer timeout can reduce capturing overhead, and if you're > capturing a high volume of traffic to a file, it's probably the right > timeout to have. If, however, you're printing packets to the console, > you're probably doomed if it's a high volume of tr

Re: [tcpdump-workers] [libpcap] New DLT value Request - Wattstopper DLM (#401)

2015-01-09 Thread Steve Karg
Hello Guy, >> The Family/Address/IR field contains 3-bits of family code, 2-bits of >> address mode, 2-bits of IR (infrared) routing, and 1-bit unused. >> The 8 Legrand NITOO families are 000=CAD Filaire, 001=TopDog, 010=CAD RF, >> 011=CAD PLC, 100=CAD IR, 101=DLM, 111=escape, and 111=DLM Bootload

Re: [tcpdump-workers] Libpcap timeout settings in tcpdump - too long when printing to a terminal?

2015-01-09 Thread Michal Sekletar
On Thu, Jan 08, 2015 at 06:57:08PM -0800, Guy Harris wrote: > With TPACKET_V3 support, Linux users are discovering what those of us using > BSD-flavored OSes have known for quite a while: > > > http://askubuntu.com/questions/570885/can-tcpdump-on-ubuntu-14-04-show-packets-in-real-time > >

[tcpdump-workers] Libpcap timeout settings in tcpdump - too long when printing to a terminal?

2015-01-08 Thread Guy Harris
With TPACKET_V3 support, Linux users are discovering what those of us using BSD-flavored OSes have known for quite a while: http://askubuntu.com/questions/570885/can-tcpdump-on-ubuntu-14-04-show-packets-in-real-time Tcpdump uses a timeout of 1 second when opening a capture device; this

Re: [tcpdump-workers] [libpcap] New DLT value Request - Wattstopper DLM (#401)

2015-01-08 Thread Guy Harris
On Jan 8, 2015, at 3:35 PM, Steve Karg wrote: > The Packet Delay field contains an integer value that is the > number of milliseconds since the previous packet. Presumably, in pcap or pcap-ng files with valid packet time stamps, this is redundant. > The Preamble 1 and Preamble 2 fields should

Re: [tcpdump-workers] [libpcap] New DLT value Request - Wattstopper DLM (#401)

2015-01-08 Thread Steve Karg
Hi Denis, > Steve, if this time you are receiving this as a subscriber to the mailing > list, could you describe the encoding in a way similar to one used for > http://www.tcpdump.org/linktypes/ ? See below. Best Regards, Steve WattStopper DLM room bus protocol from LMCI USB dongle. +--

Re: [tcpdump-workers] [libpcap] New DLT value Request - Wattstopper DLM (#401)

2015-01-08 Thread Guy Harris
On Jan 8, 2015, at 2:21 PM, Denis Ovsienko wrote: > This is intended not to make things difficult for innovation, but to assist > the people from future who might be trying to debug relevant code much later. ...and to make it easier to implement dissection for the protocols (i.e., you can rea

Re: [tcpdump-workers] [libpcap] New DLT value Request - Wattstopper DLM (#401)

2015-01-08 Thread Denis Ovsienko
On Thu, 18 Dec 2014 06:46:10 +0200 Guy Harris wrote > > On Dec 17, 2014, at 12:04 PM, Steve Karg wrote: > > > For a few years I have been using DLT_USER0 147 (user defined) for > > capturing and saving a serial protocol used by Wattstopper Digital > > Lighting Management pr

Re: [tcpdump-workers] [libpcap] New DLT value Request - Wattstopper DLM (#401)

2014-12-17 Thread Guy Harris
On Dec 17, 2014, at 12:04 PM, Steve Karg wrote: > For a few years I have been using DLT_USER0 147 (user defined) for capturing > and saving a serial protocol used by Wattstopper Digital Lighting Management > products (see website) and dissecting via Wireshark and Lua. I'm planning on > adding

Re: [tcpdump-workers] [libpcap] New DLT value Request - Wattstopper DLM (#401)

2014-12-17 Thread Michael Richardson
It's much easier to get the wider review and long term archival by posting to the mailing list. I have done that for you. Steve Karg wrote: > For a few years I have been using DLT_USER0 147 (user defined) for > capturing and saving a serial protocol used by Wattstopper Digital > Lig

Re: [tcpdump-workers] Libpcap-1.4.0 BPF_AND not filtering as exected

2014-11-10 Thread Aparna Nagarajan
There seems to be a bug in libpcap version 1.4.0 . The same code works good in 1.6.2 :) Thanks a lot. Aparna N On 6 November 2014 13:56, Aparna Nagarajan wrote: > Hi Guy Harris, > > Here is the translated code. > > /*initialization*/ > static u_int off_didx = 5; > bpf_u_int32 didx_m

Re: [tcpdump-workers] Libpcap-1.4.0 BPF_AND not filtering as exected

2014-11-06 Thread Aparna Nagarajan
Hi Guy Harris, Here is the translated code. /*initialization*/ static u_int off_didx = 5; bpf_u_int32 didx_mask = 0x0ffc; didx = didx<<18; b0 = gen_ncmp(OR_MACPL, off_didx, BPF_W, didx_mask, BPF_JEQ, 0, (bpf_int32)didx); the i/p value of didx is 0x40. here is what 'ge

Re: [tcpdump-workers] Libpcap-1.4.0 BPF_AND not filtering as exected

2014-11-05 Thread Guy Harris
On Nov 5, 2014, at 10:41 PM, Aparna Nagarajan wrote: >> >> Hi All, >> >> I am trying to add some BPF code for capture filters. >> >> I am basically trying to load data into accumilator from some offset, >> Mask it and them match it with some value. >> >> Here is the OPcode: >> >> { 0x20, 0

[tcpdump-workers] Libpcap-1.4.0 BPF_AND not filtering as exected

2014-11-05 Thread Aparna Nagarajan
> > Hi All, > > I am trying to add some BPF code for capture filters. > > I am basically trying to load data into accumilator from some offset, > Mask it and them match it with some value. > > Here is the OPcode: > > { 0x20, 0, 0, 0x0013 }, { 0x54, 0, 0, 0x0ffc }, { 0x15, 0, 1, > 0x0100

Re: [tcpdump-workers] [libpcap] libpcap 1.6.2 behavioral difference between Ubuntu 14.04 and CentOS 6.5 (#388)

2014-10-20 Thread Michael Richardson
morphyno wrote: > sudo /usr/sbin/tcpdump -s 0 -nei eth9 -w /mnt/tmpfs/eth9_rx.pcap -B > 200 From "free -k", I see about 2G allocated on Ubuntu > Before: > free -k total used free shared buffers cached Mem: 65928188 1337008 > 64591180 1164 26556 68596 -/+ buffers/cache: 1

Re: [tcpdump-workers] libpcap version

2014-09-05 Thread Jon Anderson
Michael, Thanks a lot for the reply. It's not critical at all so don't worry about it. I just need to set an expectation of which upstream version the fix will be in. For our OS releases, we maintain a patch stream which we apply to a fixed revision (currently 1.5.1) until it's suitable for us

Re: [tcpdump-workers] libpcap version

2014-09-05 Thread Michael Richardson
Jon Anderson wrote: > I recently had a change merged with the-tcpdump-group/libpcap > (39540b9e1c4a9e4343c6cab77ee66e054f6bce51) > Is there any way to tell which libpcap version this change will > distributed with? General answer: Unless someone said that they pulled it up to li

[tcpdump-workers] libpcap version

2014-09-05 Thread Jon Anderson
Hi, I recently had a change merged with the-tcpdump-group/libpcap (39540b9e1c4a9e4343c6cab77ee66e054f6bce51) Is there any way to tell which libpcap version this change will distributed with? Thanks, Jon -- Jon Anderson Principal Software Engineer ORACLE RPE Systems (Networking) Tel: ++44 (0)

[tcpdump-workers] libpcap BPF implementation issue

2014-09-02 Thread Aaron Lehmann
Hello, A few weeks ago, I reported a problem with TPACKET v3 missing packets when using libpcap in nonblocking mode. I managed to work around this reliably, but I continued seeing missed packets on platforms which don't support TPACKET v3. The problem seems to be due to the way libpcap sometimes

Re: [tcpdump-workers] libpcap 1.5.3 pcap_open_offline_with_tstamp_precision() broken

2014-06-06 Thread Michal Sekletar
On Thu, Jun 05, 2014 at 07:21:26PM +0200, Steffen Bauch wrote: > Hi, > > libpcap 1.5.3 (as deployed in Ubuntu 14.04 LTS) (and current GIT > master head) will not output timestamps in a right way if pcapng > savefiles are used and timestamp conversion is requested with > pcap_open_offline_with_tsta

[tcpdump-workers] libpcap 1.5.3 pcap_open_offline_with_tstamp_precision() broken

2014-06-05 Thread Steffen Bauch
Hi, libpcap 1.5.3 (as deployed in Ubuntu 14.04 LTS) (and current GIT master head) will not output timestamps in a right way if pcapng savefiles are used and timestamp conversion is requested with pcap_open_offline_with_tstamp_precision(). For traditional pcap files necessary timestamp convers

Re: [tcpdump-workers] [libpcap] [Patch] rpcap:// support (#266)

2014-05-26 Thread Michael Richardson
Guy Harris wrote: > Note also that there will be a configure-script option to enable this, with the > default being "no". Enabling remote capture increases the attack surface of an > application using libpcap, as it would receive messages from a > not-necessarily-trusted remote

Re: [tcpdump-workers] [libpcap] [Patch] rpcap:// support (#266)

2014-05-26 Thread Michael Richardson
Guy Harris wrote: > information (which should NOT be supplied in the URL, as that can show up in > the output of ps!) or "we're running over SSL/TLS but the certificate has > expired, so do you want me to continue or not?" information or Could we put a hash of the public key in

Re: [tcpdump-workers] libpcap buffering...

2014-03-30 Thread Guy Harris
On Mar 30, 2014, at 7:01 AM, barcaroller wrote: > I have two questions related to buffers in libpcap. > > - I would like to to use the pcap_set_buffer_size() to run various > performance tests. However, I do not know the default buffer size (on a > 64-bit Linux system with 16 GB of RAM) and

Re: [tcpdump-workers] [libpcap] OR'ing vlans impossible in tcpdump filter (issue #158)

2014-03-20 Thread Shoham Peller
yahoo.com> writes: > > That does not solve the cases I wrote below. The filters I wrote are also difficult to translate to the syntax > you suggested: > * (vlan 1 or vlan 2) and ip > * (vlan 1 or ether) and ip > > I'm hoping to be free to implement the algorithm I suggested in the near future.

Re: [tcpdump-workers] [libpcap] TPACKET_V3 support broken when read timeout 0. (#335)

2013-12-18 Thread Guy Harris
On Dec 11, 2013, at 5:54 AM, Michael Richardson wrote: > I propose to release a libpcap 1.5.3 this week with the following changes: It doesn't appear that it's been released yet; if it hasn't, and if you release one from the current top of the 1.5 branch, it should have fixes for this bug, as

Re: [tcpdump-workers] [libpcap] TPACKET_V3 support broken when read timeout 0. (#335)

2013-12-11 Thread Michael Richardson
I propose to release a libpcap 1.5.3 this week with the following changes: 1) if PCAP_LINUX_TPACKET="v3" or ="v2" then the specific method will be used chosen, unless: 2) a new pcap_linux_tpacket(enum method) has been called by the application (which having a GUI, I presume) can let the u

Re: [tcpdump-workers] [libpcap] pcap findalldevs incorrectly shows dbus-* on macports (#332)

2013-12-08 Thread Michael Richardson
Gianfranco Costamagna wrote: > as said into the title, a macports developer reports that some dbus stuff is > shown as interface. > Please read this bug report Ettercap/ettercap#416 > At this moment we are just excluding them from ettercap, but I want ask you if > you think

Re: [tcpdump-workers] [libpcap] arpwatch 100% cpu with libpcap >=1.5.1 (#333)

2013-12-08 Thread Michael Richardson
Sébastien Luttringer wrote: > I found a regression in libpcap between 1.4.0 and >=1.5.1 which cause arpwatch > to consume 100% of CPU and stop working when listening on a bridge interface on > i686. > I'm currently not able to reproduce it on another computer (vm). > I tes

  1   2   3   4   5   6   7   >