dhcpd,dumpleases: write and use 64-bit current time in lease file.
authorDenis Vlasenko <vda.linux@googlemail.com>
Sun, 1 Feb 2009 00:40:45 +0000 (00:40 -0000)
committerDenis Vlasenko <vda.linux@googlemail.com>
Sun, 1 Feb 2009 00:40:45 +0000 (00:40 -0000)
commit73121c3c8c28d299280a2f1360e038e93f0b254f
treedd021a127aa19bccfceb9a2894bcc76aea01a636
parent49325969e75dd85366d9a149625f75c323163723
dhcpd,dumpleases: write and use 64-bit current time in lease file.
 without it, determination of remaining lease time is unreliable.
 Yes, it's costly in code size, but without it, dumpleases output
 is misleading!

function                                             old     new   delta
read_leases                                          143     282    +139
dumpleases_main                                      447     572    +125
write_leases                                         193     233     +40
hton64                                                29      58     +29
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 4/0 up/down: 333/0)             Total: 333 bytes
networking/udhcp/dumpleases.c
networking/udhcp/files.c