aboutsummaryrefslogtreecommitdiff
path: root/networking/udhcp/options.h
diff options
context:
space:
mode:
Diffstat (limited to 'networking/udhcp/options.h')
-rw-r--r--networking/udhcp/options.h7
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);
33int end_option(uint8_t *optionptr); 36int end_option(uint8_t *optionptr);
34int add_option_string(uint8_t *optionptr, uint8_t *string); 37int add_option_string(uint8_t *optionptr, uint8_t *string);
35int add_simple_option(uint8_t *optionptr, uint8_t code, uint32_t data); 38int add_simple_option(uint8_t *optionptr, uint8_t code, uint32_t data);
39#if ENABLE_FEATURE_RFC3397
40char *dname_dec(const uint8_t *cstr, int clen, const char *pre);
41uint8_t *dname_enc(const uint8_t *cstr, int clen, const char *src, int *retlen);
42#endif
36 43
37#endif 44#endif