diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2009-06-17 13:44:04 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2009-06-17 13:44:04 +0200 |
commit | 799d00e84c0328fead9b68ac33dc7dd11b34adb1 (patch) | |
tree | 79ec915e750e2d15953ad4443771f81bb2fe8576 /networking/udhcp/dhcpd.h | |
parent | 6947d2c7e194e3be31eed1c75260e15fca1a2568 (diff) | |
download | busybox-w32-799d00e84c0328fead9b68ac33dc7dd11b34adb1.tar.gz busybox-w32-799d00e84c0328fead9b68ac33dc7dd11b34adb1.tar.bz2 busybox-w32-799d00e84c0328fead9b68ac33dc7dd11b34adb1.zip |
udhcp: convert old-style logging in print_static_leases
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'networking/udhcp/dhcpd.h')
-rw-r--r-- | networking/udhcp/dhcpd.h | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/networking/udhcp/dhcpd.h b/networking/udhcp/dhcpd.h index 42a4b2782..67cb78ce7 100644 --- a/networking/udhcp/dhcpd.h +++ b/networking/udhcp/dhcpd.h | |||
@@ -5,17 +5,14 @@ | |||
5 | 5 | ||
6 | PUSH_AND_SET_FUNCTION_VISIBILITY_TO_HIDDEN | 6 | PUSH_AND_SET_FUNCTION_VISIBILITY_TO_HIDDEN |
7 | 7 | ||
8 | /************************************/ | 8 | /* Defaults you may want to tweak */ |
9 | /* Defaults _you_ may want to tweak */ | 9 | /* Default max_lease_sec */ |
10 | /************************************/ | 10 | #define LEASE_TIME (60*60*24 * 10) |
11 | 11 | #define LEASES_FILE CONFIG_DHCPD_LEASES_FILE | |
12 | /* the period of time the client is allowed to use that address */ | 12 | /* Where to find the DHCP server configuration file */ |
13 | #define LEASE_TIME (60*60*24*10) /* 10 days of seconds */ | ||
14 | #define LEASES_FILE CONFIG_DHCPD_LEASES_FILE | ||
15 | |||
16 | /* where to find the DHCP server configuration file */ | ||
17 | #define DHCPD_CONF_FILE "/etc/udhcpd.conf" | 13 | #define DHCPD_CONF_FILE "/etc/udhcpd.conf" |
18 | 14 | ||
15 | |||
19 | struct option_set { | 16 | struct option_set { |
20 | uint8_t *data; | 17 | uint8_t *data; |
21 | struct option_set *next; | 18 | struct option_set *next; |
@@ -119,7 +116,11 @@ uint32_t get_static_nip_by_mac(struct static_lease *st_lease, void *arg) FAST_FU | |||
119 | /* Check to see if an IP is reserved as a static IP */ | 116 | /* Check to see if an IP is reserved as a static IP */ |
120 | int is_nip_reserved(struct static_lease *st_lease, uint32_t nip) FAST_FUNC; | 117 | int is_nip_reserved(struct static_lease *st_lease, uint32_t nip) FAST_FUNC; |
121 | /* Print out static leases just to check what's going on (debug code) */ | 118 | /* Print out static leases just to check what's going on (debug code) */ |
122 | void print_static_leases(struct static_lease **st_lease_pp) FAST_FUNC; | 119 | #if defined CONFIG_UDHCP_DEBUG && CONFIG_UDHCP_DEBUG >= 2 |
120 | void log_static_leases(struct static_lease **st_lease_pp) FAST_FUNC; | ||
121 | #else | ||
122 | # define log_static_leases(st_lease_pp) ((void)0) | ||
123 | #endif | ||
123 | 124 | ||
124 | 125 | ||
125 | /*** serverpacket.h ***/ | 126 | /*** serverpacket.h ***/ |