With mode value 1, the TTL will be appended immediately after the 7 bytes,
making it a 8-byte fingerprint.
value, it then corresponds to the sum of the following values, and the
respective components will be concatenated to the fingerprint, in the order
below:
+ - 1: the received TTL value is appended to the fingerprint (1 byte)
- 2: the list of TCP option kinds, as returned by "tcp.options_list",
made of 0 to 40 extra bytes, is appended to the fingerprint
/* store the TOS in the FP's first byte */
trash->area[0] = iptos;
+ if (mode & 1) // append TTL
+ trash->area[trash->data++] = ipttl;
+
/* keep only two bits for TTL: <=32, <=64, <=128, <=255 */
ipttl = (ipttl > 64) ? ((ipttl > 128) ? 3 : 2) : ((ipttl > 32) ? 1 : 0);