Do not use 53 as source port for DNS/raw traffic.

For some reason this makes raw traffic get dropped.
This commit is contained in:
Erik Ekman 2014-05-31 21:20:04 +02:00
parent 5b71224def
commit d0fb85e8cf

View file

@ -345,7 +345,7 @@ main(int argc, char **argv)
retval = 1; retval = 1;
goto cleanup1; goto cleanup1;
} }
if ((dns_fd = open_dns_from_host(NULL, 53, nameservaddr.ss_family, AI_PASSIVE)) < 0) { if ((dns_fd = open_dns_from_host(NULL, 0, nameservaddr.ss_family, AI_PASSIVE)) < 0) {
retval = 1; retval = 1;
goto cleanup2; goto cleanup2;
} }