diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2021-06-02 15:07:46 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2021-06-02 15:07:46 +0200 |
commit | 698cdef538f51bb85b68d591b1e42eb6b04d891c (patch) | |
tree | 0946d0c3a0f0749f30d4f16a6c50e519e03f5de9 /networking/udhcp/common.c | |
parent | 265fcddd08f22c99a2a419a1537c18f4d6d43e9f (diff) | |
download | busybox-w32-698cdef538f51bb85b68d591b1e42eb6b04d891c.tar.gz busybox-w32-698cdef538f51bb85b68d591b1e42eb6b04d891c.tar.bz2 busybox-w32-698cdef538f51bb85b68d591b1e42eb6b04d891c.zip |
udhcpc: remove deprecated -H/-h HOSTNAME options (9 years), deprecate -V VENDOR
function old new delta
udhcpc_main 2563 2582 +19
dhcp_option_strings 294 301 +7
dhcp_optflags 80 82 +2
.rodata 103250 103248 -2
udhcpc_longopts 252 241 -11
add_client_options 209 175 -34
alloc_dhcp_option 59 - -59
------------------------------------------------------------------------------
(add/remove: 0/1 grow/shrink: 3/3 up/down: 28/-106) Total: -78 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'networking/udhcp/common.c')
-rw-r--r-- | networking/udhcp/common.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/networking/udhcp/common.c b/networking/udhcp/common.c index 684d76b2b..7929950f5 100644 --- a/networking/udhcp/common.c +++ b/networking/udhcp/common.c | |||
@@ -49,6 +49,7 @@ const struct dhcp_optflag dhcp_optflags[] = { | |||
49 | { OPTION_U32 , 0x33 }, /* DHCP_LEASE_TIME */ | 49 | { OPTION_U32 , 0x33 }, /* DHCP_LEASE_TIME */ |
50 | { OPTION_IP , 0x36 }, /* DHCP_SERVER_ID */ | 50 | { OPTION_IP , 0x36 }, /* DHCP_SERVER_ID */ |
51 | { OPTION_STRING , 0x38 }, /* DHCP_ERR_MESSAGE */ | 51 | { OPTION_STRING , 0x38 }, /* DHCP_ERR_MESSAGE */ |
52 | { OPTION_STRING , 0x3c }, /* DHCP_VENDOR */ | ||
52 | //TODO: must be combined with 'sname' and 'file' handling: | 53 | //TODO: must be combined with 'sname' and 'file' handling: |
53 | { OPTION_STRING_HOST , 0x42 }, /* DHCP_TFTP_SERVER_NAME */ | 54 | { OPTION_STRING_HOST , 0x42 }, /* DHCP_TFTP_SERVER_NAME */ |
54 | { OPTION_STRING , 0x43 }, /* DHCP_BOOT_FILE */ | 55 | { OPTION_STRING , 0x43 }, /* DHCP_BOOT_FILE */ |
@@ -83,7 +84,6 @@ const struct dhcp_optflag dhcp_optflags[] = { | |||
83 | { OPTION_U8 , 0x35 }, /* DHCP_MESSAGE_TYPE */ | 84 | { OPTION_U8 , 0x35 }, /* DHCP_MESSAGE_TYPE */ |
84 | { OPTION_U16 , 0x39 }, /* DHCP_MAX_SIZE */ | 85 | { OPTION_U16 , 0x39 }, /* DHCP_MAX_SIZE */ |
85 | //looks like these opts will work just fine even without these defs: | 86 | //looks like these opts will work just fine even without these defs: |
86 | // { OPTION_STRING , 0x3c }, /* DHCP_VENDOR */ | ||
87 | // /* not really a string: */ | 87 | // /* not really a string: */ |
88 | // { OPTION_STRING , 0x3d }, /* DHCP_CLIENT_ID */ | 88 | // { OPTION_STRING , 0x3d }, /* DHCP_CLIENT_ID */ |
89 | { 0, 0 } /* zeroed terminating entry */ | 89 | { 0, 0 } /* zeroed terminating entry */ |
@@ -120,6 +120,7 @@ const char dhcp_option_strings[] ALIGN1 = | |||
120 | "lease" "\0" /* DHCP_LEASE_TIME */ | 120 | "lease" "\0" /* DHCP_LEASE_TIME */ |
121 | "serverid" "\0" /* DHCP_SERVER_ID */ | 121 | "serverid" "\0" /* DHCP_SERVER_ID */ |
122 | "message" "\0" /* DHCP_ERR_MESSAGE */ | 122 | "message" "\0" /* DHCP_ERR_MESSAGE */ |
123 | "vendor" "\0" /* DHCP_VENDOR */ | ||
123 | "tftp" "\0" /* DHCP_TFTP_SERVER_NAME*/ | 124 | "tftp" "\0" /* DHCP_TFTP_SERVER_NAME*/ |
124 | "bootfile" "\0" /* DHCP_BOOT_FILE */ | 125 | "bootfile" "\0" /* DHCP_BOOT_FILE */ |
125 | // "userclass" "\0" /* DHCP_USER_CLASS */ | 126 | // "userclass" "\0" /* DHCP_USER_CLASS */ |