summaryrefslogtreecommitdiffstats
path: root/src/bp_sim.cpp
diff options
context:
space:
mode:
authorIdo Barnea <ibarnea@cisco.com>2016-12-22 16:49:34 +0200
committerIdo Barnea <ibarnea@cisco.com>2016-12-22 16:49:34 +0200
commitee1eb4de057d5e1752fc588ba4a2d873bae6d064 (patch)
treec5be502364675b8992cf5a1435ea458ab234dc77 /src/bp_sim.cpp
parentd99346269fed5539d483113a4b37928619c6640a (diff)
Allow up to 10 hops TTL reduction in X710 and 82599 stateful
Signed-off-by: Ido Barnea <ibarnea@cisco.com>
Diffstat (limited to 'src/bp_sim.cpp')
-rwxr-xr-xsrc/bp_sim.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/bp_sim.cpp b/src/bp_sim.cpp
index a757cce0..5b3c1bb1 100755
--- a/src/bp_sim.cpp
+++ b/src/bp_sim.cpp
@@ -2356,11 +2356,10 @@ enum CCapFileFlowInfo::load_cap_file_err CCapFileFlowInfo::load_cap_file(std::st
/* inc pkt_id inside the flow */
lpflow->pkt_id++;
- /* check that we don't have reserve TTL for duplication */
+ /* check that we don't have reserved TTL */
uint8_t ttl = pkt_indication.getTTL();
- if ( (ttl == TTL_RESERVE_DUPLICATE) ||
- (ttl == (TTL_RESERVE_DUPLICATE-1)) ) {
- pkt_indication.setTTL(TTL_RESERVE_DUPLICATE-4);
+ if ( ttl > 127) {
+ pkt_indication.setTTL(127);
}
pkt_indication.clearTOSReserve();