summaryrefslogtreecommitdiffstats
path: root/src/stateless/cp/trex_stream_vm.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/stateless/cp/trex_stream_vm.cpp')
-rw-r--r--src/stateless/cp/trex_stream_vm.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/stateless/cp/trex_stream_vm.cpp b/src/stateless/cp/trex_stream_vm.cpp
index a9935759..96ba8934 100644
--- a/src/stateless/cp/trex_stream_vm.cpp
+++ b/src/stateless/cp/trex_stream_vm.cpp
@@ -644,9 +644,9 @@ void StreamVm::build_program(){
err(ss.str());
}
- if (lpFix->m_l3_len < 8 ) {
+ if (lpFix->m_l3_len < 20 ) {
std::stringstream ss;
- ss << "instruction id '" << ins_id << "' fix hw offset l3 " << lpFix->m_l3_len << " is lower than 8 ";
+ ss << "instruction id '" << ins_id << "' fix hw offset l3 " << lpFix->m_l3_len << " is lower than 20 ";
err(ss.str());
}
@@ -673,7 +673,7 @@ void StreamVm::build_program(){
}
}else{
if (ipv4->getVersion() ==6) {
- /* pass */
+ packet_is_ipv4=false;
}else{
std::stringstream ss;
ss << "instruction id '" << ins_id << "' fix hw command should work on IPv4 or IPv6 " ;