feature: ttl complete
This commit is contained in:
@ -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);
|
||||
|
Reference in New Issue
Block a user