Go to file
2008-11-15 11:24:26 +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 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
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 Fix some LINT errors. 2008-11-10 11:15:27 +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 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
dhcp.h Pack the dhcp structure. 2008-09-05 11:54:44 +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 Update bug page. 2008-10-07 20:01:33 +00:00
dhcpcd.c Fork into background even with no interfaces IF we are asked to background AND have link detection. 2008-11-15 11:24: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 Update bug page. 2008-10-07 20:01:33 +00:00
dhcpcd.h Fix some LINT errors. 2008-11-10 11:15:27 +00:00
dhcpf.h Add an event loop. 2008-09-02 13:28:11 +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 Parens. 2008-11-05 14:36:23 +00:00
if-options.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
if-options.h Allow the release keyword in dhcpcd.conf to release the lease on shutdown. 2008-09-16 13:17:23 +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 Fix some LINT errors. 2008-11-10 11:15:27 +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 Update change log location 2008-10-22 08:29:53 +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-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 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-4.1 is only fully command line compatible with dhcpcd-4.0
For compatibility with older versions, use dhcpcd-4.0


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/