Go to file
2008-11-24 11:21:11 +00:00
dhcpcd-hooks NetBSD sh needs eval here. 2008-11-14 19:18:57 +00:00
mk Default to -O2. 2008-11-05 15:59:36 +00:00
arp.c We are now a BOOTP client also :) 2008-11-19 15:48:18 +00:00
arp.h Add a control socket so that interfaces can be dynamically re-set. 2008-09-03 16:49:28 +00:00
bind.c Close fd's in the child. 2008-11-05 13:56:00 +00:00
bind.h Remove some ints and replace with our option mask. 2008-09-05 07:22:03 +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 Remove logger and exclusively uses syslog instead. This saves almost 2K on NetBSD/amd64 from before changing strerror to %m. 2008-09-05 18:24:34 +00:00
common.c Fix some LINT errors. 2008-11-10 11:15:27 +00:00
common.h Work out __restrict better. 2008-11-24 11:21:11 +00:00
config.h Fix some LINT errors. 2008-11-10 11:15:27 +00:00
configure.c Fix changing routes on BSD. 2008-11-10 08:31:33 +00:00
configure.h Add an event loop. 2008-09-02 13:28:11 +00:00
control.c Fix some LINT errors. 2008-11-10 11:15:27 +00:00
control.h Add a control socket so that interfaces can be dynamically re-set. 2008-09-03 16:49:28 +00:00
dhcp.c BOOTP fixes. Also, we don't write a BOOTP lease file. 2008-11-20 09:57:46 +00:00
dhcp.h Adjust lengths to fit MTU. 2008-11-19 14:53:56 +00:00
dhcpcd-run-hooks.8.in Update bug page. 2008-10-07 20:01:33 +00:00
dhcpcd-run-hooks.in Fix comment. 2008-09-19 23:31:17 +00:00
dhcpcd.8.in Remove the S option from the command line description, #121 2008-11-21 20:00:26 +00:00
dhcpcd.c Plug a leak when rebinding interfaces via the control socket. 2008-11-20 10:50:46 +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 Clarify the clientid option. 2008-11-19 12:50:49 +00:00
dhcpcd.h Fix some LINT errors. 2008-11-10 11:15:27 +00:00
dhcpf.h BOOTP fixes. Also, we don't write a BOOTP lease file. 2008-11-20 09:57:46 +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 static objects are initialized to 0 by default, so don't explicity do this. 2008-10-06 12:45:32 +00:00
eloop.h Fix some LINT errors. 2008-11-10 11:15:27 +00:00
if-bsd.c Fix some LINT errors. 2008-11-10 11:15:27 +00:00
if-linux.c Fix working with linux aliased interfaces again. 2008-11-17 22:50:37 +00:00
if-options.c We no longer send a ClientID by default. This is so we now mirror the kernel DHCP client and can re-use its lease by default. To retain the old behaviour, simply add clientid to dhcpcd.conf. 2008-11-17 17:25:54 +00:00
if-options.h If no lease time is supplied, assume it's infinite. 2008-11-19 14:58:24 +00:00
if-pref.c Fix compile errors. 2008-09-09 19:07:37 +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 When declining a DHCP lease and we have an IPv4LL one, don't re announce our IPv4LL lease. 2008-11-14 09:39:09 +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 Remove #ifdefs to disable specific bits of code. We now build everything - we're small enough :) 2008-07-23 17:06:42 +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 Zeroing each field is cheaper than using memset/memcpy. 2008-11-19 15:01:20 +00:00
net.h Move wireless detection from net.c into if-bsd.c and if-linux.c 2008-09-17 10:32:55 +00:00
README We no longer send a ClientID by default. This is so we now mirror the kernel DHCP client and can re-use its lease by default. To retain the old behaviour, simply add clientid to dhcpcd.conf. 2008-11-17 17:25:54 +00:00
signals.c Add an event loop. 2008-09-02 13:28:11 +00:00
signals.h Add an event loop. 2008-09-02 13:28:11 +00:00

dhcpcd - 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 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.


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/