[Click] libpcap BIOCIMMEDIATE error

Daniel Henkel henk at gmx.com
Mon Aug 22 20:47:52 EDT 2005


Eddie,
Bingo! That was the parse error. Thanks a lot.

- Daniel.

.....
Interdisciplinary Telecommunications Program
University of Colorado at Boulder
http://AUGNet.colorado.edu

---- Original Message ----
From: Eddie Kohler
To: Daniel Henkel <henk at gmx.com>
CC: click at amsterdam.lcs.mit.edu
Subject: [Click] libpcap BIOCIMMEDIATE error

Monday, August 22, 2005, 6:20:11 PM, you wrote:

EK> Well, I noted that your BPF_FILTER argument had a stray "and".  That
EK> causes a parse error.  Say "ether[18:4] == 0x08", not "ether[18:4] ==
EK> 0x08 and".  Does that help?

EK> Eddie


EK> On Aug 22, 2005, at 5:18 PM, Daniel Henkel wrote:

>> Eddie,
>>
>> the ioctl() returns with 'Invalid argument'. After some fiddling
>> around, I realized that I was compiling against libpcap 0.6.2 on my
>> devel machine, but had 0.7.2 installed on the Pebble system. So I
>> downloaded libpcap 0.8.3, compiled from sources, and installed this
>> version on both machines. Btw, it does not work with the 0.6.2
>> version, since ARP 803 is not supported. Click now works with a
>> /usr/lib/libpcap.so, which is I set up as just a symlink to the actual
>> libpcap.so.0.8.3 on both machines.
>>
>> So far, so good. However, the next problem was a missing IP address on
>> the ath0raw interface. I gave it a random 192.168.0.x address, which
>> solved that problem.
>>
>> Since all good things come in a three-pack, as the third problem
>> FromDevice initialization now returns 'ath0raw: parse error'. Router
>> could not be initialized. It seems as if this raw interface causes
>> trouble. Any idea how to solve this puzzle?
>>
>> - Daniel.
>>
>> .....
>> Interdisciplinary Telecommunications Program
>> University of Colorado at Boulder
>> http://AUGNet.colorado.edu
>>
>> ---- Original Message ----
>> From: Eddie Kohler
>> To: Daniel Henkel <henk at gmx.com>
>> CC: click at amsterdam.lcs.mit.edu
>> Subject: [Click] libpcap BIOCIMMEDIATE error
>>
>> Saturday, August 20, 2005, 12:41:04 PM, you wrote:
>>
>> EK> Hi Dan,
>>
>> EK> Can you try printing out the actual ioctl return value?  That  
>> might tell
>> EK> you what the error is.  I've checked in a little code to do this.
>>
>> EK> Eddie
>>
>>
>>
>>
>> EK> Daniel Henkel wrote:
>>
>>>> Hi,
>>>>
>>>> I am trying to use FromDevice() with CAPTURE PCAP under Linux 2.4
>>>> with
>>>> Atheros madwifi and libpcap.so.0.8.3. I'm using this line:
>>>>
>>>> FromDevice(ath0raw, CAPTURE PCAP, BPF_FILTER "ether[18:4] == 0x08
>>>> and
>>>> ")
>>>>
>>>> However, the configuration can not be initialized and returns
>>>> FromDevice: BIOCIMMEDIATE failed. FromDevice tries to switch the
>>>> pcap_fd into immediate mode, returning right after each packet
>>>> reception. For some reason this ioctl call returns an error. Any
>>>> idea
>>>> what to do? Is it at all necessary to switch the socket into  
>>>> immediate
>>>> mode in Linux?
>>>>
>>>> Thanks,
>>>> - Daniel.
>>>>
>>>> .....
>>>> Interdisciplinary Telecommunications Program
>>>> University of Colorado at Boulder
>>>> http://AUGNet.colorado.edu
>>>>
>>>> _______________________________________________
>>>> click mailing list
>>>> click at amsterdam.lcs.mit.edu
>>>> https://amsterdam.lcs.mit.edu/mailman/listinfo/click
>>>>
>>
>>



More information about the click mailing list