1
0
mirror of https://github.com/nmap/nmap.git synced 2026-01-07 15:09:01 +00:00

Add doc for get_initial_ttl_guess()

This commit is contained in:
luis
2011-07-26 12:03:40 +00:00
parent 46eeeb0b1e
commit 2ccd8a60cb

View File

@@ -188,6 +188,11 @@ static struct AVal *make_aval_ipid_seq(struct AVal *av, const char *attribute,
}
/* Returns a guess about the original TTL based on an observed TTL value.
* This function assumes that the target from which we received the packet was
* less than 32 hops away. Also, note that although some systems use an
* initial TTL of 60, this function rounds that to 64, as both values
* cannot be reliably distinguished based on a simple observed hop count. */
int get_initial_ttl_guess(u8 ttl) {
if (ttl <= 32)
return 32;