Code Review
/
vpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Add API calls for packet generator
[vpp.git]
/
vnet
/
vnet
/
pg
/
pg.h
diff --git
a/vnet/vnet/pg/pg.h
b/vnet/vnet/pg/pg.h
index
750e7f7
..
54c270f
100644
(file)
--- a/
vnet/vnet/pg/pg.h
+++ b/
vnet/vnet/pg/pg.h
@@
-352,4
+352,16
@@
void pg_edit_group_get_fixed_packet_data (pg_stream_t * s,
void * fixed_packet_data,
void * fixed_packet_data_mask);
void * fixed_packet_data,
void * fixed_packet_data_mask);
+void pg_enable_disable (u32 stream_index, int is_enable);
+
+typedef struct {
+ u32 hw_if_index;
+ u32 dev_instance;
+ u8 is_enabled;
+ u8 * pcap_file_name;
+ u32 count;
+} pg_capture_args_t;
+
+clib_error_t * pg_capture (pg_capture_args_t *a);
+
#endif /* included_vlib_pg_h */
#endif /* included_vlib_pg_h */