Menu

#4 open_offline not working

open
nobody
None
5
2004-08-31
2004-08-31
No

I want to open a file that I made with snoop, so:

Python 2.3.3 (#1, Feb 13 2004, 12:53:35)
[GCC 3.3.2 20031022 (Red Hat Linux 3.3.2-1)] on linux2
Type "help", "copyright", "credits" or "license" for
more information.
>>> import pcap
>>> p = pcap.pcapObject()
>>> import os
>>> os.listdir('.')
['Logica_15001.snoop', 'Logica_15002.snoop',
'Logica_15003.snoop', 'Logica_15004.snoop',
'Logica_15001.txt', 'Logica_15002.txt',
'analizaEth.py', 'Logica_15003.txt',
'Logica_15004.txt', 'gogetstats', 'parsLogSMSC.py',
'logchico.txt', 'logcmed.txt', 'SMSC.LOG;130']
>>> p.open_offline('Logica_15001.snoop')
Traceback (most recent call last):
File "<stdin>", line 1, in ?
File
"/usr/local/lib/python2.3/site-packages/pcap.py", line
57, in open_offline
def open_offline(*args): return
apply(pcapc.pcapObject_open_offline,args)
pcapc.EXCEPTION: [Errno 1] pcap_open_offline
>>>

Two things:

- It gave me an error!
- Doesn't tell me what the error is!

Thanks for all!

Discussion

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.