X-Git-Url: http://git.ipfire.org/?a=blobdiff_plain;f=pdns%2Fdnsscan.cc;h=936a05dd9390707348fa20b898c9a4be03d3d51d;hb=a704db08874786f5f6290411e36dfe5dce195214;hp=f9a0afc3347a8199b6242553a6b55ea6e897cde4;hpb=9f722523e16931ec79283bcc2fea3b72da9e9790;p=thirdparty%2Fpdns.git diff --git a/pdns/dnsscan.cc b/pdns/dnsscan.cc index f9a0afc334..936a05dd93 100644 --- a/pdns/dnsscan.cc +++ b/pdns/dnsscan.cc @@ -1,3 +1,24 @@ +/* + * This file is part of PowerDNS or dnsdist. + * Copyright -- PowerDNS.COM B.V. and its contributors + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of version 2 of the GNU General Public License as + * published by the Free Software Foundation. + * + * In addition, for the avoidance of any doubt, permission is granted to + * link this program with OpenSSL and to (re)distribute the binaries + * produced as the result of such linking. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * 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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + */ #ifdef HAVE_CONFIG_H #include "config.h" #endif @@ -7,8 +28,6 @@ #include "sstuff.hh" #include "anadns.hh" -// this is needed because boost multi_index also uses 'L', as do we (which is sad enough) -#undef L #include #include @@ -25,6 +44,10 @@ using namespace ::boost::multi_index; #include "namespaces.hh" StatBag S; +void usage() { + cerr<<"syntax: dnsscan INFILE ..."<