• Home
Name Date Size #Lines LOC

..--

compat/03-May-2024-592283

dhcpcd-hooks/03-May-2024-573454

mk/03-May-2024-232138

Android.mkD03-May-20241.6 KiB5940

CleanSpec.mkD03-May-20242.2 KiB500

MODULE_LICENSE_BSD_LIKED03-May-20240

MakefileD03-May-20243.4 KiB12895

Makefile.incD03-May-2024125 106

NOTICED03-May-20242.2 KiB5040

READMED03-May-20242.9 KiB8163

ThirdPartyProject.propD03-May-2024282 1110

android.confD03-May-2024190 72

arp.cD03-May-20248.8 KiB309246

arp.hD03-May-20241.9 KiB5017

bind.cD03-May-20246.8 KiB235192

bind.hD03-May-20241.5 KiB4010

bpf-filter.hD03-May-20244.3 KiB10237

bpf.cD03-May-20245.4 KiB207159

client.cD03-May-202448.1 KiB1,8551,581

client.hD03-May-20241.5 KiB365

common.cD03-May-20246 KiB276197

common.hD03-May-20242.7 KiB8345

config.hD03-May-2024438 1915

config.mkD03-May-2024592 2119

configure.cD03-May-202419 KiB784646

configure.hD03-May-20241.6 KiB399

control.cD03-May-20244.4 KiB209159

control.hD03-May-20241.6 KiB4614

defs.hD03-May-20241.9 KiB5323

dhcp.cD03-May-202431.5 KiB1,4121,188

dhcp.hD03-May-20246.9 KiB202138

dhcpcd-run-hooksD03-May-20241,009 3222

dhcpcd-run-hooks.8D03-May-20244.6 KiB138137

dhcpcd-run-hooks.8.inD03-May-20244.6 KiB138137

dhcpcd-run-hooks.inD03-May-20243.9 KiB198153

dhcpcd.8D03-May-202417.1 KiB586585

dhcpcd.8.inD03-May-202417 KiB586585

dhcpcd.cD03-May-202450.7 KiB2,1231,828

dhcpcd.confD03-May-2024831 247

dhcpcd.conf.5D03-May-20249.2 KiB297296

dhcpcd.conf.5.inD03-May-20249.2 KiB297296

dhcpcd.hD03-May-20243.6 KiB145100

duid.cD03-May-20242.9 KiB10161

duid.hD03-May-20241.5 KiB365

eloop.cD03-May-20248 KiB367284

eloop.hD03-May-20242.1 KiB5219

if-bsd.cD03-May-202410.7 KiB425360

if-linux-wireless.cD03-May-20242.9 KiB9038

if-linux.cD03-May-202413.5 KiB579479

if-options.cD03-May-202422 KiB914821

if-options.hD03-May-20243.9 KiB12480

if-pref.cD03-May-20243.2 KiB10966

if-pref.hD03-May-20241.5 KiB355

ifaddrs.cD03-May-20243.8 KiB147115

ifaddrs.hD03-May-20241.1 KiB3520

ipv4ll.cD03-May-20244.1 KiB157115

ipv4ll.hD03-May-20241.5 KiB345

logger.cD03-May-20242.7 KiB10567

logger.hD03-May-20241.7 KiB4412

lpf.cD03-May-20244.5 KiB169126

net.cD03-May-202417 KiB775631

net.hD03-May-20245.1 KiB15698

platform-bsd.cD03-May-20241.8 KiB5118

platform-linux.cD03-May-20242.6 KiB10570

platform.hD03-May-20241.5 KiB344

showlease.cD03-May-20249 KiB354314

signals.cD03-May-20243.1 KiB12574

signals.hD03-May-20241.5 KiB377

README

1dhcpcd - DHCP client daemon
2Copyright (c) 2006-2010 Roy Marples <roy@marples.name>
3
4
5Installation
6------------
7./configure; make; make install
8man dhcpcd for command line options
9man dhcpcd.conf for configuration options
10man dhcpcd-run-hooks to learn how to hook scripts into dhcpcd events
11
12
13Notes
14-----
15If you're cross compiling you may need set the platform if OS is different
16from the host.
17--target=sparc-sun-netbsd5.0
18
19If you're building for an MMU-less system where fork() does not work, you
20should ./configure --disable-fork.
21This also puts the --no-background flag on and stops the --background flag
22from working.
23
24You can change the default dirs with these knobs.
25For example, to satisfy FHS compliance you would do this:-
26./configure --libexecdir=/lib/dhcpcd dbdir=/var/lib/dhcpcd
27
28We now default to using -std=c99. For 64-bit linux, this always works, but
29for 32-bit linux it requires either gnu99 or a patch to asm/types.h.
30Most distros patch linux headers so this should work fine.
31linux-2.6.24 finally ships with a working 32-bit header.
32If your linux headers are older, or your distro hasn't patched them you can
33set CSTD=gnu99 to work around this.
34
35Some BSD systems do not allow the manipulation of automatically added subnet
36routes. You can find discussion here:
37    http://mail-index.netbsd.org/tech-net/2008/12/03/msg000896.html
38BSD systems where this has been fixed are:
39    NetBSD-5.0
40
41We try and detect how dhcpcd should interact with system services during the
42configure stage. If we cannot auto-detect how do to this, or it is wrong then
43you can change this by passing shell commands to --service-exists,
44--servicecmd and optionally --servicestatus.
45
46To prepare dhcpcd for import into a platform source tree (like NetBSD)
47you can use the make import target to create /tmp/dhcpcd-$version and
48populate it with all the source files and hooks needed.
49In this instance, you may wish to disable some configured tests when
50the binary has to run on older versions which lack support, such as getline.
51./configure --without-getline
52
53
54Hooks
55-----
56Not all the hooks in dhcpcd-hooks are installed by default.
57By default we install 01-test, 10-mtu, 20-resolv.conf,
5829-lookup-hostname and 30-hostname.
59The default dhcpcd.conf disables the lookup-hostname hook by default.
60The configure program attempts to find hooks for systems you have installed.
61To add more simply
62./configure -with-hook=ntp.conf
63
64
65Compatibility
66-------------
67dhcpcd-5.0 is only fully command line compatible with dhcpcd-4.0
68For compatibility with older versions, use dhcpcd-4.0
69
70dhcpcd no longer sends a default ClientID for ethernet interfaces.
71This is so we can re-use the address the kernel DHCP client found.
72To retain the old behaviour of sending a default ClientID based on the
73hardware address for interface, simply add the keyword clientid to dhcpcd.conf.
74
75
76ChangeLog
77---------
78We no longer supply a ChangeLog.
79However, you're more than welcome to read the commit log at
80http://roy.marples.name/projects/dhcpcd/log/
81