diff options
author | Denys Vlasenko | 2010-04-04 15:31:12 +0200 |
---|---|---|
committer | Denys Vlasenko | 2010-04-04 15:31:12 +0200 |
commit | 4f3aa51f9d551fba2935e34954e0eaf404c4f013 (patch) | |
tree | 534af3d78f806e79a6e3dcaf1fa5f6e89c17809e /networking/udhcp/common.h | |
parent | 4836331924b5eb7f74e000d50c99bc12d513f8c7 (diff) | |
download | busybox-4f3aa51f9d551fba2935e34954e0eaf404c4f013.zip busybox-4f3aa51f9d551fba2935e34954e0eaf404c4f013.tar.gz |
udhcp: implement "raw" binary options. Closes bug 735
function old new delta
allocate_tempopt_if_needed - 76 +76
udhcp_str2optset 351 415 +64
attach_option 380 398 +18
len_of_option_as_string 11 12 +1
dhcp_option_lengths 11 12 +1
------------------------------------------------------------------------------
(add/remove: 1/0 grow/shrink: 4/0 up/down: 160/0) Total: 160 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'networking/udhcp/common.h')
-rw-r--r-- | networking/udhcp/common.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/networking/udhcp/common.h b/networking/udhcp/common.h index 7dd1f11..c9dd0bb 100644 --- a/networking/udhcp/common.h +++ b/networking/udhcp/common.h @@ -70,17 +70,18 @@ enum { OPTION_IP = 1, OPTION_IP_PAIR, OPTION_STRING, -#if ENABLE_FEATURE_UDHCP_RFC3397 - OPTION_DNS_STRING, /* RFC1035 compressed domain name list */ - OPTION_SIP_SERVERS, -#endif // OPTION_BOOLEAN, OPTION_U8, OPTION_U16, // OPTION_S16, OPTION_U32, OPTION_S32, + OPTION_BIN, OPTION_STATIC_ROUTES, +#if ENABLE_FEATURE_UDHCP_RFC3397 + OPTION_DNS_STRING, /* RFC1035 compressed domain name list */ + OPTION_SIP_SERVERS, +#endif OPTION_TYPE_MASK = 0x0f, /* Client requests this option by default */ |