diff options
author | Vladislav Grishenko <themiron@mail.ru> | 2011-02-16 13:31:30 +0100 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2011-02-16 13:31:30 +0100 |
commit | 582716733895946b2729acdf18a32532567b973a (patch) | |
tree | 433dbc03b2c71768c4477d0f3f4e41c95dc2fa66 /networking/udhcp/Config.src | |
parent | 4fdb67cc65e93967448bb28e4cb810ad5648bfea (diff) | |
download | busybox-w32-582716733895946b2729acdf18a32532567b973a.tar.gz busybox-w32-582716733895946b2729acdf18a32532567b973a.tar.bz2 busybox-w32-582716733895946b2729acdf18a32532567b973a.zip |
udhcpd: optional IP selection based on MAC hash
function old new delta
find_free_or_expired_nip 153 225 +72
Signed-off-by: Vladislav Grishenko <themiron@mail.ru>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'networking/udhcp/Config.src')
-rw-r--r-- | networking/udhcp/Config.src | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/networking/udhcp/Config.src b/networking/udhcp/Config.src index dcd493f13..750a53a32 100644 --- a/networking/udhcp/Config.src +++ b/networking/udhcp/Config.src | |||
@@ -39,7 +39,21 @@ config FEATURE_UDHCPD_WRITE_LEASES_EARLY | |||
39 | If selected, udhcpd will write a new file with leases every | 39 | If selected, udhcpd will write a new file with leases every |
40 | time a new lease has been accepted, thus eliminating the need | 40 | time a new lease has been accepted, thus eliminating the need |
41 | to send SIGUSR1 for the initial writing or updating. Any timed | 41 | to send SIGUSR1 for the initial writing or updating. Any timed |
42 | rewriting remains undisturbed | 42 | rewriting remains undisturbed. |
43 | |||
44 | config FEATURE_UDHCPD_BASE_IP_ON_MAC | ||
45 | bool "Select IP address based on client MAC" | ||
46 | default n | ||
47 | depends on UDHCPD | ||
48 | help | ||
49 | If selected, udhcpd will base its selection of IP address to offer | ||
50 | on the client's hardware address. Otherwise udhcpd uses the next | ||
51 | consecutive free address. | ||
52 | |||
53 | This reduces the frequency of IP address changes for clients | ||
54 | which let their lease expire, and makes consecutive DHCPOFFERS | ||
55 | for the same client to (almost always) contain the same | ||
56 | IP address. | ||
43 | 57 | ||
44 | config DHCPD_LEASES_FILE | 58 | config DHCPD_LEASES_FILE |
45 | string "Absolute path to lease file" | 59 | string "Absolute path to lease file" |
@@ -72,7 +86,7 @@ config FEATURE_UDHCPC_ARPING | |||
72 | 86 | ||
73 | config FEATURE_UDHCP_PORT | 87 | config FEATURE_UDHCP_PORT |
74 | bool "Enable '-P port' option for udhcpd and udhcpc" | 88 | bool "Enable '-P port' option for udhcpd and udhcpc" |
75 | default y | 89 | default n |
76 | depends on UDHCPD || UDHCPC | 90 | depends on UDHCPD || UDHCPC |
77 | help | 91 | help |
78 | At the cost of ~300 bytes, enables -P port option. | 92 | At the cost of ~300 bytes, enables -P port option. |