Go to file
2009-04-12 19:16:57 +00:00
dhcpcd-hooks Use state dir for tmp files and try to preserve orig file more. 2009-02-26 19:31:41 +00:00
mk Finally fix compile on vanilla kernel headers. 2009-02-24 12:38:02 +00:00
arp.c Add the ability to arping an address and select a profile based on the 2009-03-31 08:35:38 +00:00
arp.h Add the ability to arping an address and select a profile based on the 2009-03-31 08:35:38 +00:00
bind.c Move dhcpf.h into dhcp.h were it belongs 2009-03-19 22:45:57 +00:00
bind.h More style updates. 2009-02-12 01:09:37 +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 Enforce NetBSD KNF style more 2009-02-11 17:56:22 +00:00
common.c More style updates. 2009-02-12 01:09:37 +00:00
common.h More style updates. 2009-02-12 01:09:37 +00:00
config.h Release dhcpcd-4.99.16 2009-04-02 09:32:54 +00:00
configure.c Add the ability to arping an address and select a profile based on the 2009-03-31 08:35:38 +00:00
configure.h We can now detected primary addresses added or changed in BSD. 2009-03-19 17:52:12 +00:00
control.c Enforce NetBSD KNF style more 2009-02-11 17:56:22 +00:00
control.h Remove the limit for the number of connections to the control socket. 2009-01-12 16:39:01 +00:00
dhcp.c Improve PTP INFORM support some more. 2009-03-23 22:02:37 +00:00
dhcp.h Improve PTP INFORM support some more. 2009-03-23 22:02:37 +00:00
dhcpcd-run-hooks.8.in Fail the interface when we need a clientid. 2009-03-23 11:15:35 +00:00
dhcpcd-run-hooks.in Use state dir for tmp files and try to preserve orig file more. 2009-02-26 19:31:41 +00:00
dhcpcd.8.in Default point to point interfaces to static if not inform. 2009-03-23 20:10:02 +00:00
dhcpcd.c We should ignore DHCP messages without a ServerID, #166. 2009-04-12 19:16:57 +00:00
dhcpcd.conf dhcpcd should not send hostname by default. 2009-01-29 11:21:16 +00:00
dhcpcd.conf.5.in Add the ability to arping an address and select a profile based on the 2009-03-31 08:35:38 +00:00
dhcpcd.h We need a bit more space for the profile name. 2009-03-31 11:01:25 +00:00
duid.c get_line now uses a single buffer, strips leading space and skips comments. This reduces malloc usage slightly and gives a cleaner API at the expense of a slight bss increase. 2008-11-05 13:57:54 +00:00
duid.h Add an event loop. 2008-09-02 13:28:11 +00:00
eloop.c Optimize allocation a little. 2009-02-25 07:51:25 +00:00
eloop.h Fix some LINT errors. 2008-11-10 11:15:27 +00:00
if-bsd.c dhcpcd CAN work on IEEE FireWire interfaces. 2009-03-23 10:09:10 +00:00
if-linux-wireless.c Finally fix compile on vanilla kernel headers. 2009-02-24 12:38:02 +00:00
if-linux.c We should not work with lo by default. 2009-03-23 07:43:31 +00:00
if-options.c Add the ability to arping an address and select a profile based on the 2009-03-31 08:35:38 +00:00
if-options.h Add the ability to arping an address and select a profile based on the 2009-03-31 08:35:38 +00:00
if-pref.c We updated these files this year. 2009-01-28 10:29:00 +00:00
if-pref.h Sort interfaces according to preference and pass this to dhcpcd-run-hooks so we can prefer configs. 2008-09-09 17:07:48 +00:00
ipv4ll.c Enforce NetBSD KNF style more 2009-02-11 17:56:22 +00:00
ipv4ll.h Add a control socket so that interfaces can be dynamically re-set. 2008-09-03 16:49:28 +00:00
lpf.c Fix up some more formatting. 2009-02-12 10:07:30 +00:00
Makefile Sort interfaces according to preference and pass this to dhcpcd-run-hooks so we can prefer configs. 2008-09-09 17:07:48 +00:00
net.c Allow dhcpcd to run on loopback interfaces if specified. 2009-03-20 15:26:46 +00:00
net.h We can now detected primary addresses added or changed in BSD. 2009-03-19 17:52:12 +00:00
README We updated these files this year. 2009-01-28 10:29:00 +00:00
signals.c We should handle SIGUSR1 correctly. 2009-03-20 10:33:09 +00:00
signals.h Add an event loop. 2008-09-02 13:28:11 +00:00

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


Installation
------------
Then just make; make install
man dhcpcd for command line options
man dhcpcd.conf for configuration options
man dhcpcd-run-hooks to learn how to hook scripts into dhcpcd events


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 an MMU-less system where fork() does not work, you
should add -DTHERE_IS_NO_FORK to your CPPFLAGS.
This also puts the --no-background flag on and stops the --background flag
from working.

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.

Some BSD systems do not allow the manipulation of automatically added subnet
routes. You can find discussion here:
    http://mail-index.netbsd.org/tech-net/2008/12/03/msg000896.html
BSD systems where this has been fixed are:
    NetBSD-5.99.6


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
-------------
dhcpcd-5.0 is only fully command line compatible with dhcpcd-4.0
For compatibility with older versions, use dhcpcd-4.0

dhcpcd no longer sends a default ClientID for ethernet interfaces.
This is so we can re-use the address the kernel DHCP client found.
To retain the old behaviour of sending a default ClientID based on the
hardware address for interface, simply add the keyword clientid to dhcpcd.conf.


ChangeLog
---------
We no longer supply a ChangeLog.
However, you're more than welcome to read the commit log at
http://roy.marples.name/projects/dhcpcd/log/