hush/networking/udhcp
Denis Vlasenko fbd2918f5c udhcp: MAC_BCAST_ADDR and blank_chaddr are in fact constant, move to rodata.
a few global variables reduced to smallints
function                                             old     new   delta
add_lease                                             75     227    +152
static.blank_chaddr                                    -      16     +16
MAC_BCAST_ADDR                                         -       6      +6
sockfd                                                 4       8      +4
udhcp_run_script                                    1153    1155      +2
state                                                  8       5      -3
listen_mode                                            4       1      -3
perform_release                                      152     148      -4
fd                                                     8       4      -4
blank_chaddr                                          16       -     -16
udhcpc_main                                         2518    2497     -21
.rodata                                           131864  131832     -32
oldest_expired_lease                                  61       -     -61
clear_lease                                          127       -    -127
------------------------------------------------------------------------------
(add/remove: 2/3 grow/shrink: 3/6 up/down: 180/-271)          Total: -91 bytes
2007-04-07 01:05:47 +00:00
..
arpping.c
clientpacket.c
clientsocket.c
common.c udhcp: MAC_BCAST_ADDR and blank_chaddr are in fact constant, move to rodata. 2007-04-07 01:05:47 +00:00
common.h udhcp: MAC_BCAST_ADDR and blank_chaddr are in fact constant, move to rodata. 2007-04-07 01:05:47 +00:00
Config.in
dhcpc.c udhcp: MAC_BCAST_ADDR and blank_chaddr are in fact constant, move to rodata. 2007-04-07 01:05:47 +00:00
dhcpc.h
dhcpd.c - sed -e "s/char[[:space:]]*\*[[:space:]]*argv\[\]/char **argv/g" 2007-04-04 20:52:03 +00:00
dhcpd.h udhcp: MAC_BCAST_ADDR and blank_chaddr are in fact constant, move to rodata. 2007-04-07 01:05:47 +00:00
dhcprelay.c
domain_codec.c
dumpleases.c - sed -e "s/char[[:space:]]*\*[[:space:]]*argv\[\]/char **argv/g" 2007-04-04 20:52:03 +00:00
files.c
Kbuild Move udhcp to new NOMMU helpers. 2007-03-26 13:22:35 +00:00
leases.c udhcp: MAC_BCAST_ADDR and blank_chaddr are in fact constant, move to rodata. 2007-04-07 01:05:47 +00:00
options.c
options.h udhcp: MAC_BCAST_ADDR and blank_chaddr are in fact constant, move to rodata. 2007-04-07 01:05:47 +00:00
packet.c udhcp: MAC_BCAST_ADDR and blank_chaddr are in fact constant, move to rodata. 2007-04-07 01:05:47 +00:00
script.c udhcp: MAC_BCAST_ADDR and blank_chaddr are in fact constant, move to rodata. 2007-04-07 01:05:47 +00:00
serverpacket.c udhcp: MAC_BCAST_ADDR and blank_chaddr are in fact constant, move to rodata. 2007-04-07 01:05:47 +00:00
signalpipe.c
socket.c
static_leases.c