[Click] libpcap filter error
Eddie Kohler
kohler at cs.ucla.edu
Tue Jul 5 15:49:09 EDT 2005
Hi Daniel, Nick,
A-ha. Click used to use Linux packet sockets whenever they were
available. But obviously it should offer the user a choice. So now
it does. If you are using the anonymous CVS version, and you supply
userlevel FromDevice with a "CAPTURE PCAP" argument, it will use pcap
to capture packets (even on Linux). Then BPF_FILTER will not be
ignored.
(John, I think you'll be interested in this as well!)
Eddie
On Jun 29, 2005, at 2:10 PM, Nicholas Weaver wrote:
> On Wed, Jun 29, 2005 at 03:07:42PM -0600, Daniel Henkel composed:
>
>> Hi folks,
>>
>> I'm trying to use the BPF_FILTER parameter with FromDevice in
>> user-mode. This is the result when loading the configuration, e.g.,
>> /conf/wifi/pseudo-ibss.click:
>>
>> pseudo-ibss.click:33: While configuring 'from_dev :: FromDevice':
>> warning: not using pcap library, BPF filter ignored
>>
>> I'm using libpcap 0.6.2, and ./configure recognizes it:
>> ...
>> checking for pcap.h... found
>> checking whether pcap.h works... yes
>> checking for bpf_timeval in pcap.h... no
>> checking whether pcap_setnonblock is declared... yes
>> checking for -lpcap... found
>> checking for pcap_setnonblock... yes
>> ...
>>
>
> I've not used BFP_Filter before, however...
>
> Click's linux code doesn't use pcap for the packet capturing, but it
> does under bsd (thus the check in ./configure). I've experienced
> issues with the pcap driver under BSD however (the click linux driver
> is much more resilient).
>
> --
> Nicholas C. Weaver
> nweaver at icsi.berkeley.edu
> This message has been ROT-13 encrypted twice for higher security.
> _______________________________________________
> click mailing list
> click at amsterdam.lcs.mit.edu
> https://amsterdam.lcs.mit.edu/mailman/listinfo/click
>
More information about the click
mailing list