the-tcpdump-group / libpcap

the LIBpcap interface to various kernel packet capture mechanism
https://www.tcpdump.org/
Other
2.64k stars 841 forks source link

[Patch] Support for Beagle and AArdvark (i2c sniffers) #237

Open guyharris opened 11 years ago

guyharris commented 11 years ago

Converted from SourceForge issue 2887899, submitted by blaism

I have added support for the Beagle and Aardvark device to my local copy. How can I get my code checked in the main repository ?

And is there a guideline on how to submit new code ?

Thanks !

guyharris commented 11 years ago

Submitted by guy_harris

Make a patch for that support, and attach it to this bug.

guyharris commented 11 years ago

Submitted by blaism

Here is my patch.

To use the beagle or aardvark devices, the files beagles.so and aardvark.so need to be copied somewhere in your library path. These files can be downloaded from the manufacturer's site and are part of the api download: http://www.totalphase.com/download/zip/beagle-api-linux-v3.08.zip http://www.totalphase.com/download/zip/aardvark-api-linux-v5.11.zip

Note on my implementation: Right now, I have modified the configure.in to always compile the beagle and aardvark extension if the host is linux. I'd like a better solution but I'm not familiar with the language yet.

The device names are beagle0, beagle1, aardvark0, aardvark1 etc. If the device number is 99, all the devices of that type will be read in a polling fashion.

infrastation commented 10 years ago

The patch in the SF bug is large.