aboutsummaryrefslogtreecommitdiff
path: root/networking/udhcp/dhcpc.h
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2019-05-26 13:05:04 +0200
committerDenys Vlasenko <vda.linux@googlemail.com>2019-05-26 13:05:04 +0200
commita4ed2c45b905057108e41aceda10c8b7976534ed (patch)
treec7b93e7ba4499805f3ebcb5b92a21ca33d6c0770 /networking/udhcp/dhcpc.h
parentdff2bd733fc2dac08d34f2cfad0e68aeb8e7a7a2 (diff)
downloadbusybox-a4ed2c45b905057108e41aceda10c8b7976534ed.tar.gz
dhcp: get rid of last global data
function old new delta udhcpc_main 2680 2684 +4 state 1 - -1 listen_mode 1 - -1 sockfd 4 - -4 ------------------------------------------------------------------------------ (add/remove: 0/3 grow/shrink: 1/0 up/down: 4/-6) Total: -2 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'networking/udhcp/dhcpc.h')
-rw-r--r--networking/udhcp/dhcpc.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/networking/udhcp/dhcpc.h b/networking/udhcp/dhcpc.h
index 7fdbc9a6c..2618b12b5 100644
--- a/networking/udhcp/dhcpc.h
+++ b/networking/udhcp/dhcpc.h
@@ -24,6 +24,10 @@ struct client_config_t {
uint16_t first_secs;
uint16_t last_secs;
+
+ int sockfd;
+ smallint listen_mode;
+ smallint state;
} FIX_ALIASING;
/* server_config sits in 1st half of bb_common_bufsiz1 */