summaryrefslogtreecommitdiffstats
path: root/src/bp_sim.cpp
diff options
context:
space:
mode:
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();