mirror of
https://github.com/jedisct1/dnsblast.git
synced 2025-01-18 12:05:35 +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) {
|
||||
port = argv[4];
|
||||
}
|
||||
do {
|
||||
if ((sock = get_sock(host, port, &ai)) == -1) {
|
||||
perror("Oops");
|
||||
exit(EXIT_FAILURE);
|
||||
@ -359,7 +360,6 @@ main(int argc, char *argv[])
|
||||
context.pps = pps;
|
||||
srand(0U);
|
||||
assert(send_count > 0UL);
|
||||
do {
|
||||
if (rand() > REPEATED_NAME_PROBABILITY) {
|
||||
get_random_name(name, sizeof name);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user