aboutsummaryrefslogtreecommitdiff
path: root/networking/udhcp/script.c
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2010-03-19 23:42:23 +0100
committerDenys Vlasenko <vda.linux@googlemail.com>2010-03-19 23:42:23 +0100
commit777706cb2352c02602842f89d916a0e18ce6bd91 (patch)
tree75596b337731c87718c9015eb9eb6730183824dd /networking/udhcp/script.c
parent77a2c51e79eb54c8f5cc8903465223cbac6e8d50 (diff)
downloadbusybox-w32-777706cb2352c02602842f89d916a0e18ce6bd91.tar.gz
busybox-w32-777706cb2352c02602842f89d916a0e18ce6bd91.tar.bz2
busybox-w32-777706cb2352c02602842f89d916a0e18ce6bd91.zip
udhcp: remove support for some really old and odd options
function old new delta dhcp_options 72 68 -4 dhcp_option_strings 271 253 -18 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'networking/udhcp/script.c')
-rw-r--r--networking/udhcp/script.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/networking/udhcp/script.c b/networking/udhcp/script.c
index a74697c90..dc658ada8 100644
--- a/networking/udhcp/script.c
+++ b/networking/udhcp/script.c
@@ -78,8 +78,11 @@ static NOINLINE char *xmalloc_optname_optval(uint8_t *option, const struct dhcp_
78 *dest++ = '/'; 78 *dest++ = '/';
79 option += 4; 79 option += 4;
80 optlen = 4; 80 optlen = 4;
81 case OPTION_IP: /* Works regardless of host byte order. */ 81 case OPTION_IP:
82 dest += sprint_nip(dest, "", option); 82 dest += sprint_nip(dest, "", option);
83// TODO: it can be a list only if (type_p->flags & OPTION_LIST).
84// Should we bail out/warn if we see multi-ip option which is
85// not allowed to be such? For example, DHCP_BROADCAST...
83 break; 86 break;
84 case OPTION_BOOLEAN: 87 case OPTION_BOOLEAN:
85 dest += sprintf(dest, *option ? "yes" : "no"); 88 dest += sprintf(dest, *option ? "yes" : "no");