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: |
| 13 | |
| 14 | DEBUG: If DEBUG is defined, udhcpd will output extra debugging |
| 15 | output, compile with -g, and not fork to the background when run. |
| 16 | SYSLOG: If SYSLOG is defined, udhcpd will log all its messages |
| 17 | syslog, otherwise, it will attempt to log them to stdout. |
| 18 | |
| 19 | COMBINED_BINARY: If COMBINED_BINARY is define, one binary, udhcpd, |
| 20 | is created. If called as udhcpd, the dhcp server will be started. |
| 21 | If called as udhcpc, the dhcp client will be started. |
| 22 | |
| 23 | dhcpd.h contains the other two compile time options: |
| 24 | |
| 25 | LEASE_TIME: The default lease time if not specified in the config |
| 26 | file. |
| 27 | |
| 28 | DHCPD_CONFIG_FILE: The defualt config file to use. |
| 29 | |
| 30 | options.c contains a set of dhcp options for the client: |
| 31 | |
| 32 | name[10]: The name of the option as it will appear in scripts |
| 33 | |
| 34 | flags: The type of option, as well as if it will be requested |
| 35 | by the client (OPTION_REQ) |
| 36 | |
| 37 | code: The DHCP code for this option |
| 38 | |
Russ Dill | f5ecd43 | 2002-10-31 19:21:27 +0000 | [diff] [blame] | 39 | |
Russ Dill | 61fb489 | 2002-10-14 21:41:28 +0000 | [diff] [blame] | 40 | busybox drop-in |
| 41 | -------------- |
| 42 | udhcp is now a drop-in component for busybox (http://busybox.net). |
| 43 | To update busybox to the latest revision, simply do a: |
| 44 | |
| 45 | cp *.[ch] README AUTHORS COPYING ChangeLog TODO \ |
| 46 | <busybox_source>/networking/udhcp |
| 47 | |
| 48 | The only two files udhcp does not provide are config.in and |
| 49 | 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] | 50 | |