diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2009-06-16 10:25:35 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2009-06-16 10:25:35 +0200 |
commit | 56f2d06c6496e49d7e752d1ee5ac5ea420b4ed11 (patch) | |
tree | 2f972e9026ee995e1ebe146b05e608af3b2785ee /networking/udhcp/dhcpd.h | |
parent | 990a617edfd9040594c0889d2dd23eb7ef91c695 (diff) | |
download | busybox-w32-56f2d06c6496e49d7e752d1ee5ac5ea420b4ed11.tar.gz busybox-w32-56f2d06c6496e49d7e752d1ee5ac5ea420b4ed11.tar.bz2 busybox-w32-56f2d06c6496e49d7e752d1ee5ac5ea420b4ed11.zip |
udhcp: rename sprintip to sprint_nip, siaddr to siaddr_nip
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'networking/udhcp/dhcpd.h')
-rw-r--r-- | networking/udhcp/dhcpd.h | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/networking/udhcp/dhcpd.h b/networking/udhcp/dhcpd.h index bb281c51b..61cd8c7be 100644 --- a/networking/udhcp/dhcpd.h +++ b/networking/udhcp/dhcpd.h | |||
@@ -39,11 +39,6 @@ struct server_config_t { | |||
39 | char *interface; /* The name of the interface to use */ | 39 | char *interface; /* The name of the interface to use */ |
40 | int ifindex; /* Index number of the interface to use */ | 40 | int ifindex; /* Index number of the interface to use */ |
41 | uint8_t arp[6]; /* Our arp address */ | 41 | uint8_t arp[6]; /* Our arp address */ |
42 | // disabled: dumpleases has no way of knowing this value, | ||
43 | // and will break if it's off. Now it's on always. | ||
44 | // char remaining; /* Should the lease time in lease file | ||
45 | // * be written as lease time remaining, or | ||
46 | // * as the absolute time the lease expires */ | ||
47 | uint32_t lease; /* lease time in seconds (host order) */ | 42 | uint32_t lease; /* lease time in seconds (host order) */ |
48 | uint32_t max_leases; /* maximum number of leases (including reserved address) */ | 43 | uint32_t max_leases; /* maximum number of leases (including reserved address) */ |
49 | uint32_t auto_time; /* how long should udhcpd wait before writing a config file. | 44 | uint32_t auto_time; /* how long should udhcpd wait before writing a config file. |
@@ -53,7 +48,7 @@ struct server_config_t { | |||
53 | uint32_t conflict_time; /* how long an arp conflict offender is leased for */ | 48 | uint32_t conflict_time; /* how long an arp conflict offender is leased for */ |
54 | uint32_t offer_time; /* how long an offered address is reserved */ | 49 | uint32_t offer_time; /* how long an offered address is reserved */ |
55 | uint32_t min_lease; /* minimum lease time a client can request */ | 50 | uint32_t min_lease; /* minimum lease time a client can request */ |
56 | uint32_t siaddr; /* next server bootp option */ | 51 | uint32_t siaddr_nip; /* next server bootp option */ |
57 | char *lease_file; | 52 | char *lease_file; |
58 | char *pidfile; | 53 | char *pidfile; |
59 | char *notify_file; /* What to run whenever leases are written */ | 54 | char *notify_file; /* What to run whenever leases are written */ |
@@ -81,11 +76,9 @@ struct dhcpOfferedAddr { | |||
81 | uint8_t lease_mac16[16]; | 76 | uint8_t lease_mac16[16]; |
82 | /* "nip": IP in network order */ | 77 | /* "nip": IP in network order */ |
83 | uint32_t lease_nip; | 78 | uint32_t lease_nip; |
84 | /* Unix time when lease expires, regardless of value of | 79 | /* Unix time when lease expires. Kept in memory in host order. |
85 | * server_config.remaining. Kept in memory in host order. | ||
86 | * When written to file, converted to network order | 80 | * When written to file, converted to network order |
87 | * and optionally adjusted (current time subtracted) | 81 | * and adjusted (current time subtracted) */ |
88 | * if server_config.remaining = 1 */ | ||
89 | leasetime_t expires; | 82 | leasetime_t expires; |
90 | uint8_t hostname[20]; /* (size is a multiply of 4) */ | 83 | uint8_t hostname[20]; /* (size is a multiply of 4) */ |
91 | }; | 84 | }; |