aboutsummaryrefslogtreecommitdiff
path: root/networking/udhcp/script.c
diff options
context:
space:
mode:
Diffstat (limited to 'networking/udhcp/script.c')
-rw-r--r--networking/udhcp/script.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/networking/udhcp/script.c b/networking/udhcp/script.c
index 2324ea95b..8dff9b700 100644
--- a/networking/udhcp/script.c
+++ b/networking/udhcp/script.c
@@ -18,7 +18,7 @@ static const uint8_t max_option_length[] = {
18 [OPTION_IP] = sizeof("255.255.255.255 "), 18 [OPTION_IP] = sizeof("255.255.255.255 "),
19 [OPTION_IP_PAIR] = sizeof("255.255.255.255 ") * 2, 19 [OPTION_IP_PAIR] = sizeof("255.255.255.255 ") * 2,
20 [OPTION_STRING] = 1, 20 [OPTION_STRING] = 1,
21#if ENABLE_FEATURE_RFC3397 21#if ENABLE_FEATURE_UDHCP_RFC3397
22 [OPTION_STR1035] = 1, 22 [OPTION_STR1035] = 1,
23#endif 23#endif
24 [OPTION_BOOLEAN] = sizeof("yes "), 24 [OPTION_BOOLEAN] = sizeof("yes "),
@@ -109,7 +109,7 @@ static char *alloc_fill_opts(uint8_t *option, const struct dhcp_option *type_p,
109 memcpy(dest, option, len); 109 memcpy(dest, option, len);
110 dest[len] = '\0'; 110 dest[len] = '\0';
111 return ret; /* Short circuit this case */ 111 return ret; /* Short circuit this case */
112#if ENABLE_FEATURE_RFC3397 112#if ENABLE_FEATURE_UDHCP_RFC3397
113 case OPTION_STR1035: 113 case OPTION_STR1035:
114 /* unpack option into dest; use ret for prefix (i.e., "optname=") */ 114 /* unpack option into dest; use ret for prefix (i.e., "optname=") */
115 dest = dname_dec(option, len, ret); 115 dest = dname_dec(option, len, ret);