2002-10-14 21:41:28 +00:00
|
|
|
udhcp server/client package readme
|
|
|
|
-------------------------
|
|
|
|
|
|
|
|
The udhcp server/client package is primarily geared towards embedded
|
|
|
|
systems. It does however, strive to be fully functional, and RFC
|
|
|
|
compliant.
|
|
|
|
|
|
|
|
|
|
|
|
compile time options
|
|
|
|
-------------------
|
|
|
|
|
|
|
|
The Makefile contains three of the compile time options:
|
2004-03-15 08:29:22 +00:00
|
|
|
|
2003-12-18 22:25:38 +00:00
|
|
|
UDHCP_DEBUG: If UDHCP_DEBUG is defined, udhcpd will output extra
|
|
|
|
debugging output, compile with -g, and not fork to the background when
|
|
|
|
run.
|
|
|
|
UDHCP_SYSLOG: If UDHCP_SYSLOG is defined, udhcpd will log all its
|
|
|
|
messages syslog, otherwise, it will attempt to log them to stdout.
|
2004-03-15 08:29:22 +00:00
|
|
|
|
2002-10-14 21:41:28 +00:00
|
|
|
COMBINED_BINARY: If COMBINED_BINARY is define, one binary, udhcpd,
|
|
|
|
is created. If called as udhcpd, the dhcp server will be started.
|
|
|
|
If called as udhcpc, the dhcp client will be started.
|
2004-03-15 08:29:22 +00:00
|
|
|
|
2003-12-18 22:25:38 +00:00
|
|
|
dhcpd.h contains the other three compile time options:
|
2004-03-15 08:29:22 +00:00
|
|
|
|
2002-10-14 21:41:28 +00:00
|
|
|
LEASE_TIME: The default lease time if not specified in the config
|
|
|
|
file.
|
2003-12-18 22:25:38 +00:00
|
|
|
|
|
|
|
LEASES_FILE: The default file for storing leases.
|
2004-03-15 08:29:22 +00:00
|
|
|
|
2002-10-14 21:41:28 +00:00
|
|
|
DHCPD_CONFIG_FILE: The defualt config file to use.
|
2004-03-15 08:29:22 +00:00
|
|
|
|
2002-10-14 21:41:28 +00:00
|
|
|
options.c contains a set of dhcp options for the client:
|
|
|
|
|
|
|
|
name[10]: The name of the option as it will appear in scripts
|
2004-03-15 08:29:22 +00:00
|
|
|
|
2002-10-14 21:41:28 +00:00
|
|
|
flags: The type of option, as well as if it will be requested
|
|
|
|
by the client (OPTION_REQ)
|
|
|
|
|
|
|
|
code: The DHCP code for this option
|
|
|
|
|
2002-10-31 19:21:27 +00:00
|
|
|
|
2002-10-14 21:41:28 +00:00
|
|
|
busybox drop-in
|
|
|
|
--------------
|
|
|
|
udhcp is now a drop-in component for busybox (http://busybox.net).
|
|
|
|
To update busybox to the latest revision, simply do a:
|
|
|
|
|
2004-03-15 08:29:22 +00:00
|
|
|
cp *.[ch] README AUTHORS COPYING ChangeLog TODO \
|
2002-10-14 21:41:28 +00:00
|
|
|
<busybox_source>/networking/udhcp
|
|
|
|
|
|
|
|
The only two files udhcp does not provide are config.in and
|
|
|
|
Makefile.in, so these may need to be updated from time to time.
|
2002-10-31 19:21:27 +00:00
|
|
|
|