From 8691f4019dc2123c1aa7413cf3666138756c2f66 Mon Sep 17 00:00:00 2001 From: imarom Date: Tue, 3 May 2016 14:57:34 +0300 Subject: first remote PCAP push - draft --- src/stateless/dp/trex_stateless_dp_core.h | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'src/stateless/dp/trex_stateless_dp_core.h') diff --git a/src/stateless/dp/trex_stateless_dp_core.h b/src/stateless/dp/trex_stateless_dp_core.h index cb102b8d..01033a7c 100644 --- a/src/stateless/dp/trex_stateless_dp_core.h +++ b/src/stateless/dp/trex_stateless_dp_core.h @@ -70,6 +70,8 @@ public: bool update_traffic(uint8_t port_id, double factor); + bool push_pcap(uint8_t port_id, const std::string &pcap_filename); + bool stop_traffic(uint8_t port_id, bool stop_on_id, int event_id); @@ -91,7 +93,6 @@ public: public: state_e m_state; - uint8_t m_port_id; uint32_t m_active_streams; /* how many active streams on this port */ @@ -149,7 +150,7 @@ public: */ void start_traffic(TrexStreamsCompiledObj *obj, double duration, - int m_event_id); + int event_id); /* pause the streams, work only if all are continues */ @@ -160,6 +161,13 @@ public: void resume_traffic(uint8_t port_id); + /** + * push a PCAP file on port + * + */ + void push_pcap(uint8_t port_id, int event_id, const std::string &pcap_filename); + + /** * update current traffic rate * -- cgit 1.2.3-korg