From 68ebd739646a27f1bb92ce8eacb5bb76f6399580 Mon Sep 17 00:00:00 2001 From: Hanoh Haim Date: Tue, 23 Feb 2016 15:30:41 +0200 Subject: fix ipv4 checksum error in case of pkt_size>128 and field offset less than ip-header (fd.io issue - Miro) --- src/stateless/cp/trex_stream_vm.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/stateless/cp/trex_stream_vm.h') 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; -- cgit 1.2.3-korg