mbakholdina / lib-tcpdump-processing

Library designed to process .pcap(ng) tcpdump or Wireshark trace files and extract SRT packets of interest for further analysis
15 stars 3 forks source link

Handle pcap names with multiple dots #9

Closed maxsharabayko closed 1 year ago

maxsharabayko commented 4 years ago

One of the pcapng files I've got from the QA has the following name: Capture_host10.69.12.136Win10_1VLC_1Instream.pcapng When I try to extract packets from it, I get error:

File "d:\Projects\srt\srt-packet-iat\venv\lib\site-packages\tcpdump_processing\convert.py", line 56, in convert_to_csv
    name, _ = filename.split('.')
ValueError: too many values to unpack (expected 2)
mbakholdina commented 1 year ago

Addressed in PR #48.