diff options
Diffstat (limited to 'networking/udhcp/options.h')
-rw-r--r-- | networking/udhcp/options.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/networking/udhcp/options.h b/networking/udhcp/options.h index 588504e5d..11f013fd4 100644 --- a/networking/udhcp/options.h +++ b/networking/udhcp/options.h | |||
@@ -9,6 +9,9 @@ enum { | |||
9 | OPTION_IP=1, | 9 | OPTION_IP=1, |
10 | OPTION_IP_PAIR, | 10 | OPTION_IP_PAIR, |
11 | OPTION_STRING, | 11 | OPTION_STRING, |
12 | #if ENABLE_FEATURE_RFC3397 | ||
13 | OPTION_STR1035, /* RFC1035 compressed domain name list */ | ||
14 | #endif | ||
12 | OPTION_BOOLEAN, | 15 | OPTION_BOOLEAN, |
13 | OPTION_U8, | 16 | OPTION_U8, |
14 | OPTION_U16, | 17 | OPTION_U16, |
@@ -33,5 +36,9 @@ uint8_t *get_option(struct dhcpMessage *packet, int code); | |||
33 | int end_option(uint8_t *optionptr); | 36 | int end_option(uint8_t *optionptr); |
34 | int add_option_string(uint8_t *optionptr, uint8_t *string); | 37 | int add_option_string(uint8_t *optionptr, uint8_t *string); |
35 | int add_simple_option(uint8_t *optionptr, uint8_t code, uint32_t data); | 38 | int add_simple_option(uint8_t *optionptr, uint8_t code, uint32_t data); |
39 | #if ENABLE_FEATURE_RFC3397 | ||
40 | char *dname_dec(const uint8_t *cstr, int clen, const char *pre); | ||
41 | uint8_t *dname_enc(const uint8_t *cstr, int clen, const char *src, int *retlen); | ||
42 | #endif | ||
36 | 43 | ||
37 | #endif | 44 | #endif |