X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=src%2Fdefaults.h;h=597da7ca25a28883ac17d406fff2a77efaba8115;hb=a31fd0d97ab18115198b33160ffc390f50d8b2f6;hp=3115751a94b03d1edaed13a6864c6e672bebec5b;hpb=17429ef85bfb4bdf51f4a659443fe4c31c972928;p=debian%2Fdhcpd-pools.git diff --git a/src/defaults.h b/src/defaults.h index 3115751..597da7c 100644 --- a/src/defaults.h +++ b/src/defaults.h @@ -1,19 +1,37 @@ -/* http://dhcpd-pools.sourceforge.net/ -** Copyright 2006- Sami Kerola -** -** 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 3 of the License, or -** (at your option) any later version. -** -** 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, see . -*/ +/* + * The dhcpd-pools has BSD 2-clause license which also known as "Simplified + * BSD License" or "FreeBSD License". + * + * Copyright 2006- Sami Kerola. All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are + * met: + * + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the + * distribution. + * + * THIS SOFTWARE IS PROVIDED BY ``AS IS'' AND ANY EXPRESS + * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED + * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE + * DISCLAIMED. IN NO EVENT SHALL OR CONTRIBUTORS BE + * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF + * THE POSSIBILITY OF SUCH DAMAGE. + * + * The views and conclusions contained in the software and documentation are + * those of the authors and should not be interpreted as representing + * official policies, either expressed or implied, of Sami Kerola. + */ #ifndef DEFAULTS_H # define DEFAULTS_H 1 @@ -21,16 +39,10 @@ /* Maximum line length in dhcpd.conf and dhcpd.leases */ static const int MAXLEN = 1024; -/* Total number of characters in all shared network names */ -static const int SHARED_NETWORKS_NAMES = 24576; - /* Maximum number of shared networks */ -static const int SHARED_NETWORKS = 1024; +static const unsigned int SHARED_NETWORKS = 8192; /* Maximum number of ranges */ -static const unsigned int RANGES = 65536; - -/* Merge sort split size */ -static const int MIN_MERGE_SIZE = 8; +unsigned int RANGES; -#endif /* DEFAULTS_H */ +#endif /* DEFAULTS_H */