bms0924 / netmap

Automatically exported from code.google.com/p/netmap
0 stars 0 forks source link

Is it possible to add support for buffering netmap-libpcap #26

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.Currently, netmap-libpcap is not initializing the libpcap buffers using the 
"-B" command if the interface its in netmap mode
2.The buffer itself it interface independent
3.Using buffering can greatly enhance performance when using tcpdump for 
capturing and filtering packets

What is the expected output? What do you see instead?
"-B 2000000" should allocate up to 2GB of memory for PF_PACKET sockets

What version of the product are you using? On what operating system?
netmap - latest master branch (as of 10-27-2014)
netmap-libpcap latest master branch (as of 10-27-2014)

Please provide any additional information below.

I am not terribly familiar with the netmap-libpcap patch, but is it possible to 
add in support for "-B" in netmap mode?

Original issue reported on code.google.com by morph...@gmail.com on 27 Oct 2014 at 10:22