PcapDotNet / Pcap.Net

.NET wrapper for WinPcap written in C++/CLI and C#, which features almost all WinPcap features and includes a packet interpretation framework.
BSD 3-Clause "New" or "Revised" License
559 stars 168 forks source link

Capture LLC packets #45

Open bricknerb opened 9 years ago

bricknerb commented 9 years ago

Nontenda[CodePlex]
Hi,

I'm trying to use Pcap.Net to capture LLC packets but when I try to use : BerkeleyPacketFilter filter = communicator.CreateFilter(quotllcquot)

I got an argument exception quotAn error has occured when compiling the filter ltllcgt: 'llc' supported only on raw ATMquot.

What can I do ? What is the quotraw modequot ?

Thank's in advance, best regards, Nontenda

bricknerb commented 9 years ago

Brickner[CodePlex]
This seems to belong to the discussions and doesn't look like a an issue that can be fixed. If you want to use BerkeleyPacketFilter (BPF) you can only write BPF valid rules. You can start by reading this and see the links it points to: http://en.wikipedia.org/wiki/Berkeley_Packet_Filter

I need more context to your code, but it's probably related to the device you're trying to read from. I guess LLC is supported only on ATM and maybe you're trying to read from an Ethernet device.

If you have further questions, please open a discussion for that.