Go to file
2008-05-27 11:26:24 +00:00
dhcpcd-hooks We source the hooks, so use FILES instead of SCRIPTS. 2008-05-27 11:26:24 +00:00
mk Installing to FHS dirs just for Linux is silly, especially as GNU autotools don't by default. With installing to the same dirs regardless of OS it also makes my life easier. 2008-05-22 09:23:03 +00:00
.gitignore Fix install. 2008-05-24 17:45:38 +00:00
bpf-filter.h Put my code at the top and UNCONST filters in bpf.c 2008-05-22 18:16:22 +00:00
bpf.c Put my code at the top and UNCONST filters in bpf.c 2008-05-22 18:16:22 +00:00
client.c Fix a signal race when daemonising. 2008-05-26 19:19:11 +00:00
client.h Change code style to match the BSDs in the hope the might adpot it instead of dhclient. 2008-03-20 16:47:51 +00:00
common.c realloc -> xrealloc 2008-05-19 13:40:39 +00:00
common.h Create a real arc4linux function so we don't have to visible seed random in dhcpcd main. 2008-05-19 09:16:55 +00:00
config.h dhcpcd-4.0.0-beta5 2008-05-24 17:47:44 +00:00
configure.c Add a -C, --nohook option to skip the running of hook scripts. Makes it easier to just not do any configuring of resolv.conf 2008-05-20 16:05:15 +00:00
configure.h When we explictly don't want an option, don't put it in the env. 2008-05-15 08:48:17 +00:00
dhcp.c Apparently some DHCP servers return NULL strings, Gentoo #222381. 2008-05-21 10:40:56 +00:00
dhcp.h Don't prefix functions with _ 2008-05-20 12:47:16 +00:00
dhcpcd-run-hooks.8.in Move dhcpcd.sh to dhcpcd-run-hooks and remove .sh suffixes 2008-05-24 17:15:14 +00:00
dhcpcd-run-hooks.in Move dhcpcd.sh to dhcpcd-run-hooks and remove .sh suffixes 2008-05-24 17:15:14 +00:00
dhcpcd.8.in Document --script. 2008-05-24 17:40:38 +00:00
dhcpcd.c Move NO_FORK code down so options is initialised. 2008-05-27 09:14:04 +00:00
dhcpcd.conf Move dhcpcd.sh to dhcpcd-run-hooks and remove .sh suffixes 2008-05-24 17:15:14 +00:00
dhcpcd.conf.5.in Move dhcpcd.sh to dhcpcd-run-hooks and remove .sh suffixes 2008-05-24 17:15:14 +00:00
dhcpcd.h Add a -C, --nohook option to skip the running of hook scripts. Makes it easier to just not do any configuring of resolv.conf 2008-05-20 16:05:15 +00:00
if-bsd.c Style. 2008-05-15 15:48:15 +00:00
if-linux.c Our ctype calls should always use unsigned. 2008-04-17 09:57:19 +00:00
logger.c Don't bother appending log level to stdout, save a few bytes. 2008-05-23 07:31:17 +00:00
logger.h Change code style to match the BSDs in the hope the might adpot it instead of dhclient. 2008-03-20 16:47:51 +00:00
lpf.c Pull ARP replies correctly. 2008-05-26 09:58:36 +00:00
Makefile Fix subdir 2008-05-24 17:37:15 +00:00
net.c Use the write length. 2008-05-27 09:14:33 +00:00
net.h Use constant BPF structures and defines to alter the data instead of functions. Smaller code :) 2008-05-22 13:59:33 +00:00
README Installing to FHS dirs just for Linux is silly, especially as GNU autotools don't by default. With installing to the same dirs regardless of OS it also makes my life easier. 2008-05-22 09:23:03 +00:00
signals.c Fix compile. 2008-05-26 19:48:46 +00:00
signals.h Fix a signal race when daemonising. 2008-05-26 19:19:11 +00:00

dhcpcd-4 - DHCP client daemon
Copyright 2006-2008 Roy Marples <roy@marples.name>


Installation
------------
Edit config.h to match your building requirements.
Then just make; make install
man dhcpcd for command line options


Notes
-----
If you're cross compiling you may need to set the below knobs to avoid
automatic tests.
OS=BSD | Linux

If you're building for a NOMMU system where fork() does not work, you should
add -DTHERE_IS_NO_FORK to your CFLAGS.

You can change the default dir with these knobs.
For example, to satisfy FHS compliance you would do this:-
LIBEXECDIR=/lib/dhcpcd
DBDIR=/var/lib/dhcpcd

We now default to using -std=c99. For 64-bit linux, this always works, but
for 32-bit linux it requires either gnu99 or a patch to asm/types.h.
Most distros patch linux headers so this should work fine.
linux-2.6.24 finally ships with a working 32-bit header.
If your linux headers are older, or your distro hasn't patched them you can
set CSTD=gnu99 to work around this.


Hooks
-----
Not all the hooks in hook.d are installed by default.
By default we install 01-test.sh, 10-resolv.conf.sh and 15-hostname.sh.
To add more simply add them in the HOOKSCRIPTS variable.
make HOOKSCRIPTS=50-ntp.sh install


Compatibility
-------------
If you require compatibility with dhcpcd-3 and older style variables,
you can install 50-dhcpcd-compat.sh into the directory $LIBEXECDIR/dhcpcd.hook.d
We don't install this by default.
You should also add -DCMDLINE_COMPAT to your CFLAGS if you need to be fully
commandline compatible with prior versions.

dhcpcd-3 enabled DUID support by default - this has changed in dhcpcd-4.
You can enable it via the --duid, -D command line option or by using the
duid directive in dhcpcd.conf.
If CMDLINE_COMPAT is defined the we renable DUID support by default IF
the dhcpcd.duid file exits. This keeps the clients working as they were,
which is good.

dhcpcd-4 is NOT fully commandline compatible with dhcpcd-2 and older and
changes the meaning of some options.


ChangeLog
---------
We no longer supply a ChangeLog.
However, you're more than welcome to read the git commit comments at
http://git.marples.name/?p=dhcpcd/.git;a=summary