Skip to content

Commit

Permalink
Handle only (default_ttl - 30) range in Auto TTL
Browse files Browse the repository at this point in the history
  • Loading branch information
ValdikSS committed Dec 26, 2021
1 parent fc15088 commit d61a9f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ttltrack.c
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ int tcp_handle_outgoing(uint32_t srcip[4], uint32_t dstip[4],
int tcp_get_auto_ttl(const uint8_t ttl, const uint8_t decrease_for) {
uint8_t ttl_of_fake_packet = 0;

if (ttl > 64 && ttl < 128) {
if (ttl > 98 && ttl < 128) {
/* Safekeeping */
if (128 - ttl > decrease_for + 1) {
ttl_of_fake_packet = 128 - ttl - decrease_for;
Expand Down

0 comments on commit d61a9f8

Please sign in to comment.