diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2010-04-04 15:31:12 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2010-04-04 15:31:12 +0200 |
commit | 4f3aa51f9d551fba2935e34954e0eaf404c4f013 (patch) | |
tree | 534af3d78f806e79a6e3dcaf1fa5f6e89c17809e /networking/udhcp/common.h | |
parent | 4836331924b5eb7f74e000d50c99bc12d513f8c7 (diff) | |
download | busybox-w32-4f3aa51f9d551fba2935e34954e0eaf404c4f013.tar.gz busybox-w32-4f3aa51f9d551fba2935e34954e0eaf404c4f013.tar.bz2 busybox-w32-4f3aa51f9d551fba2935e34954e0eaf404c4f013.zip |
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 7dd1f119a..c9dd0bb25 100644 --- a/networking/udhcp/common.h +++ b/networking/udhcp/common.h | |||
@@ -70,17 +70,18 @@ enum { | |||
70 | OPTION_IP = 1, | 70 | OPTION_IP = 1, |
71 | OPTION_IP_PAIR, | 71 | OPTION_IP_PAIR, |
72 | OPTION_STRING, | 72 | OPTION_STRING, |
73 | #if ENABLE_FEATURE_UDHCP_RFC3397 | ||
74 | OPTION_DNS_STRING, /* RFC1035 compressed domain name list */ | ||
75 | OPTION_SIP_SERVERS, | ||
76 | #endif | ||
77 | // OPTION_BOOLEAN, | 73 | // OPTION_BOOLEAN, |
78 | OPTION_U8, | 74 | OPTION_U8, |
79 | OPTION_U16, | 75 | OPTION_U16, |
80 | // OPTION_S16, | 76 | // OPTION_S16, |
81 | OPTION_U32, | 77 | OPTION_U32, |
82 | OPTION_S32, | 78 | OPTION_S32, |
79 | OPTION_BIN, | ||
83 | OPTION_STATIC_ROUTES, | 80 | OPTION_STATIC_ROUTES, |
81 | #if ENABLE_FEATURE_UDHCP_RFC3397 | ||
82 | OPTION_DNS_STRING, /* RFC1035 compressed domain name list */ | ||
83 | OPTION_SIP_SERVERS, | ||
84 | #endif | ||
84 | 85 | ||
85 | OPTION_TYPE_MASK = 0x0f, | 86 | OPTION_TYPE_MASK = 0x0f, |
86 | /* Client requests this option by default */ | 87 | /* Client requests this option by default */ |