dhcpd: remember and record hostnames; optimize get_option
authorDenis Vlasenko <vda.linux@googlemail.com>
Wed, 1 Apr 2009 12:36:09 +0000 (12:36 -0000)
committerDenis Vlasenko <vda.linux@googlemail.com>
Wed, 1 Apr 2009 12:36:09 +0000 (12:36 -0000)
commitbd79c3d337304a96dcce4ae4f97b36143919af10
tree75115aadc65ea14c8b038be883abfe74ca5f4ced
parent3266aa9ec285dbcf254daa17c103bf69dc755967
dhcpd: remember and record hostnames; optimize get_option
dumpleases: show hostnames

function                                             old     new   delta
add_lease                                            230     292     +62
send_offer                                           403     421     +18
send_ACK                                             232     249     +17
read_leases                                          249     258      +9
dumpleases_main                                      604     609      +5
nobody_responds_to_arp                                84      86      +2
udhcp_end_option                                      32      30      -2
udhcp_get_option                                     222     171     -51
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 6/2 up/down: 113/-53)            Total: 60 bytes
networking/udhcp/dhcpd.h
networking/udhcp/dumpleases.c
networking/udhcp/files.c
networking/udhcp/leases.c
networking/udhcp/options.c
networking/udhcp/options.h
networking/udhcp/script.c
networking/udhcp/serverpacket.c