diff options
author | Anton Luka Šijanec <anton@sijanec.eu> | 2022-01-18 21:13:43 +0100 |
---|---|---|
committer | Anton Luka Šijanec <anton@sijanec.eu> | 2022-01-18 21:13:43 +0100 |
commit | 860043941f1949e9cae7d6a4fce908f0d2726b86 (patch) | |
tree | ce88b3f25154a9f5062d45d3f3019c6ba803f489 /main.c | |
parent | dela (diff) | |
download | dnsfind-860043941f1949e9cae7d6a4fce908f0d2726b86.tar dnsfind-860043941f1949e9cae7d6a4fce908f0d2726b86.tar.gz dnsfind-860043941f1949e9cae7d6a4fce908f0d2726b86.tar.bz2 dnsfind-860043941f1949e9cae7d6a4fce908f0d2726b86.tar.lz dnsfind-860043941f1949e9cae7d6a4fce908f0d2726b86.tar.xz dnsfind-860043941f1949e9cae7d6a4fce908f0d2726b86.tar.zst dnsfind-860043941f1949e9cae7d6a4fce908f0d2726b86.zip |
Diffstat (limited to 'main.c')
-rw-r--r-- | main.c | 9 |
1 files changed, 1 insertions, 8 deletions
@@ -20,13 +20,6 @@ #include <poll.h> /* poll(2) */ #include "domain2name.c" #include "host.c" -#define MIN(a,b) ((a) < (b) ? (a) : (b)) -#define MAX(a,b) ((a) > (b) ? (a) : (b)) -#define MAXDOMAIN 255 -#define QUERYDOMAIN "http://sijanec.eu/link?r=.sijanec.eu." -#define EXPECTEDA 93.103.235.126 -#define XSTR(x) #x -#define STR(x) XSTR(x) #define HELP "find recursive DNS resolvers on IPv4 networks\n" \ "%s [-a ip] [-b ip] [-d domain] [-eh] [-o file] [-p port] [-t μs] [-w μs] net1 [net2 ...]\n" \ " -a Specify the IPv4 of the -d domain to be used instead of getaddrinfo(3).\n" \ @@ -270,7 +263,7 @@ int logudp (int o /* fd */, struct sockaddr_in s, struct sockaddr_in d, char * u c = (char *) memcpy(c, &n, 2) + 2; c = (char *) memcpy(c, u, l) + l; if (write(o, b, LOGUDP_L) == -1) { /* atomic and thread safe, as per posix */ - perror("write(" STR(LOGUDP_L) ")"); + perror("write(o, b, LOGUDP_L)"); return -3; } return LOGUDP_L; |