#6 setfilter fails (version 0.4)

open
nobody
None
5
2004-10-24
2004-10-24
Geoff Low
No

When I try to set a filter using the setfilter the
package throws the following exception:

>>> p = pcap.pcapObject()
>>> p.open_live('eth0',
dnet.ARP_HDR_LEN+dnet.ETH_HDR_LEN, 0, 500)
>>> p.setfilter('proto', 1, 1)
Traceback (most recent call last):
File "<stdin>", line 1, in ?
File "/usr/lib/python2.3/site-packages/pcap.py", line
61, in setfilter
def setfilter(*args): return
apply(pcapc.pcapObject_setfilter,args)
pcapc.EXCEPTION: [Errno -1] pcap_compile

I am using the package distributed with gentoo.

Discussion