Russ Dill | 61fb489 | 2002-10-14 21:41:28 +0000 | [diff] [blame] | 1 | udhcp server/client package readme |
| 2 | ------------------------- |
| 3 | |
| 4 | The udhcp server/client package is primarily geared towards embedded |
| 5 | systems. It does however, strive to be fully functional, and RFC |
| 6 | compliant. |
| 7 | |
Russ Dill | 61fb489 | 2002-10-14 21:41:28 +0000 | [diff] [blame] | 8 | |
| 9 | compile time options |
| 10 | ------------------- |
| 11 | |
| 12 | The Makefile contains three of the compile time options: |
Eric Andersen | c7bda1c | 2004-03-15 08:29:22 +0000 | [diff] [blame] | 13 | |
Russ Dill | 4e864a3 | 2003-12-18 22:25:38 +0000 | [diff] [blame] | 14 | UDHCP_DEBUG: If UDHCP_DEBUG is defined, udhcpd will output extra |
| 15 | debugging output, compile with -g, and not fork to the background when |
| 16 | run. |
| 17 | UDHCP_SYSLOG: If UDHCP_SYSLOG is defined, udhcpd will log all its |
| 18 | messages syslog, otherwise, it will attempt to log them to stdout. |
Eric Andersen | c7bda1c | 2004-03-15 08:29:22 +0000 | [diff] [blame] | 19 | |
Russ Dill | 61fb489 | 2002-10-14 21:41:28 +0000 | [diff] [blame] | 20 | COMBINED_BINARY: If COMBINED_BINARY is define, one binary, udhcpd, |
| 21 | is created. If called as udhcpd, the dhcp server will be started. |
| 22 | If called as udhcpc, the dhcp client will be started. |
Eric Andersen | c7bda1c | 2004-03-15 08:29:22 +0000 | [diff] [blame] | 23 | |
Russ Dill | 4e864a3 | 2003-12-18 22:25:38 +0000 | [diff] [blame] | 24 | dhcpd.h contains the other three compile time options: |
Eric Andersen | c7bda1c | 2004-03-15 08:29:22 +0000 | [diff] [blame] | 25 | |
Russ Dill | 61fb489 | 2002-10-14 21:41:28 +0000 | [diff] [blame] | 26 | LEASE_TIME: The default lease time if not specified in the config |
| 27 | file. |
Russ Dill | 4e864a3 | 2003-12-18 22:25:38 +0000 | [diff] [blame] | 28 | |
| 29 | LEASES_FILE: The default file for storing leases. |
Eric Andersen | c7bda1c | 2004-03-15 08:29:22 +0000 | [diff] [blame] | 30 | |
Russ Dill | 61fb489 | 2002-10-14 21:41:28 +0000 | [diff] [blame] | 31 | DHCPD_CONFIG_FILE: The defualt config file to use. |
Eric Andersen | c7bda1c | 2004-03-15 08:29:22 +0000 | [diff] [blame] | 32 | |
Russ Dill | 61fb489 | 2002-10-14 21:41:28 +0000 | [diff] [blame] | 33 | options.c contains a set of dhcp options for the client: |
| 34 | |
| 35 | name[10]: The name of the option as it will appear in scripts |
Eric Andersen | c7bda1c | 2004-03-15 08:29:22 +0000 | [diff] [blame] | 36 | |
Russ Dill | 61fb489 | 2002-10-14 21:41:28 +0000 | [diff] [blame] | 37 | flags: The type of option, as well as if it will be requested |
| 38 | by the client (OPTION_REQ) |
| 39 | |
| 40 | code: The DHCP code for this option |
| 41 | |
Russ Dill | f5ecd43 | 2002-10-31 19:21:27 +0000 | [diff] [blame] | 42 | |
Russ Dill | 61fb489 | 2002-10-14 21:41:28 +0000 | [diff] [blame] | 43 | busybox drop-in |
| 44 | -------------- |
| 45 | udhcp is now a drop-in component for busybox (http://busybox.net). |
| 46 | To update busybox to the latest revision, simply do a: |
| 47 | |
Eric Andersen | c7bda1c | 2004-03-15 08:29:22 +0000 | [diff] [blame] | 48 | cp *.[ch] README AUTHORS COPYING ChangeLog TODO \ |
Russ Dill | 61fb489 | 2002-10-14 21:41:28 +0000 | [diff] [blame] | 49 | <busybox_source>/networking/udhcp |
| 50 | |
| 51 | The only two files udhcp does not provide are config.in and |
| 52 | Makefile.in, so these may need to be updated from time to time. |
Russ Dill | f5ecd43 | 2002-10-31 19:21:27 +0000 | [diff] [blame] | 53 | |