mirror of
https://github.com/yarrick/iodine.git
synced 2024-11-16 21:29:20 +02:00
Send more random pings
This commit is contained in:
parent
bed0b63bf6
commit
0edb934775
4
dns.c
4
dns.c
|
@ -183,13 +183,15 @@ dns_handle_tun(int fd, char *data, int len)
|
||||||
void
|
void
|
||||||
dns_ping(int dns_fd)
|
dns_ping(int dns_fd)
|
||||||
{
|
{
|
||||||
|
char data[3];
|
||||||
if (dns_sending()) {
|
if (dns_sending()) {
|
||||||
printf("No reply on chunk, discarding\n");
|
printf("No reply on chunk, discarding\n");
|
||||||
lastlen = 0;
|
lastlen = 0;
|
||||||
packetpos = 0;
|
packetpos = 0;
|
||||||
packetlen = 0;
|
packetlen = 0;
|
||||||
}
|
}
|
||||||
dns_write(dns_fd, ++pingid, "", 0);
|
snprintf(data, 3, "%02X", pingid);
|
||||||
|
dns_write(dns_fd, ++pingid, data, 2);
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
|
Loading…
Reference in New Issue