Code Review
/
vpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
pcap-based dispatch tracer
[vpp.git]
/
src
/
vnet
/
unix
/
pcap2pg.c
diff --git
a/src/vnet/unix/pcap2pg.c
b/src/vnet/unix/pcap2pg.c
index
46d6bfc
..
e27dad7
100644
(file)
--- a/
src/vnet/unix/pcap2pg.c
+++ b/
src/vnet/unix/pcap2pg.c
@@
-19,7
+19,7
@@
* @brief Functions to convert PCAP file format to VPP PG (Packet Generator)
*
*/
* @brief Functions to convert PCAP file format to VPP PG (Packet Generator)
*
*/
-#include <v
net/unix
/pcap.h>
+#include <v
ppinfra
/pcap.h>
#include <vnet/ethernet/packet.h>
#include <stdio.h>
#include <vnet/ethernet/packet.h>
#include <stdio.h>
@@
-164,7
+164,7
@@
main (int argc, char **argv)
if (output_file)
{
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);
if (ofp == NULL)
clib_unix_warning ("Couldn't create '%s'", output_file);
exit (1);