X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=client%2Fadnsresfilter.c;h=f3244b901e329ce075a088622076b8c30c170f58;hb=HEAD;hp=7632ee3f59b83c34bc9f24786226678909b40cfd;hpb=15480be436960212fd31b8963516766a68adcdd5;p=adns.git diff --git a/client/adnsresfilter.c b/client/adnsresfilter.c index 7632ee3..038b3ad 100644 --- a/client/adnsresfilter.c +++ b/client/adnsresfilter.c @@ -3,15 +3,12 @@ * - filter which does resolving, not part of the library */ /* - * This file is part of adns, which is - * Copyright (C) 1997-2000,2003,2006 Ian Jackson - * Copyright (C) 1999-2000,2003,2006 Tony Finch - * Copyright (C) 1991 Massachusetts Institute of Technology - * (See the file INSTALL for full details.) + * This file is part of adns, which is Copyright Ian Jackson + * and contributors (see the file INSTALL for full details). * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2, or (at your option) + * the Free Software Foundation; either version 3, or (at your option) * any later version. * * This program is distributed in the hope that it will be useful, @@ -20,8 +17,7 @@ * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software Foundation, - * Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + * along with this program; if not, write to the Free Software Foundation. */ #include @@ -67,7 +63,7 @@ static int peroutqueuenode, outqueuelen; static struct sockaddr_in sa; static adns_state ads; -static char addrtextbuf[14]; +static char addrtextbuf[18]; /* [ddd.ddd.ddd.ddd] + nul */ static int cbyte, inbyte, inbuf; static unsigned char bytes[4]; static struct timeval printbefore; @@ -171,6 +167,10 @@ static void parseargs(const char *const *argv) { config_text= arg; } else if (!strcmp(arg,"--debug")) { initflags |= adns_if_debug; + } else if (!strcmp(arg,"--checkc-freq")) { + initflags |= adns_if_checkc_freq; + } else if (!strcmp(arg,"--checkc-entex")) { + initflags |= adns_if_checkc_entex; } else if (!strcmp(arg,"--help")) { usage(); quitnow(0); } else if (!strcmp(arg,"--version")) {