aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Config.in16
-rw-r--r--TODO_config_nommu10
-rw-r--r--include/libbb.h2
-rw-r--r--include/usage.h8
-rw-r--r--miscutils/Config.in2
-rw-r--r--miscutils/crond.c10
-rw-r--r--networking/Config.in2
-rw-r--r--networking/tftp.c8
-rw-r--r--networking/udhcp/Config.in6
-rw-r--r--networking/udhcp/Kbuild2
-rw-r--r--networking/udhcp/common.h4
-rw-r--r--networking/udhcp/domain_codec.c4
-rw-r--r--networking/udhcp/files.c12
-rw-r--r--networking/udhcp/options.c6
-rw-r--r--networking/udhcp/options.h4
-rw-r--r--networking/udhcp/script.c4
-rw-r--r--networking/udhcp/static_leases.c2
-rw-r--r--scripts/defconfig10
-rw-r--r--util-linux/Config.in4
19 files changed, 57 insertions, 59 deletions
diff --git a/Config.in b/Config.in
index 85d576edb..d2eab538e 100644
--- a/Config.in
+++ b/Config.in
@@ -256,18 +256,18 @@ config BUSYBOX_EXEC_PATH
256# These are auto-selected by other options 256# These are auto-selected by other options
257 257
258config FEATURE_SYSLOG 258config FEATURE_SYSLOG
259 bool "Support for logging to syslog" 259 bool #No description makes it a hidden option
260 default n 260 default n
261 help 261 #help
262 This option is auto-selected when you select any applet which may 262 # This option is auto-selected when you select any applet which may
263 send its output to syslog. You do not need to select it manually. 263 # send its output to syslog. You do not need to select it manually.
264 264
265config FEATURE_HAVE_RPC 265config FEATURE_HAVE_RPC
266 bool "RPC support" 266 bool #No description makes it a hidden option
267 default n 267 default n
268 help 268 #help
269 This is automatically selected if any of enabled applets need it. 269 # This is automatically selected if any of enabled applets need it.
270 You do not need to select it manually. 270 # You do not need to select it manually.
271 271
272endmenu 272endmenu
273 273
diff --git a/TODO_config_nommu b/TODO_config_nommu
index df51dc05a..f42ccac9b 100644
--- a/TODO_config_nommu
+++ b/TODO_config_nommu
@@ -555,7 +555,7 @@ CONFIG_FEATURE_CHAT_VAR_ABORT_LEN=y
555CONFIG_FEATURE_CHAT_CLR_ABORT=y 555CONFIG_FEATURE_CHAT_CLR_ABORT=y
556CONFIG_CHRT=y 556CONFIG_CHRT=y
557CONFIG_CROND=y 557CONFIG_CROND=y
558CONFIG_DEBUG_CROND_OPTION=y 558CONFIG_FEATURE_CROND_D=y
559CONFIG_FEATURE_CROND_CALL_SENDMAIL=y 559CONFIG_FEATURE_CROND_CALL_SENDMAIL=y
560CONFIG_CRONTAB=y 560CONFIG_CRONTAB=y
561CONFIG_DC=y 561CONFIG_DC=y
@@ -706,7 +706,7 @@ CONFIG_TFTPD=y
706CONFIG_FEATURE_TFTP_GET=y 706CONFIG_FEATURE_TFTP_GET=y
707CONFIG_FEATURE_TFTP_PUT=y 707CONFIG_FEATURE_TFTP_PUT=y
708CONFIG_FEATURE_TFTP_BLOCKSIZE=y 708CONFIG_FEATURE_TFTP_BLOCKSIZE=y
709CONFIG_DEBUG_TFTP=y 709CONFIG_TFTP_DEBUG=y
710CONFIG_TRACEROUTE=y 710CONFIG_TRACEROUTE=y
711CONFIG_FEATURE_TRACEROUTE_VERBOSE=y 711CONFIG_FEATURE_TRACEROUTE_VERBOSE=y
712CONFIG_FEATURE_TRACEROUTE_SOURCE_ROUTE=y 712CONFIG_FEATURE_TRACEROUTE_SOURCE_ROUTE=y
@@ -719,9 +719,9 @@ CONFIG_DHCPD_LEASES_FILE="/var/lib/misc/udhcpd.leases"
719CONFIG_APP_UDHCPC=y 719CONFIG_APP_UDHCPC=y
720CONFIG_FEATURE_UDHCPC_ARPING=y 720CONFIG_FEATURE_UDHCPC_ARPING=y
721CONFIG_FEATURE_UDHCP_PORT=y 721CONFIG_FEATURE_UDHCP_PORT=y
722CONFIG_FEATURE_UDHCP_DEBUG=y 722CONFIG_UDHCP_DEBUG=y
723CONFIG_FEATURE_RFC3397=y 723CONFIG_FEATURE_UDHCP_RFC3397=y
724CONFIG_DHCPC_DEFAULT_SCRIPT="/usr/share/udhcpc/default.script" 724CONFIG_UDHCPC_DEFAULT_SCRIPT="/usr/share/udhcpc/default.script"
725CONFIG_UDHCPC_SLACK_FOR_BUGGY_SERVERS=80 725CONFIG_UDHCPC_SLACK_FOR_BUGGY_SERVERS=80
726CONFIG_VCONFIG=y 726CONFIG_VCONFIG=y
727CONFIG_WGET=y 727CONFIG_WGET=y
diff --git a/include/libbb.h b/include/libbb.h
index 086a59f05..a6229a5e1 100644
--- a/include/libbb.h
+++ b/include/libbb.h
@@ -1037,7 +1037,7 @@ enum {
1037 PARSE_GREEDY = 0x00040000, // last token takes entire remainder of the line 1037 PARSE_GREEDY = 0x00040000, // last token takes entire remainder of the line
1038 PARSE_MIN_DIE = 0x00100000, // die if < min tokens found 1038 PARSE_MIN_DIE = 0x00100000, // die if < min tokens found
1039 // keep a copy of current line 1039 // keep a copy of current line
1040 PARSE_KEEP_COPY = 0x00200000 * ENABLE_DEBUG_CROND_OPTION, 1040 PARSE_KEEP_COPY = 0x00200000 * ENABLE_FEATURE_CROND_D,
1041// PARSE_ESCAPE = 0x00400000, // process escape sequences in tokens 1041// PARSE_ESCAPE = 0x00400000, // process escape sequences in tokens
1042 // NORMAL is: 1042 // NORMAL is:
1043 // * remove leading and trailing delimiters and collapse 1043 // * remove leading and trailing delimiters and collapse
diff --git a/include/usage.h b/include/usage.h
index ac62fbf6d..4ee82059e 100644
--- a/include/usage.h
+++ b/include/usage.h
@@ -535,13 +535,13 @@
535 "\n F Input from file" \ 535 "\n F Input from file" \
536 536
537#define crond_trivial_usage \ 537#define crond_trivial_usage \
538 "-fbS -l N " USE_DEBUG_CROND_OPTION("-d N ") "-L LOGFILE -c DIR" 538 "-fbS -l N " USE_FEATURE_CROND_D("-d N ") "-L LOGFILE -c DIR"
539#define crond_full_usage "\n\n" \ 539#define crond_full_usage "\n\n" \
540 " -f Foreground" \ 540 " -f Foreground" \
541 "\n -b Background (default)" \ 541 "\n -b Background (default)" \
542 "\n -S Log to syslog (default)" \ 542 "\n -S Log to syslog (default)" \
543 "\n -l Set log level. 0 is the most verbose, default 8" \ 543 "\n -l Set log level. 0 is the most verbose, default 8" \
544 USE_DEBUG_CROND_OPTION( \ 544 USE_FEATURE_CROND_D( \
545 "\n -d Set log level, log to stderr" \ 545 "\n -d Set log level, log to stderr" \
546 ) \ 546 ) \
547 "\n -L Log to file" \ 547 "\n -L Log to file" \
@@ -4349,7 +4349,7 @@
4349 "\n -C,--clientid-none Suppress default client identifier" \ 4349 "\n -C,--clientid-none Suppress default client identifier" \
4350 "\n -p,--pidfile=file Create pidfile" \ 4350 "\n -p,--pidfile=file Create pidfile" \
4351 "\n -r,--request=IP IP address to request" \ 4351 "\n -r,--request=IP IP address to request" \
4352 "\n -s,--script=file Run file at DHCP events (default "CONFIG_DHCPC_DEFAULT_SCRIPT")" \ 4352 "\n -s,--script=file Run file at DHCP events (default "CONFIG_UDHCPC_DEFAULT_SCRIPT")" \
4353 "\n -t,--retries=N Send up to N request packets" \ 4353 "\n -t,--retries=N Send up to N request packets" \
4354 "\n -T,--timeout=N Try to get a lease for N seconds (default 3)" \ 4354 "\n -T,--timeout=N Try to get a lease for N seconds (default 3)" \
4355 "\n -A,--tryagain=N Wait N seconds (default 20) after failure" \ 4355 "\n -A,--tryagain=N Wait N seconds (default 20) after failure" \
@@ -4378,7 +4378,7 @@
4378 "\n -C Suppress default client identifier" \ 4378 "\n -C Suppress default client identifier" \
4379 "\n -p file Create pidfile" \ 4379 "\n -p file Create pidfile" \
4380 "\n -r IP IP address to request" \ 4380 "\n -r IP IP address to request" \
4381 "\n -s file Run file at DHCP events (default "CONFIG_DHCPC_DEFAULT_SCRIPT")" \ 4381 "\n -s file Run file at DHCP events (default "CONFIG_UDHCPC_DEFAULT_SCRIPT")" \
4382 "\n -t N Send up to N request packets" \ 4382 "\n -t N Send up to N request packets" \
4383 "\n -T N Try to get a lease for N seconds (default 3)" \ 4383 "\n -T N Try to get a lease for N seconds (default 3)" \
4384 "\n -A N Wait N seconds (default 20) after failure" \ 4384 "\n -A N Wait N seconds (default 20) after failure" \
diff --git a/miscutils/Config.in b/miscutils/Config.in
index f8b4575e0..60b87c1e5 100644
--- a/miscutils/Config.in
+++ b/miscutils/Config.in
@@ -107,7 +107,7 @@ config CROND
107 # Run daily cron jobs at 4:40 every day: 107 # Run daily cron jobs at 4:40 every day:
108 40 4 * * * /etc/cron/daily > /dev/null 2>&1 108 40 4 * * * /etc/cron/daily > /dev/null 2>&1
109 109
110config DEBUG_CROND_OPTION 110config FEATURE_CROND_D
111 bool "Support option -d to redirect output to stderr" 111 bool "Support option -d to redirect output to stderr"
112 depends on CROND 112 depends on CROND
113 default n 113 default n
diff --git a/miscutils/crond.c b/miscutils/crond.c
index 7d1908c63..bd7a177e0 100644
--- a/miscutils/crond.c
+++ b/miscutils/crond.c
@@ -80,9 +80,9 @@ enum {
80 OPT_b = (1 << 3), 80 OPT_b = (1 << 3),
81 OPT_S = (1 << 4), 81 OPT_S = (1 << 4),
82 OPT_c = (1 << 5), 82 OPT_c = (1 << 5),
83 OPT_d = (1 << 6) * ENABLE_DEBUG_CROND_OPTION, 83 OPT_d = (1 << 6) * ENABLE_FEATURE_CROND_D,
84}; 84};
85#if ENABLE_DEBUG_CROND_OPTION 85#if ENABLE_FEATURE_CROND_D
86#define DebugOpt (option_mask32 & OPT_d) 86#define DebugOpt (option_mask32 & OPT_d)
87#else 87#else
88#define DebugOpt 0 88#define DebugOpt 0
@@ -166,11 +166,11 @@ int crond_main(int argc UNUSED_PARAM, char **argv)
166 INIT_G(); 166 INIT_G();
167 167
168 /* "-b after -f is ignored", and so on for every pair a-b */ 168 /* "-b after -f is ignored", and so on for every pair a-b */
169 opt_complementary = "f-b:b-f:S-L:L-S" USE_DEBUG_CROND_OPTION(":d-l") 169 opt_complementary = "f-b:b-f:S-L:L-S" USE_FEATURE_CROND_D(":d-l")
170 ":l+:d+"; /* -l and -d have numeric param */ 170 ":l+:d+"; /* -l and -d have numeric param */
171 opt = getopt32(argv, "l:L:fbSc:" USE_DEBUG_CROND_OPTION("d:"), 171 opt = getopt32(argv, "l:L:fbSc:" USE_FEATURE_CROND_D("d:"),
172 &LogLevel, &LogFile, &CDir 172 &LogLevel, &LogFile, &CDir
173 USE_DEBUG_CROND_OPTION(,&LogLevel)); 173 USE_FEATURE_CROND_D(,&LogLevel));
174 /* both -d N and -l N set the same variable: LogLevel */ 174 /* both -d N and -l N set the same variable: LogLevel */
175 175
176 if (!(opt & OPT_f)) { 176 if (!(opt & OPT_f)) {
diff --git a/networking/Config.in b/networking/Config.in
index bceacddda..3ae77e119 100644
--- a/networking/Config.in
+++ b/networking/Config.in
@@ -859,7 +859,7 @@ config FEATURE_TFTP_BLOCKSIZE
859 Allow tftp to specify block size, and tftpd to understand 859 Allow tftp to specify block size, and tftpd to understand
860 "blksize" option. 860 "blksize" option.
861 861
862config DEBUG_TFTP 862config TFTP_DEBUG
863 bool "Enable debug" 863 bool "Enable debug"
864 default n 864 default n
865 depends on TFTP 865 depends on TFTP
diff --git a/networking/tftp.c b/networking/tftp.c
index eb39e9c54..1f706852a 100644
--- a/networking/tftp.c
+++ b/networking/tftp.c
@@ -113,7 +113,7 @@ static int tftp_blksize_check(const char *blksize_str, int maxsize)
113 bb_error_msg("bad blocksize '%s'", blksize_str); 113 bb_error_msg("bad blocksize '%s'", blksize_str);
114 return -1; 114 return -1;
115 } 115 }
116#if ENABLE_DEBUG_TFTP 116#if ENABLE_TFTP_DEBUG
117 bb_error_msg("using blksize %u", blksize); 117 bb_error_msg("using blksize %u", blksize);
118#endif 118#endif
119 return blksize; 119 return blksize;
@@ -369,7 +369,7 @@ static int tftp_protocol(
369 waittime_ms = TFTP_TIMEOUT_MS; 369 waittime_ms = TFTP_TIMEOUT_MS;
370 370
371 send_again: 371 send_again:
372#if ENABLE_DEBUG_TFTP 372#if ENABLE_TFTP_DEBUG
373 fprintf(stderr, "sending %u bytes\n", send_len); 373 fprintf(stderr, "sending %u bytes\n", send_len);
374 for (cp = xbuf; cp < &xbuf[send_len]; cp++) 374 for (cp = xbuf; cp < &xbuf[send_len]; cp++)
375 fprintf(stderr, "%02x ", (unsigned char) *cp); 375 fprintf(stderr, "%02x ", (unsigned char) *cp);
@@ -431,7 +431,7 @@ static int tftp_protocol(
431 /* Process recv'ed packet */ 431 /* Process recv'ed packet */
432 opcode = ntohs( ((uint16_t*)rbuf)[0] ); 432 opcode = ntohs( ((uint16_t*)rbuf)[0] );
433 recv_blk = ntohs( ((uint16_t*)rbuf)[1] ); 433 recv_blk = ntohs( ((uint16_t*)rbuf)[1] );
434#if ENABLE_DEBUG_TFTP 434#if ENABLE_TFTP_DEBUG
435 fprintf(stderr, "received %d bytes: %04x %04x\n", len, opcode, recv_blk); 435 fprintf(stderr, "received %d bytes: %04x %04x\n", len, opcode, recv_blk);
436#endif 436#endif
437 if (opcode == TFTP_ERROR) { 437 if (opcode == TFTP_ERROR) {
@@ -602,7 +602,7 @@ int tftp_main(int argc UNUSED_PARAM, char **argv)
602 port = bb_lookup_port(argv[1], "udp", 69); 602 port = bb_lookup_port(argv[1], "udp", 69);
603 peer_lsa = xhost2sockaddr(argv[0], port); 603 peer_lsa = xhost2sockaddr(argv[0], port);
604 604
605#if ENABLE_DEBUG_TFTP 605#if ENABLE_TFTP_DEBUG
606 fprintf(stderr, "using server '%s', remote_file '%s', local_file '%s'\n", 606 fprintf(stderr, "using server '%s', remote_file '%s', local_file '%s'\n",
607 xmalloc_sockaddr2dotted(&peer_lsa->u.sa), 607 xmalloc_sockaddr2dotted(&peer_lsa->u.sa),
608 remote_file, local_file); 608 remote_file, local_file);
diff --git a/networking/udhcp/Config.in b/networking/udhcp/Config.in
index 55cefb673..d4b76e188 100644
--- a/networking/udhcp/Config.in
+++ b/networking/udhcp/Config.in
@@ -74,14 +74,14 @@ config FEATURE_UDHCP_PORT
74 At the cost of ~300 bytes, enables -P port option. 74 At the cost of ~300 bytes, enables -P port option.
75 This feature is typically not needed. 75 This feature is typically not needed.
76 76
77config FEATURE_UDHCP_DEBUG 77config UDHCP_DEBUG
78 bool "Compile udhcp with noisy debugging messages" 78 bool "Compile udhcp with noisy debugging messages"
79 default n 79 default n
80 depends on APP_UDHCPD || APP_UDHCPC 80 depends on APP_UDHCPD || APP_UDHCPC
81 help 81 help
82 If selected, udhcpd will output extra debugging output. 82 If selected, udhcpd will output extra debugging output.
83 83
84config FEATURE_RFC3397 84config FEATURE_UDHCP_RFC3397
85 bool "Support for RFC3397 domain search (experimental)" 85 bool "Support for RFC3397 domain search (experimental)"
86 default n 86 default n
87 depends on APP_UDHCPD || APP_UDHCPC 87 depends on APP_UDHCPD || APP_UDHCPC
@@ -89,7 +89,7 @@ config FEATURE_RFC3397
89 If selected, both client and server will support passing of domain 89 If selected, both client and server will support passing of domain
90 search lists via option 119, specified in RFC3397. 90 search lists via option 119, specified in RFC3397.
91 91
92config DHCPC_DEFAULT_SCRIPT 92config UDHCPC_DEFAULT_SCRIPT
93 string "Absolute path to config script" 93 string "Absolute path to config script"
94 default "/usr/share/udhcpc/default.script" 94 default "/usr/share/udhcpc/default.script"
95 depends on APP_UDHCPC 95 depends on APP_UDHCPC
diff --git a/networking/udhcp/Kbuild b/networking/udhcp/Kbuild
index f4be6dfc1..e938076f7 100644
--- a/networking/udhcp/Kbuild
+++ b/networking/udhcp/Kbuild
@@ -22,4 +22,4 @@ lib-$(CONFIG_APP_UDHCPD) += dhcpd.o arpping.o files.o leases.o \
22 22
23lib-$(CONFIG_APP_DUMPLEASES) += dumpleases.o 23lib-$(CONFIG_APP_DUMPLEASES) += dumpleases.o
24lib-$(CONFIG_APP_DHCPRELAY) += dhcprelay.o 24lib-$(CONFIG_APP_DHCPRELAY) += dhcprelay.o
25lib-$(CONFIG_FEATURE_RFC3397) += domain_codec.o 25lib-$(CONFIG_FEATURE_UDHCP_RFC3397) += domain_codec.o
diff --git a/networking/udhcp/common.h b/networking/udhcp/common.h
index de4a8c75a..15f0d9a54 100644
--- a/networking/udhcp/common.h
+++ b/networking/udhcp/common.h
@@ -18,7 +18,7 @@
18# pragma GCC visibility push(hidden) 18# pragma GCC visibility push(hidden)
19#endif 19#endif
20 20
21#define DEFAULT_SCRIPT CONFIG_DHCPC_DEFAULT_SCRIPT 21#define DEFAULT_SCRIPT CONFIG_UDHCPC_DEFAULT_SCRIPT
22 22
23extern const uint8_t MAC_BCAST_ADDR[6]; /* six all-ones */ 23extern const uint8_t MAC_BCAST_ADDR[6]; /* six all-ones */
24 24
@@ -97,7 +97,7 @@ int udhcp_listen_socket(/*uint32_t ip,*/ int port, const char *inf) FAST_FUNC;
97/* Returns 1 if no reply received */ 97/* Returns 1 if no reply received */
98int arpping(uint32_t test_ip, uint32_t from_ip, uint8_t *from_mac, const char *interface) FAST_FUNC; 98int arpping(uint32_t test_ip, uint32_t from_ip, uint8_t *from_mac, const char *interface) FAST_FUNC;
99 99
100#if ENABLE_FEATURE_UDHCP_DEBUG 100#if ENABLE_UDHCP_DEBUG
101# define DEBUG(str, args...) bb_info_msg("### " str, ## args) 101# define DEBUG(str, args...) bb_info_msg("### " str, ## args)
102#else 102#else
103# define DEBUG(str, args...) do {;} while (0) 103# define DEBUG(str, args...) do {;} while (0)
diff --git a/networking/udhcp/domain_codec.c b/networking/udhcp/domain_codec.c
index 6da4e8d69..6f051c4b0 100644
--- a/networking/udhcp/domain_codec.c
+++ b/networking/udhcp/domain_codec.c
@@ -7,7 +7,7 @@
7 * Licensed under GPLv2 or later, see file LICENSE in this tarball for details. 7 * Licensed under GPLv2 or later, see file LICENSE in this tarball for details.
8 */ 8 */
9 9
10#if ENABLE_FEATURE_RFC3397 10#if ENABLE_FEATURE_UDHCP_RFC3397
11 11
12#include "common.h" 12#include "common.h"
13#include "options.h" 13#include "options.h"
@@ -202,4 +202,4 @@ uint8_t* FAST_FUNC dname_enc(const uint8_t *cstr, int clen, const char *src, int
202 return dname; 202 return dname;
203} 203}
204 204
205#endif /* ENABLE_FEATURE_RFC3397 */ 205#endif /* ENABLE_FEATURE_UDHCP_RFC3397 */
diff --git a/networking/udhcp/files.c b/networking/udhcp/files.c
index b7bad3309..0b97d76a5 100644
--- a/networking/udhcp/files.c
+++ b/networking/udhcp/files.c
@@ -90,7 +90,7 @@ static void attach_option(struct option_set **opt_list,
90 if (!existing) { 90 if (!existing) {
91 DEBUG("Attaching option %02x to list", option->code); 91 DEBUG("Attaching option %02x to list", option->code);
92 92
93#if ENABLE_FEATURE_RFC3397 93#if ENABLE_FEATURE_UDHCP_RFC3397
94 if ((option->flags & TYPE_MASK) == OPTION_STR1035) 94 if ((option->flags & TYPE_MASK) == OPTION_STR1035)
95 /* reuse buffer and length for RFC1035-formatted string */ 95 /* reuse buffer and length for RFC1035-formatted string */
96 buffer = (char *)dname_enc(NULL, 0, buffer, &length); 96 buffer = (char *)dname_enc(NULL, 0, buffer, &length);
@@ -109,7 +109,7 @@ static void attach_option(struct option_set **opt_list,
109 109
110 new->next = *curr; 110 new->next = *curr;
111 *curr = new; 111 *curr = new;
112#if ENABLE_FEATURE_RFC3397 112#if ENABLE_FEATURE_UDHCP_RFC3397
113 if ((option->flags & TYPE_MASK) == OPTION_STR1035 && buffer != NULL) 113 if ((option->flags & TYPE_MASK) == OPTION_STR1035 && buffer != NULL)
114 free(buffer); 114 free(buffer);
115#endif 115#endif
@@ -119,7 +119,7 @@ static void attach_option(struct option_set **opt_list,
119 /* add it to an existing option */ 119 /* add it to an existing option */
120 DEBUG("Attaching option %02x to existing member of list", option->code); 120 DEBUG("Attaching option %02x to existing member of list", option->code);
121 if (option->flags & OPTION_LIST) { 121 if (option->flags & OPTION_LIST) {
122#if ENABLE_FEATURE_RFC3397 122#if ENABLE_FEATURE_UDHCP_RFC3397
123 if ((option->flags & TYPE_MASK) == OPTION_STR1035) 123 if ((option->flags & TYPE_MASK) == OPTION_STR1035)
124 /* reuse buffer and length for RFC1035-formatted string */ 124 /* reuse buffer and length for RFC1035-formatted string */
125 buffer = (char *)dname_enc(existing->data + 2, 125 buffer = (char *)dname_enc(existing->data + 2,
@@ -139,7 +139,7 @@ static void attach_option(struct option_set **opt_list,
139 memcpy(existing->data + existing->data[OPT_LEN] + 2, buffer, length); 139 memcpy(existing->data + existing->data[OPT_LEN] + 2, buffer, length);
140 existing->data[OPT_LEN] += length; 140 existing->data[OPT_LEN] += length;
141 } /* else, ignore the data, we could put this in a second option in the future */ 141 } /* else, ignore the data, we could put this in a second option in the future */
142#if ENABLE_FEATURE_RFC3397 142#if ENABLE_FEATURE_UDHCP_RFC3397
143 if ((option->flags & TYPE_MASK) == OPTION_STR1035 && buffer != NULL) 143 if ((option->flags & TYPE_MASK) == OPTION_STR1035 && buffer != NULL)
144 free(buffer); 144 free(buffer);
145#endif 145#endif
@@ -190,7 +190,7 @@ static int read_opt(const char *const_line, void *arg)
190 retval = read_ip(val, buffer + 4); 190 retval = read_ip(val, buffer + 4);
191 break; 191 break;
192 case OPTION_STRING: 192 case OPTION_STRING:
193#if ENABLE_FEATURE_RFC3397 193#if ENABLE_FEATURE_UDHCP_RFC3397
194 case OPTION_STR1035: 194 case OPTION_STR1035:
195#endif 195#endif
196 length = strlen(val); 196 length = strlen(val);
@@ -266,7 +266,7 @@ static int read_staticlease(const char *const_line, void *arg)
266 266
267 addStaticLease(arg, mac_bytes, ip); 267 addStaticLease(arg, mac_bytes, ip);
268 268
269 if (ENABLE_FEATURE_UDHCP_DEBUG) printStaticLeases(arg); 269 if (ENABLE_UDHCP_DEBUG) printStaticLeases(arg);
270 270
271 return 1; 271 return 1;
272} 272}
diff --git a/networking/udhcp/options.c b/networking/udhcp/options.c
index b6e77e3e5..6bf99e2b9 100644
--- a/networking/udhcp/options.c
+++ b/networking/udhcp/options.c
@@ -43,7 +43,7 @@ const struct dhcp_option dhcp_options[] = {
43 { OPTION_STRING , 0x42 }, /* tftp */ 43 { OPTION_STRING , 0x42 }, /* tftp */
44 { OPTION_STRING , 0x43 }, /* bootfile */ 44 { OPTION_STRING , 0x43 }, /* bootfile */
45 { OPTION_STRING , 0x4D }, /* userclass */ 45 { OPTION_STRING , 0x4D }, /* userclass */
46#if ENABLE_FEATURE_RFC3397 46#if ENABLE_FEATURE_UDHCP_RFC3397
47 { OPTION_STR1035 | OPTION_LIST , 0x77 }, /* search */ 47 { OPTION_STR1035 | OPTION_LIST , 0x77 }, /* search */
48#endif 48#endif
49 /* MSIE's "Web Proxy Autodiscovery Protocol" support */ 49 /* MSIE's "Web Proxy Autodiscovery Protocol" support */
@@ -92,7 +92,7 @@ const char dhcp_option_strings[] ALIGN1 =
92 "tftp" "\0" 92 "tftp" "\0"
93 "bootfile" "\0" 93 "bootfile" "\0"
94 "userclass" "\0" 94 "userclass" "\0"
95#if ENABLE_FEATURE_RFC3397 95#if ENABLE_FEATURE_UDHCP_RFC3397
96 "search" "\0" 96 "search" "\0"
97#endif 97#endif
98 /* MSIE's "Web Proxy Autodiscovery Protocol" support */ 98 /* MSIE's "Web Proxy Autodiscovery Protocol" support */
@@ -106,7 +106,7 @@ const uint8_t dhcp_option_lengths[] ALIGN1 = {
106 [OPTION_IP_PAIR] = 8, 106 [OPTION_IP_PAIR] = 8,
107 [OPTION_BOOLEAN] = 1, 107 [OPTION_BOOLEAN] = 1,
108 [OPTION_STRING] = 1, 108 [OPTION_STRING] = 1,
109#if ENABLE_FEATURE_RFC3397 109#if ENABLE_FEATURE_UDHCP_RFC3397
110 [OPTION_STR1035] = 1, 110 [OPTION_STR1035] = 1,
111#endif 111#endif
112 [OPTION_U8] = 1, 112 [OPTION_U8] = 1,
diff --git a/networking/udhcp/options.h b/networking/udhcp/options.h
index fcf1c9a6d..d18a353d0 100644
--- a/networking/udhcp/options.h
+++ b/networking/udhcp/options.h
@@ -13,7 +13,7 @@ enum {
13 OPTION_IP = 1, 13 OPTION_IP = 1,
14 OPTION_IP_PAIR, 14 OPTION_IP_PAIR,
15 OPTION_STRING, 15 OPTION_STRING,
16#if ENABLE_FEATURE_RFC3397 16#if ENABLE_FEATURE_UDHCP_RFC3397
17 OPTION_STR1035, /* RFC1035 compressed domain name list */ 17 OPTION_STR1035, /* RFC1035 compressed domain name list */
18#endif 18#endif
19 OPTION_BOOLEAN, 19 OPTION_BOOLEAN,
@@ -109,7 +109,7 @@ uint8_t *get_option(struct dhcpMessage *packet, int code) FAST_FUNC;
109int end_option(uint8_t *optionptr) FAST_FUNC; 109int end_option(uint8_t *optionptr) FAST_FUNC;
110int add_option_string(uint8_t *optionptr, uint8_t *string) FAST_FUNC; 110int add_option_string(uint8_t *optionptr, uint8_t *string) FAST_FUNC;
111int add_simple_option(uint8_t *optionptr, uint8_t code, uint32_t data) FAST_FUNC; 111int add_simple_option(uint8_t *optionptr, uint8_t code, uint32_t data) FAST_FUNC;
112#if ENABLE_FEATURE_RFC3397 112#if ENABLE_FEATURE_UDHCP_RFC3397
113char *dname_dec(const uint8_t *cstr, int clen, const char *pre) FAST_FUNC; 113char *dname_dec(const uint8_t *cstr, int clen, const char *pre) FAST_FUNC;
114uint8_t *dname_enc(const uint8_t *cstr, int clen, const char *src, int *retlen) FAST_FUNC; 114uint8_t *dname_enc(const uint8_t *cstr, int clen, const char *src, int *retlen) FAST_FUNC;
115#endif 115#endif
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);
diff --git a/networking/udhcp/static_leases.c b/networking/udhcp/static_leases.c
index bd07c5026..43f1c9825 100644
--- a/networking/udhcp/static_leases.c
+++ b/networking/udhcp/static_leases.c
@@ -79,7 +79,7 @@ uint32_t FAST_FUNC reservedIp(struct static_lease *lease_struct, uint32_t ip)
79 return return_val; 79 return return_val;
80} 80}
81 81
82#if ENABLE_FEATURE_UDHCP_DEBUG 82#if ENABLE_UDHCP_DEBUG
83/* Print out static leases just to check what's going on */ 83/* Print out static leases just to check what's going on */
84/* Takes the address of the pointer to the static_leases linked list */ 84/* Takes the address of the pointer to the static_leases linked list */
85void FAST_FUNC printStaticLeases(struct static_lease **arg) 85void FAST_FUNC printStaticLeases(struct static_lease **arg)
diff --git a/scripts/defconfig b/scripts/defconfig
index 19ea10a56..9378dc6f5 100644
--- a/scripts/defconfig
+++ b/scripts/defconfig
@@ -556,7 +556,7 @@ CONFIG_FEATURE_CHAT_IMPLICIT_CR=y
556# CONFIG_FEATURE_CHAT_CLR_ABORT is not set 556# CONFIG_FEATURE_CHAT_CLR_ABORT is not set
557CONFIG_CHRT=y 557CONFIG_CHRT=y
558CONFIG_CROND=y 558CONFIG_CROND=y
559# CONFIG_DEBUG_CROND_OPTION is not set 559# CONFIG_FEATURE_CROND_D is not set
560CONFIG_FEATURE_CROND_CALL_SENDMAIL=y 560CONFIG_FEATURE_CROND_CALL_SENDMAIL=y
561CONFIG_CRONTAB=y 561CONFIG_CRONTAB=y
562CONFIG_DC=y 562CONFIG_DC=y
@@ -711,7 +711,7 @@ CONFIG_TFTPD=y
711CONFIG_FEATURE_TFTP_GET=y 711CONFIG_FEATURE_TFTP_GET=y
712CONFIG_FEATURE_TFTP_PUT=y 712CONFIG_FEATURE_TFTP_PUT=y
713CONFIG_FEATURE_TFTP_BLOCKSIZE=y 713CONFIG_FEATURE_TFTP_BLOCKSIZE=y
714# CONFIG_DEBUG_TFTP is not set 714# CONFIG_TFTP_DEBUG is not set
715CONFIG_TRACEROUTE=y 715CONFIG_TRACEROUTE=y
716# CONFIG_FEATURE_TRACEROUTE_VERBOSE is not set 716# CONFIG_FEATURE_TRACEROUTE_VERBOSE is not set
717# CONFIG_FEATURE_TRACEROUTE_SOURCE_ROUTE is not set 717# CONFIG_FEATURE_TRACEROUTE_SOURCE_ROUTE is not set
@@ -724,9 +724,9 @@ CONFIG_DHCPD_LEASES_FILE="/var/lib/misc/udhcpd.leases"
724CONFIG_APP_UDHCPC=y 724CONFIG_APP_UDHCPC=y
725CONFIG_FEATURE_UDHCPC_ARPING=y 725CONFIG_FEATURE_UDHCPC_ARPING=y
726# CONFIG_FEATURE_UDHCP_PORT is not set 726# CONFIG_FEATURE_UDHCP_PORT is not set
727# CONFIG_FEATURE_UDHCP_DEBUG is not set 727# CONFIG_UDHCP_DEBUG is not set
728CONFIG_FEATURE_RFC3397=y 728CONFIG_FEATURE_UDHCP_RFC3397=y
729CONFIG_DHCPC_DEFAULT_SCRIPT="/usr/share/udhcpc/default.script" 729CONFIG_UDHCPC_DEFAULT_SCRIPT="/usr/share/udhcpc/default.script"
730CONFIG_UDHCPC_SLACK_FOR_BUGGY_SERVERS=80 730CONFIG_UDHCPC_SLACK_FOR_BUGGY_SERVERS=80
731CONFIG_VCONFIG=y 731CONFIG_VCONFIG=y
732CONFIG_WGET=y 732CONFIG_WGET=y
diff --git a/util-linux/Config.in b/util-linux/Config.in
index 8cecc60f2..976507b68 100644
--- a/util-linux/Config.in
+++ b/util-linux/Config.in
@@ -403,10 +403,8 @@ config FEATURE_USE_TERMIOS
403 unable to move the cursor. 403 unable to move the cursor.
404 404
405config VOLUMEID 405config VOLUMEID
406 bool "Routines for detecting label and uuid on common filesystems" 406 bool #No description makes it a hidden option
407 default n 407 default n
408 help
409 TODO
410 408
411config FEATURE_VOLUMEID_EXT 409config FEATURE_VOLUMEID_EXT
412 bool "Ext filesystem" 410 bool "Ext filesystem"