Go to file
2008-06-04 16:36:12 +00:00
dhcpcd-hooks Add a sample NetworkManager hook script. 2008-06-04 16:36:12 +00:00
mk Should clean the core files too. 2008-05-29 19:05:28 +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 Don't request the last tried IPV4LL address. 2008-05-30 09:51:45 +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 DISABLE_FEATURE defines now don't enable automatic ENABLE_FEATURE defines. 2008-05-29 08:26:57 +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 Remove pointless header. 2008-05-29 15:08:39 +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 Add a note about dhcpcd not fully supporting RFC 3927 yet. 2008-05-30 10:51:56 +00:00
dhcpcd.c persist addresses for INFORM 2008-05-29 16:57:47 +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 We should not be setting IFF_RUNNING - that's the job of the interface driver. 2008-06-03 22:21:51 +00:00
net.h Make the timings more random by using the full range of poll timeout. 2008-05-29 19:26:16 +00:00
README Use new names. 2008-05-27 12:41:42 +00:00
signals.c Replace the signal clear with a pipe so child can notify parent when to exit. 2008-05-27 19:06:48 +00:00
signals.h Replace the signal clear with a pipe so child can notify parent when to exit. 2008-05-27 19:06:48 +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