mirror of
https://github.com/jedisct1/dnsblast.git
synced 2025-02-07 05:30:51 +00:00
Dirty, dirty hack to change source port everytime
This commit is contained in:
parent
22b6cb6c38
commit
30e7d8fd0f
@ -351,6 +351,7 @@ main(int argc, char *argv[])
|
|||||||
if (argc > 4) {
|
if (argc > 4) {
|
||||||
port = argv[4];
|
port = argv[4];
|
||||||
}
|
}
|
||||||
|
do {
|
||||||
if ((sock = get_sock(host, port, &ai)) == -1) {
|
if ((sock = get_sock(host, port, &ai)) == -1) {
|
||||||
perror("Oops");
|
perror("Oops");
|
||||||
exit(EXIT_FAILURE);
|
exit(EXIT_FAILURE);
|
||||||
@ -359,7 +360,6 @@ main(int argc, char *argv[])
|
|||||||
context.pps = pps;
|
context.pps = pps;
|
||||||
srand(0U);
|
srand(0U);
|
||||||
assert(send_count > 0UL);
|
assert(send_count > 0UL);
|
||||||
do {
|
|
||||||
if (rand() > REPEATED_NAME_PROBABILITY) {
|
if (rand() > REPEATED_NAME_PROBABILITY) {
|
||||||
get_random_name(name, sizeof name);
|
get_random_name(name, sizeof name);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user