aboutsummaryrefslogtreecommitdiff
path: root/networking/udhcp/options.h
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2007-02-27 21:15:08 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2007-02-27 21:15:08 +0000
commit5066473d411d6a474af3393d1b62a58ee3313861 (patch)
tree7649f98fbe056b9b7f87893f70b5b50cc5007fe9 /networking/udhcp/options.h
parent966bb4376665e0cf22e64f7901fb956edbd2f1a9 (diff)
downloadbusybox-5066473d411d6a474af3393d1b62a58ee3313861.tar.gz
udhcp: optionally support RFC3397 (by Gabriel L. Somlo <somlo@cmu.edu>)
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 {
OPTION_IP=1,
OPTION_IP_PAIR,
OPTION_STRING,
+#if ENABLE_FEATURE_RFC3397
+ OPTION_STR1035, /* RFC1035 compressed domain name list */
+#endif
OPTION_BOOLEAN,
OPTION_U8,
OPTION_U16,
@@ -33,5 +36,9 @@ uint8_t *get_option(struct dhcpMessage *packet, int code);
int end_option(uint8_t *optionptr);
int add_option_string(uint8_t *optionptr, uint8_t *string);
int add_simple_option(uint8_t *optionptr, uint8_t code, uint32_t data);
+#if ENABLE_FEATURE_RFC3397
+char *dname_dec(const uint8_t *cstr, int clen, const char *pre);
+uint8_t *dname_enc(const uint8_t *cstr, int clen, const char *src, int *retlen);
+#endif
#endif