diff --git a/src/packet.c b/src/packet.c index b2fc389..67827af 100644 --- a/src/packet.c +++ b/src/packet.c @@ -67,7 +67,7 @@ static void *create_packet(const struct scan *data, size_t packet_size) iphdr->tot_len = packet_size; iphdr->id = htons(54321); iphdr->frag_off = 0; - iphdr->ttl = 48; + iphdr->ttl = data->ttl; iphdr->protocol = isudp ? IPPROTO_UDP : IPPROTO_TCP; iphdr->saddr = inet_addr(data->host->ip); iphdr->daddr = inet_addr(data->dest_addr);