hush/networking/udhcp
Eric Andersen 28a6afe975 Roy Walker writes:
Here is a patch against the current subversion repository, that makes
udhcpc have an adjustable timeout.  Works for both foreground and before
it drops to the background.  This brings it more in-line with ISC dhcpc.

Use like so:
udhcpc --timeout=10 ...
or
udhcpc -T 10 ...

Still shooting for 1.1.1 this month?  Would really be great if you could
get this in that release.

Please give credit to Paul Pacheco - ppacheco@gmail.com.
2006-03-20 17:37:00 +00:00
..
arpping.c just whitespace 2006-01-25 00:08:53 +00:00
arpping.h - add platform.h. 2006-01-22 22:55:11 +00:00
AUTHORS
ChangeLog
clientpacket.c just whitespace 2006-01-25 00:08:53 +00:00
clientpacket.h
clientsocket.c
clientsocket.h
common.c
common.h just whitespace 2006-01-25 00:08:53 +00:00
Config.in
COPYING
dhcpc.c Roy Walker writes: 2006-03-20 17:37:00 +00:00
dhcpc.h Roy Walker writes: 2006-03-20 17:37:00 +00:00
dhcpd.c just whitespace 2006-01-25 00:08:53 +00:00
dhcpd.h just whitespace 2006-01-25 00:08:53 +00:00
dumpleases.c - add platform.h. 2006-01-22 22:55:11 +00:00
files.c Cleanup patch from Denis Vlasenko. Mostly variants of removing the if(x) 2006-03-01 16:39:45 +00:00
files.h remove 1 exported 2005-09-23 10:44:02 +00:00
frontend.c
leases.c just whitespace 2006-01-25 00:08:53 +00:00
leases.h
libbb_udhcp.h just whitespace 2006-01-25 00:08:53 +00:00
Makefile - use absolute path for top_builddir and top_srcdir. 2006-03-02 17:33:25 +00:00
Makefile.in - revert back to r14406 2006-03-13 19:04:00 +00:00
options.c just whitespace 2006-01-25 00:08:53 +00:00
options.h move a couple of functions from common code (options.c) to udhcpd private 2005-09-22 19:03:24 +00:00
packet.c Patch from Denis Vlasenko to constify things and fix a few typos. 2006-02-22 17:01:00 +00:00
packet.h more make safe the exported namespace for udhcp. Move to bb-specific file for reduce change into udhcp-CVS 2005-09-23 11:25:29 +00:00
pidfile.c
pidfile.h more make safe the exported namespace for udhcp. Move to bb-specific file for reduce change into udhcp-CVS 2005-09-23 11:25:29 +00:00
README
README.dumpleases
README.udhcpc add support for setting the dhcp vendor class option (option 60). 2005-09-22 18:59:13 +00:00
README.udhcpd
script.c just whitespace 2006-01-25 00:08:53 +00:00
script.h more make safe the exported namespace for udhcp. Move to bb-specific file for reduce change into udhcp-CVS 2005-09-23 11:25:29 +00:00
serverpacket.c fix up yet more annoying signed/unsigned and mixed type errors 2006-01-30 22:48:39 +00:00
serverpacket.h
signalpipe.c
signalpipe.h
socket.c Bug 751: file handle leaks can add up until available filehandles for the 2006-02-22 02:10:34 +00:00
socket.h
static_leases.c
static_leases.h
TODO
version.h

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:

	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.

	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.

dhcpd.h contains the other three compile time options:

	LEASE_TIME: The default lease time if not specified in the config
	file.

	LEASES_FILE: The default file for storing leases.

	DHCPD_CONFIG_FILE: The defualt config file to use.

options.c contains a set of dhcp options for the client:

	name[10]: The name of the option as it will appear in scripts

	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


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:

cp *.[ch] README AUTHORS COPYING ChangeLog TODO \
	<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.