diff options
| author | Roy Marples <roy@marples.name> | 2007-05-10 16:08:49 +0000 |
|---|---|---|
| committer | Roy Marples <roy@marples.name> | 2007-05-10 16:08:49 +0000 |
| commit | c3d07f4c70c363a63fc549364b2f11f276f2056b (patch) | |
| tree | 52c94b9ec375f4957ac5308ff4e1afd523e810ba /config.h | |
| parent | 3b963f04a7bd0e30d4944e752a96edc8a5d41e29 (diff) | |
| download | dhcpcd-c3d07f4c70c363a63fc549364b2f11f276f2056b.tar.xz | |
Add support for RFC 4361
Diffstat (limited to 'config.h')
| -rw-r--r-- | config.h | 75 |
1 files changed, 75 insertions, 0 deletions
diff --git a/config.h b/config.h new file mode 100644 index 00000000..df1ca3ad --- /dev/null +++ b/config.h @@ -0,0 +1,75 @@ +/* + * dhcpcd - DHCP client daemon - + * Copyright 2006-2007 Roy Marples <uberlord@gentoo.org> + * + * 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. + */ + +#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 + +/* 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 + +/* Packname name and pathname definitions */ + +#define PACKAGE "dhcpcd" + +#define RESOLVCONF "/sbin/resolvconf" + +#define ETCDIR "/etc" +#define RESOLVFILE ETCDIR "/resolv.conf" + +#define NISFILE ETCDIR "/yp.conf" +#define NISSERVICE ETCDIR "/init.d/ypbind" +#define NISRESTARTARGS "--quiet", "conditionalrestart" + +#define NTPFILE ETCDIR "/ntp.conf" +#define NTPDRIFTFILE ETCDIR "/ntp.drift" +#define NTPLOGFILE "/var/log/ntp.log" +#define NTPSERVICE ETCDIR "/init.d/ntpd" +#define NTPRESTARTARGS "--quiet", "conditionalrestart" + +#define OPENNTPFILE ETCDIR "/ntpd.conf" +#define OPENNTPSERVICE ETCDIR "/init.d/ntpd" +#define OPENNTPRESTARTARGS "--quiet", "conditionalrestart" + +#define DEFAULT_SCRIPT ETCDIR "/" PACKAGE ".sh" + +#define STATEDIR "/var" +#define PIDFILE STATEDIR "/run/" PACKAGE "-%s.pid" + +#define CONFIGDIR STATEDIR "/lib/" PACKAGE +#define INFOFILE CONFIGDIR "/" PACKAGE "-%s.info" + +#define DUIDFILE CONFIGDIR "/" PACKAGE ".duid" + +#endif |
