X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=src%2Fdefaults.h;h=8cb69e0fbe1ec56b9b0203e27b8d9c946ad0ab47;hb=8e09c76eae80ef56fa38a67463aee4da4278125c;hp=e363089244efdceb39d3624ae132ba0c023a2ad6;hpb=74aef1c34e31699595b4b198bcde5ac1af694260;p=debian%2Fdhcpd-pools.git diff --git a/src/defaults.h b/src/defaults.h index e363089..8cb69e0 100644 --- a/src/defaults.h +++ b/src/defaults.h @@ -1,19 +1,18 @@ -/* -** Copyright (C) 2006 Sami Kerola -** -** This program is free software; you can redistribute it and/or modify +/* 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 2 of the License, or +** 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, write to the Free Software -** Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. +** along with this program. If not, see . */ #ifndef DEFAULTS_H @@ -22,16 +21,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 */