netsniff-ng: Use time of SIGHUP time when rotating files prematurely
commit0ae726d91125f6f5552a0eb6707c2e57ffd7cbe2
authorErik Bengtsson <e.bengtsson@gmail.com>
Thu, 28 Jan 2016 12:01:41 +0000 (28 13:01 +0100)
committerTobias Klauser <tklauser@distanz.ch>
Fri, 29 Jan 2016 09:26:21 +0000 (29 10:26 +0100)
tree1eda484a5e72d66cbe9761ec1fed6b952d7db919
parenta2d5d65b21b02af0285c96ee7a95900529390e54
netsniff-ng: Use time of SIGHUP time when rotating files prematurely

Use the timestamp of the SIGHUP in the file name when rotating file
prematurely instead of the file creation date, which might be delayed
depending on when the next packet arrives.

This should make it a bit easier to synchronize pcap files captures by
multiple instances of netsniff-ng on multiple interfaces.

Signed-off-by: Erik Bengtsson <e.bengtsson@gmail.com>
Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
netsniff-ng.c