netsniff-ng: Combine redundant pcap file rotation logic into function
commit07fa58ff28b700cf4bceb9f67db6af504f61a354
authorTobias Klauser <tklauser@distanz.ch>
Wed, 1 Oct 2014 11:42:12 +0000 (1 13:42 +0200)
committerTobias Klauser <tklauser@distanz.ch>
Wed, 1 Oct 2014 11:42:12 +0000 (1 13:42 +0200)
tree7af88fef5b071218525aeb8a06b188827308d329
parentac2c2cf23573e400e014628af22467ca43573c21
netsniff-ng: Combine redundant pcap file rotation logic into function

The code to create the next pcap dump file is duplicated for the
HAVE_TPACKET3 and !HAVE_TPACKET3 case. Consolidate the functionality
into a function to reduce code duplication.

Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
netsniff-ng.c