From 4f3aa51f9d551fba2935e34954e0eaf404c4f013 Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Sun, 4 Apr 2010 15:31:12 +0200 Subject: 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 --- networking/udhcp/common.h | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'networking/udhcp/common.h') 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 { 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 */ -- cgit v1.2.3