here is the command I use to capture packets
netsniff-ng --dev eth2 --ring-size 50MB -H
works great but after the 50MB the console stop displaying new results.
I would like a way to capture infinitely, I mean having netsniff capture things night and days. (I use an external program to capture the output).
how should I do ?
Regards,
Zack
but
1)
I use a java program which capture the output so I can't go in silent mode.
2)
I need the captured frames to last infinitely and can not print all to a File.
What should I do then to benefit from the high speed of netsniff-ng through my java program 24/24?
>
> What you could do is the following:
>
>
>
> 1) Run netsniff-ng with pcap output to stdout:
>
>
>
> netsniff-ng -i eth0 -o - -b 0 | your_tool
>
>
>
> 2) netsniff-ng will stdout in pcap file format, so you need to have
>
> a look if there are some java libs that can read this format.
>
> Instead of opening a pcap file in your program, you would then
>
> read an infinite stream from stdin.
1) Will this bypass the packet Dissector?
2) will it be Zero-copy mode
3) Will I be able to handle 5 M pps?
thanks
what is "--ring-size 500MB" option ?
Should I use it to increase capture speed?
what is "-o -" supposed to do ?
thanks