* @brief Functions to convert PCAP file format to VPP PG (Packet Generator)
*
*/
-#include <vnet/unix/pcap.h>
+#include <vppinfra/pcap.h>
#include <vnet/ethernet/packet.h>
#include <stdio.h>
if (output_file)
{
- ofp = fopen ((char *) output_file, "rw");
+ ofp = fopen ((char *) output_file, "w+");
if (ofp == NULL)
clib_unix_warning ("Couldn't create '%s'", output_file);
exit (1);