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>