Go to file
Fabrice Fontaine dcfd7a23f0
src/privsep-linux: fix build on sparc (#26)
Fix the following build failure:

privsep-linux.c:203: warning: "AUDIT_ARCH_SPARC64" redefined
  203 | #    define AUDIT_ARCH_SPARC64
      |
In file included from privsep-linux.c:35:
/srv/storage/autobuild/run/instance-0/output-1/host/sparc64-buildroot-linux-gnu/sysroot/usr/include/linux/audit.h:392: note: this is the location of the previous definition
  392 | #define AUDIT_ARCH_SPARC64 (EM_SPARCV9|__AUDIT_ARCH_64BIT)
      |
In file included from privsep-linux.c:36:
privsep-linux.c:215:38: error: 'SECCOMP_AUDIT_ARCH' undeclared here (not in a function); did you mean 'SECCOMP_ALLOW_ARG'?
  215 |  BPF_JUMP(BPF_JMP + BPF_JEQ + BPF_K, SECCOMP_AUDIT_ARCH, 1, 0),
      |                                      ^~~~~~~~~~~~~~~~~~

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
2021-02-05 08:25:12 +00:00
compat Change copyright on setproctitle.h 2020-10-09 20:38:48 +01:00
hooks A belated welcome to 2021 2021-01-31 10:33:21 +00:00
src src/privsep-linux: fix build on sparc (#26) 2021-02-05 08:25:12 +00:00
tests Fix tests 2021-02-03 20:52:01 +00:00
.gitignore linux: the default hostname is (none) 2020-03-31 19:45:17 +01:00
BUILDING.md hooks: add NOCARRIER_ROAMING reason 2020-12-27 19:53:31 +00:00
config-null.mk Compile embedded in without a config 2014-04-23 19:09:03 +00:00
configure import-src: adjust build target so all .in files are pre-built 2021-01-30 11:46:06 +00:00
iconfig.mk make: support gmake-3 again. 2019-02-11 18:02:15 +00:00
LICENSE A belated welcome to 2021 2021-01-31 10:33:21 +00:00
Makefile make: clean before import-src 2020-07-02 14:05:19 +01:00
Makefile.inc install: Create DBDIR with mode 0750 by default 2020-09-15 11:45:21 +01:00
README.md README: Remove old reference to db dir needing user permissions 2020-09-11 15:07:19 +01:00

dhcpcd

dhcpcd is a DHCP and a DHCPv6 client. It's also an IPv4LL (aka ZeroConf) client. In layman's terms, dhcpcd runs on your machine and silently configures your computer to work on the attached networks without trouble and mostly without configuration.

If you're a desktop user then you may also be interested in Network Configurator (dhcpcd-ui) which sits in the notification area and monitors the state of the network via dhcpcd. It also has a nice configuration dialog and the ability to enter a pass phrase for wireless networks.

dhcpcd may not be the only daemon running that wants to configure DNS on the host, so it uses openresolv to ensure they can co-exist.

See BUILDING.md for how to build dhcpcd.

If you wish to file a support ticket or help out with development, please visit the Development Area or join the mailing list below.

Configuration

You should read the dhcpcd.conf man page and put your options into /etc/dhcpcd.conf. The default configuration file should work for most people just fine. Here it is, in case you lose it.

# A sample configuration for dhcpcd.
# See dhcpcd.conf(5) for details.

# Allow users of this group to interact with dhcpcd via the control socket.
#controlgroup wheel

# Inform the DHCP server of our hostname for DDNS.
hostname

# Use the hardware address of the interface for the Client ID.
#clientid
# or
# Use the same DUID + IAID as set in DHCPv6 for DHCPv4 ClientID as per RFC4361.
# Some non-RFC compliant DHCP servers do not reply with this set.
# In this case, comment out duid and enable clientid above.
duid

# Persist interface configuration when dhcpcd exits.
persistent

# Rapid commit support.
# Safe to enable by default because it requires the equivalent option set
# on the server to actually work.
option rapid_commit

# A list of options to request from the DHCP server.
option domain_name_servers, domain_name, domain_search, host_name
option classless_static_routes
# Respect the network MTU. This is applied to DHCP routes.
option interface_mtu

# Most distributions have NTP support.
#option ntp_servers

# A ServerID is required by RFC2131.
require dhcp_server_identifier

# Generate SLAAC address using the Hardware Address of the interface
#slaac hwaddr
# OR generate Stable Private IPv6 Addresses based from the DUID
slaac private

The dhcpcd man page has a lot of the same options and more, which only apply to calling dhcpcd from the command line.

Compatibility

dhcpcd-5 is only fully command line compatible with dhcpcd-4 For compatibility with older versions, use dhcpcd-4

Upgrading

dhcpcd-7 defaults the database directory to /var/db/dhcpcd instead of /var/db and now stores dhcpcd.duid and dhcpcd.secret in there instead of in /etc.

dhcpcd-9 defaults the run directory to /var/run/dhcpcd instead of /var/run and the prefix of dhcpcd has been removed from the files.

ChangeLog

We no longer supply a ChangeLog. However, you're more than welcome to read the commit log and archived release announcements.