diff options
author | imarom <imarom@cisco.com> | 2017-02-15 18:26:41 +0200 |
---|---|---|
committer | imarom <imarom@cisco.com> | 2017-02-16 15:20:23 +0200 |
commit | 17d58dba43eeae9f1519248c1fd62e9e4d2dc302 (patch) | |
tree | ffbadffb292b505aea5dad6e524e5cef4bf66154 /src/bp_sim.h | |
parent | d9e19ba46d441b8e208f223add5a612183e5157c (diff) |
TX packet capture - zero impact on fast path
(using wrapper when service mode is active)
Signed-off-by: imarom <imarom@cisco.com>
Diffstat (limited to 'src/bp_sim.h')
-rwxr-xr-x | src/bp_sim.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/bp_sim.h b/src/bp_sim.h index 27fb8d07..22968b2c 100755 --- a/src/bp_sim.h +++ b/src/bp_sim.h @@ -319,8 +319,15 @@ public: virtual ~CVirtualIF() {} virtual int open_file(std::string file_name)=0; virtual int close_file(void)=0; + /* send one packet */ virtual int send_node(CGenNode * node)=0; + + /* by default does the same */ + virtual int send_node_service_mode(CGenNode *node) { + return send_node(node); + } + /* send one packet to a specific dir. flush all packets */ virtual void send_one_pkt(pkt_dir_t dir, rte_mbuf_t *m) {} /* flush all pending packets into the stream */ |