summaryrefslogtreecommitdiffstats
path: root/src/vnet/unix/pcap2pg.c
diff options
context:
space:
mode:
authorDave Barach <dave@barachs.net>2018-02-23 12:09:41 -0500
committerDave Barach <dave@barachs.net>2018-02-23 12:12:04 -0500
commita0cc5ab6d4873164bcb6cdae02b928e49553d13a (patch)
treece34f8dfb715a3b42f7ef380e645b0d721deea35 /src/vnet/unix/pcap2pg.c
parent1355fcd36f9ad63bbdc7ebd300c1c18b9520498b (diff)
Convert a pcap file to a set of C initializers
Change-Id: Ieb6b7a75fa23c8142ae15f42cd3a703253f39e10 Signed-off-by: Dave Barach <dave@barachs.net>
Diffstat (limited to 'src/vnet/unix/pcap2pg.c')
-rw-r--r--src/vnet/unix/pcap2pg.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vnet/unix/pcap2pg.c b/src/vnet/unix/pcap2pg.c
index 46d6bfcd0c7..712907a5bac 100644
--- a/src/vnet/unix/pcap2pg.c
+++ b/src/vnet/unix/pcap2pg.c
@@ -164,7 +164,7 @@ main (int argc, char **argv)
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);