Pcap network buffer

H

hareksu

Hi all,

I've been writing an application for capturing multiple HD network video streams using a linux laptop with packet capture. For this I've used pcapy, which wraps parts of libpcap. The problem is that with the default network buffer size, I end up with corrupted video, so I changed the default buffersize and tried again, to no avail. I dug into the problem a bit, and noticed that both tcpdump and wireshark can set the buffer size, in which case Irecord without problem, and the libpcap C library has an fucntion pcap_set_buffer_size reflecting this, but neither pcapy or pylibpcap seem to include this functionality.
So my question is this: is there a python way to set this buffer size, or do I need to write this in C? Thanks in advance.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,059
Latest member
cryptoseoagencies

Latest Threads

Top