udhcpd: disable opton to have absolute lease times in lease file
authorDenis Vlasenko <vda.linux@googlemail.com>
Thu, 1 Jan 2009 17:52:09 +0000 (17:52 -0000)
committerDenis Vlasenko <vda.linux@googlemail.com>
Thu, 1 Jan 2009 17:52:09 +0000 (17:52 -0000)
commit0416e3dde17ea9295635c52183b30fe3d7172333
tree4eea1c401c74d6ec42f18c67090f73001103e0db
parentb2ec03813c34bc3de2ddf9a0974be4e5b31ec757
udhcpd: disable opton to have absolute lease times in lease file
 (that does not work with dumpleases)
dumpleases: fix -a option.
networking/udhcp/*: code shrink, more compact static leases struture,
 better comments, etc

function                                             old     new   delta
find_free_or_expired_address                           -     147    +147
nobody_responds_to_arp                                 -      84     +84
read_opt                                             781     830     +49
dumpleases_main                                      435     447     +12
send_ACK                                             229     232      +3
read_staticlease                                      90      93      +3
addStaticLease                                        60      61      +1
getIpByMac                                            46      43      -3
reservedIp                                            31      20     -11
keywords                                             304     288     -16
send_offer                                           428     403     -25
write_leases                                         225     193     -32
read_leases                                          184     143     -41
read_yn                                               64       -     -64
find_address                                         191       -    -191
------------------------------------------------------------------------------
(add/remove: 2/2 grow/shrink: 5/6 up/down: 299/-383)          Total: -84 bytes
networking/udhcp/dhcpd.c
networking/udhcp/dhcpd.h
networking/udhcp/dumpleases.c
networking/udhcp/files.c
networking/udhcp/leases.c
networking/udhcp/serverpacket.c
networking/udhcp/static_leases.c