From 5066473d411d6a474af3393d1b62a58ee3313861 Mon Sep 17 00:00:00 2001 From: Denis Vlasenko Date: Tue, 27 Feb 2007 21:15:08 +0000 Subject: udhcp: optionally support RFC3397 (by Gabriel L. Somlo ) --- networking/udhcp/options.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'networking/udhcp/options.h') 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 -- cgit v1.2.3