I can't find in the documentation where the mode of the open file (overwrite vs. append) is specified.
Thank you for clarification.
pcap_dump_open()
pcap_dump_open_append()