netsniff-ng: implement rotating capture files
commit04b3fe157db3e3aa22caf632928d5f06aa3f88bd
authorWhang Choi <wch0x01@gmail.com>
Sat, 1 Dec 2018 00:31:54 +0000 (30 19:31 -0500)
committerTobias Klauser <tklauser@distanz.ch>
Sun, 2 Dec 2018 16:26:52 +0000 (2 17:26 +0100)
treefcd32379141cf3248614c53af565aa3ff9a90975
parente313a5415241cd2b0a81ae4ac55a53b36ab153ff
netsniff-ng: implement rotating capture files

Add a new option -O, --overwrite which allows to rotate capture files.
The timestamp in the file name is replaced with a number that wraps
around after reaching the specified number of files.

Example usage:

netsniff-ng -s -F 1KiB -O 10 -i eth0 -o /output/folder

Fixes #147

Signed-off-by: Whang Choi <wch0x01@gmail.com>
Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
netsniff-ng.8
netsniff-ng.c