Go to file
2008-07-10 15:32:03 +00:00
dhcpcd-hooks Add metric= to our env, #93 thanks to Tobias Volk. 2008-06-19 15:58:02 +00:00
mk We need to link to the right libc if installing in / on NetBSD. 2008-07-05 18:41:25 +00:00
.gitignore ignore _dhcpcd.c 2008-07-10 12:53:52 +00:00
bpf-filter.h Allow ARP_REQUESTS through the filter as well so we work with conflicting IPV4LL probes. This requires the timeout to work of a time instead of a timeout. 2008-07-10 11:55:10 +00:00
bpf.c Fix sending of ARP packets. 2008-07-10 15:32:03 +00:00
client.c Tweak define comments. 2008-07-10 13:07:51 +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 whitespace 2008-06-19 21:26:41 +00:00
common.h Remove the signal array stack as our pipe handling should be secure enough now. Also, move the normalize close_on_exec and setting non block. 2008-06-10 22:23:57 +00:00
config.h beta9 2008-07-08 16:08:11 +00:00
configure.c Report the reason we exec the script and don't error on deleting non existant routes on Linux. 2008-07-09 21:15:26 +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 Fix env var ms_classless_static_routes 2008-07-08 16:43:35 +00:00
dhcp.h Add support for vendor encapsulated options. Also, MINIAL define now disables all configurable options. 2008-06-30 16:02:56 +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 the pidfile. 2008-07-09 14:46:29 +00:00
dhcpcd.c Err, I mean X, not Z :) 2008-07-08 16:05:26 +00:00
dhcpcd.conf Disable the requesting of MTU by default as there's a lot of buggy servers out there. Plus we maybe trying to use jumbo frames. 2008-06-13 10:10:00 +00:00
dhcpcd.conf.5.in Add support for vendor encapsulated options. Also, MINIAL define now disables all configurable options. 2008-06-30 16:02:56 +00:00
dhcpcd.h Remove ENABLE_DUID and introduce MINIMAL, which removes all non essential userland options, knocking around 6k off the binary size. 2008-07-04 13:02:33 +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 Send LOG_INFO to the console by default so users know what it's doing a little more. This can be disabled with the new -q, --quiet option. 2008-07-04 12:08:51 +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 Ensure we work if ARP compiled out but requested. 2008-06-30 18:54:31 +00:00
Makefile Allow LIBEXECDIR to inherit from env. 2008-06-18 10:23:16 +00:00
net.c Style. 2008-07-10 15:31:37 +00:00
net.h Add a macro to change a route. 2008-07-09 07:46:55 +00:00
README Encourage use of CPPFLAGS over CFLAGS for extra defines. 2008-07-04 13:30:50 +00:00
signals.c Remove the signal array stack as our pipe handling should be secure enough now. Also, move the normalize close_on_exec and setting non block. 2008-06-10 22:23:57 +00:00
signals.h We should test a specific fd instead of index 0 in a structure. 2008-06-07 00:14:16 +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 size is your thing, you can remove all non-essential userland options
by adding -DMINIMAL to your CPPFLAGS. This currently shaves off around 6k.
You can save a futher 600 bytes or so by using the small make target.

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

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 dhcpcd-hooks are installed by default.
By default we install 01-test, 10-mtu, 20-resolv.conf and 30-hostname.
To add more simply add them in the HOOKSCRIPTS variable.
make HOOKSCRIPTS=50-ntp install


Compatibility
-------------
If you require compatibility with dhcpcd-3 and older style variables,
you can install 50-dhcpcd-compat into the directory $LIBEXECDIR/dhcpcd-hooks
We don't install this by default.
You should also add -DCMDLINE_COMPAT to your CPPFLAGS 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