diff options
| author | Denys Vlasenko <vda.linux@googlemail.com> | 2019-05-16 11:18:49 +0200 |
|---|---|---|
| committer | Denys Vlasenko <vda.linux@googlemail.com> | 2019-05-16 11:18:49 +0200 |
| commit | a840884531df649aabc72debb2d6025dabe2abb3 (patch) | |
| tree | f953e5ac4ac2c7ae6535ac5569fb809cef9d929a /examples | |
| parent | 9bf6780c2888805908d9485681dadffeab3414f7 (diff) | |
| download | busybox-w32-a840884531df649aabc72debb2d6025dabe2abb3.tar.gz busybox-w32-a840884531df649aabc72debb2d6025dabe2abb3.tar.bz2 busybox-w32-a840884531df649aabc72debb2d6025dabe2abb3.zip | |
udhcpd: support per-client hostnames in static leases
function old new delta
read_staticlease 222 299 +77
add_server_options 92 154 +62
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 2/0 up/down: 139/0) Total: 139 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/udhcp/udhcpd.conf | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/examples/udhcp/udhcpd.conf b/examples/udhcp/udhcpd.conf index bb8774e08..df1258aaf 100644 --- a/examples/udhcp/udhcpd.conf +++ b/examples/udhcp/udhcpd.conf | |||
| @@ -44,7 +44,7 @@ interface eth0 | |||
| 44 | #notify_file # default: no script | 44 | #notify_file # default: no script |
| 45 | #notify_file dumpleases # useful for debugging | 45 | #notify_file dumpleases # useful for debugging |
| 46 | 46 | ||
| 47 | # The following are bootp specific options | 47 | # The following are BOOTP specific options |
| 48 | # next server to use in bootstrap | 48 | # next server to use in bootstrap |
| 49 | #siaddr 192.168.0.22 # default: 0.0.0.0 (none) | 49 | #siaddr 192.168.0.22 # default: 0.0.0.0 (none) |
| 50 | # tftp server name | 50 | # tftp server name |
| @@ -52,9 +52,14 @@ interface eth0 | |||
| 52 | # tftp file to download (e.g. kernel image) | 52 | # tftp file to download (e.g. kernel image) |
| 53 | #boot_file /var/nfs_root # default: none | 53 | #boot_file /var/nfs_root # default: none |
| 54 | 54 | ||
| 55 | # NOTE: "boot_file FILE" and "opt bootfile FILE" are conceptually the same, | ||
| 56 | # but "boot_file" goes into BOOTP-defined fixed-size field in the packet, | ||
| 57 | # whereas "opt bootfile" goes into DHCP option 0x43. | ||
| 58 | # Same for "sname HOST" and "opt tftp HOST". | ||
| 59 | |||
| 55 | # Static leases map | 60 | # Static leases map |
| 56 | #static_lease 00:60:08:11:CE:4E 192.168.0.54 | 61 | #static_lease 00:60:08:11:CE:4E 192.168.0.54 |
| 57 | #static_lease 00:60:08:11:CE:3E 192.168.0.44 | 62 | #static_lease 00:60:08:11:CE:3E 192.168.0.44 optional_hostname |
| 58 | 63 | ||
| 59 | # The remainder of options are DHCP options and can be specified with the | 64 | # The remainder of options are DHCP options and can be specified with the |
| 60 | # keyword 'opt' or 'option'. If an option can take multiple items, such | 65 | # keyword 'opt' or 'option'. If an option can take multiple items, such |
