2006-11-28 04:23:22 +08:00
|
|
|
/*
|
|
|
|
* dhcpcd - DHCP client daemon -
|
2007-05-11 00:08:49 +08:00
|
|
|
* Copyright 2006-2007 Roy Marples <uberlord@gentoo.org>
|
|
|
|
*
|
2006-11-28 04:23:22 +08:00
|
|
|
* dhcpcd is an RFC2131 compliant DHCP client daemon.
|
|
|
|
*
|
|
|
|
* This 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
|
|
|
|
* (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., 675 Mass Ave, Cambridge, MA 02139, USA.
|
|
|
|
*/
|
|
|
|
|
2007-05-11 00:08:49 +08:00
|
|
|
#ifndef CONFIG_H
|
|
|
|
#define CONFIG_H
|
|
|
|
|
|
|
|
/* You can enable/disable various chunks of optional code here.
|
|
|
|
* You would only do this to try and shrink the end binary if dhcpcd
|
|
|
|
* was running on a low memory device */
|
|
|
|
|
|
|
|
#define ENABLE_ARP
|
|
|
|
#define ENABLE_NTP
|
|
|
|
#define ENABLE_NIS
|
|
|
|
#define ENABLE_INFO
|
|
|
|
/* Define this to enable some compatability with 1.x and 2.x info files */
|
|
|
|
// #define ENABLE_INFO_COMPAT
|
|
|
|
|
2007-07-18 19:26:59 +08:00
|
|
|
/* IPV4LL, aka ZeroConf, aka APIPA, aka RFC 3927.
|
|
|
|
* Needs ARP. */
|
|
|
|
#define ENABLE_IPV4LL
|
|
|
|
|
2007-05-11 00:08:49 +08:00
|
|
|
/* We will auto create a DUID_LLT file if it doesn't exist.
|
|
|
|
* You can always create your own DUID file that just contains the
|
|
|
|
* hex string that represents the DUID.
|
|
|
|
* See RFC 3315 for details on this. */
|
|
|
|
#define ENABLE_DUID
|
|
|
|
|
2007-09-04 20:48:40 +08:00
|
|
|
/* Some systems do not have a working fork.
|
|
|
|
* The Makefile will attempt to work it out, but if it fails to feel free to
|
|
|
|
* define it here. */
|
|
|
|
// #define THERE_IS_NO_FORK
|
|
|
|
|
2007-07-30 20:45:31 +08:00
|
|
|
/* Packname name and pathname definitions.
|
|
|
|
* NOTE: The service restart commands are Gentoo specific and will
|
|
|
|
* probably need to be adapted for your OS. */
|
2006-11-28 04:23:22 +08:00
|
|
|
|
2007-04-12 21:12:25 +08:00
|
|
|
#define PACKAGE "dhcpcd"
|
2006-11-28 04:23:22 +08:00
|
|
|
|
2007-04-12 21:12:25 +08:00
|
|
|
#define RESOLVCONF "/sbin/resolvconf"
|
2006-12-05 17:38:10 +08:00
|
|
|
|
2007-04-12 21:12:25 +08:00
|
|
|
#define ETCDIR "/etc"
|
|
|
|
#define RESOLVFILE ETCDIR "/resolv.conf"
|
2007-01-17 01:54:07 +08:00
|
|
|
|
2007-04-12 21:12:25 +08:00
|
|
|
#define NISFILE ETCDIR "/yp.conf"
|
|
|
|
#define NISSERVICE ETCDIR "/init.d/ypbind"
|
2007-07-30 20:45:31 +08:00
|
|
|
#define NISRESTARTARGS "--nodeps", "--quiet", "conditionalrestart"
|
2007-01-17 01:54:07 +08:00
|
|
|
|
2007-04-12 21:12:25 +08:00
|
|
|
#define NTPFILE ETCDIR "/ntp.conf"
|
|
|
|
#define NTPDRIFTFILE ETCDIR "/ntp.drift"
|
|
|
|
#define NTPLOGFILE "/var/log/ntp.log"
|
|
|
|
#define NTPSERVICE ETCDIR "/init.d/ntpd"
|
2007-07-30 20:45:31 +08:00
|
|
|
#define NTPRESTARTARGS "--nodeps", "--quiet", "conditionalrestart"
|
2007-01-17 01:54:07 +08:00
|
|
|
|
2007-04-12 21:12:25 +08:00
|
|
|
#define OPENNTPFILE ETCDIR "/ntpd.conf"
|
|
|
|
#define OPENNTPSERVICE ETCDIR "/init.d/ntpd"
|
2007-07-30 20:45:31 +08:00
|
|
|
#define OPENNTPRESTARTARGS "--nodeps", "--quiet", "conditionalrestart"
|
2007-04-03 15:03:04 +08:00
|
|
|
|
2007-04-12 21:12:25 +08:00
|
|
|
#define DEFAULT_SCRIPT ETCDIR "/" PACKAGE ".sh"
|
2006-11-28 04:23:22 +08:00
|
|
|
|
2007-04-12 21:12:25 +08:00
|
|
|
#define STATEDIR "/var"
|
|
|
|
#define PIDFILE STATEDIR "/run/" PACKAGE "-%s.pid"
|
2006-11-28 04:23:22 +08:00
|
|
|
|
2007-04-12 21:12:25 +08:00
|
|
|
#define CONFIGDIR STATEDIR "/lib/" PACKAGE
|
|
|
|
#define INFOFILE CONFIGDIR "/" PACKAGE "-%s.info"
|
2006-11-28 04:23:22 +08:00
|
|
|
|
2007-05-11 00:08:49 +08:00
|
|
|
#define DUIDFILE CONFIGDIR "/" PACKAGE ".duid"
|
|
|
|
|
2006-11-28 04:23:22 +08:00
|
|
|
#endif
|