summaryrefslogtreecommitdiffstats
path: root/src/stateless/cp/trex_stream_vm.h
diff options
context:
space:
mode:
authorHanoh Haim <hhaim@cisco.com>2016-02-23 15:30:41 +0200
committerHanoh Haim <hhaim@cisco.com>2016-02-23 15:30:41 +0200
commit68ebd739646a27f1bb92ce8eacb5bb76f6399580 (patch)
tree7611dbc58173e642a728e87c4ae7445f54391f62 /src/stateless/cp/trex_stream_vm.h
parente138e3c2b3f6dabb2641957e68034a2fe4674892 (diff)
fix ipv4 checksum error in case of pkt_size>128 and field offset less than ip-header (fd.io issue - Miro)
Diffstat (limited to 'src/stateless/cp/trex_stream_vm.h')
-rw-r--r--src/stateless/cp/trex_stream_vm.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/stateless/cp/trex_stream_vm.h b/src/stateless/cp/trex_stream_vm.h
index 13504703..c16545d9 100644
--- a/src/stateless/cp/trex_stream_vm.h
+++ b/src/stateless/cp/trex_stream_vm.h
@@ -1408,6 +1408,7 @@ public:
m_split_instr=NULL;
m_is_compiled = false;
+ m_pkt=0;
}
@@ -1511,6 +1512,10 @@ public:
/* raise exception */
void err(const std::string &err);
+ void set_pkt(uint8_t *pkt){
+ m_pkt=pkt;
+ }
+
/**
* return a pointer to a flow var / client var
@@ -1565,6 +1570,7 @@ private:
StreamDPVmInstructions m_instructions;
StreamVmInstructionVar *m_split_instr;
+ uint8_t *m_pkt;