diff options
author | Ido Barnea <ibarnea@cisco.com> | 2016-12-22 16:49:34 +0200 |
---|---|---|
committer | Ido Barnea <ibarnea@cisco.com> | 2016-12-22 16:49:34 +0200 |
commit | ee1eb4de057d5e1752fc588ba4a2d873bae6d064 (patch) | |
tree | c5be502364675b8992cf5a1435ea458ab234dc77 /src/bp_sim.cpp | |
parent | d99346269fed5539d483113a4b37928619c6640a (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-x | src/bp_sim.cpp | 7 |
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(); |