diff options
author | Denys Vlasenko | 2009-06-17 11:57:09 +0200 |
---|---|---|
committer | Denys Vlasenko | 2009-06-17 11:57:09 +0200 |
commit | 31af3d5a1dbc750d8646f948ce642e6ae57ce880 (patch) | |
tree | 37d72b13f986b1da25def340771b49be4dd3028b /networking/udhcp/files.c | |
parent | ac906fa85e61b4e34161709de777616f858bc945 (diff) | |
download | busybox-31af3d5a1dbc750d8646f948ce642e6ae57ce880.zip busybox-31af3d5a1dbc750d8646f948ce642e6ae57ce880.tar.gz |
udhcp: shorten mac len from 16 to 6 in lease file
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'networking/udhcp/files.c')
-rw-r--r-- | networking/udhcp/files.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/networking/udhcp/files.c b/networking/udhcp/files.c index 9d5633b..bddf3e1 100644 --- a/networking/udhcp/files.c +++ b/networking/udhcp/files.c @@ -390,7 +390,7 @@ void FAST_FUNC write_leases(void) void FAST_FUNC read_leases(const char *file) { - struct dhcpOfferedAddr lease; + struct dyn_lease lease; int64_t written_at, time_passed; int fd; #if defined CONFIG_UDHCP_DEBUG && CONFIG_UDHCP_DEBUG >= 1 @@ -420,7 +420,7 @@ void FAST_FUNC read_leases(const char *file) continue; /* NB: add_lease takes "relative time", IOW, * lease duration, not lease deadline. */ - if (!(add_lease(lease.lease_mac16, lease.lease_nip, expires, lease.hostname))) { + if (!(add_lease(lease.lease_mac, lease.lease_nip, expires, lease.hostname))) { bb_error_msg("too many leases while loading %s", file); break; } |