build system: tidying up CONFIG_xxx names (suggested by Rob)

This commit is contained in:
Denis Vlasenko 2008-11-06 00:49:59 +00:00
parent 202ac504e1
commit 35a064b67f
19 changed files with 57 additions and 59 deletions

View File

@ -256,18 +256,18 @@ config BUSYBOX_EXEC_PATH
# These are auto-selected by other options # These are auto-selected by other options
config FEATURE_SYSLOG config FEATURE_SYSLOG
bool "Support for logging to syslog" bool #No description makes it a hidden option
default n default n
help #help
This option is auto-selected when you select any applet which may # This option is auto-selected when you select any applet which may
send its output to syslog. You do not need to select it manually. # send its output to syslog. You do not need to select it manually.
config FEATURE_HAVE_RPC config FEATURE_HAVE_RPC
bool "RPC support" bool #No description makes it a hidden option
default n default n
help #help
This is automatically selected if any of enabled applets need it. # This is automatically selected if any of enabled applets need it.
You do not need to select it manually. # You do not need to select it manually.
endmenu endmenu

View File

@ -555,7 +555,7 @@ CONFIG_FEATURE_CHAT_VAR_ABORT_LEN=y
CONFIG_FEATURE_CHAT_CLR_ABORT=y CONFIG_FEATURE_CHAT_CLR_ABORT=y
CONFIG_CHRT=y CONFIG_CHRT=y
CONFIG_CROND=y CONFIG_CROND=y
CONFIG_DEBUG_CROND_OPTION=y CONFIG_FEATURE_CROND_D=y
CONFIG_FEATURE_CROND_CALL_SENDMAIL=y CONFIG_FEATURE_CROND_CALL_SENDMAIL=y
CONFIG_CRONTAB=y CONFIG_CRONTAB=y
CONFIG_DC=y CONFIG_DC=y
@ -706,7 +706,7 @@ CONFIG_TFTPD=y
CONFIG_FEATURE_TFTP_GET=y CONFIG_FEATURE_TFTP_GET=y
CONFIG_FEATURE_TFTP_PUT=y CONFIG_FEATURE_TFTP_PUT=y
CONFIG_FEATURE_TFTP_BLOCKSIZE=y CONFIG_FEATURE_TFTP_BLOCKSIZE=y
CONFIG_DEBUG_TFTP=y CONFIG_TFTP_DEBUG=y
CONFIG_TRACEROUTE=y CONFIG_TRACEROUTE=y
CONFIG_FEATURE_TRACEROUTE_VERBOSE=y CONFIG_FEATURE_TRACEROUTE_VERBOSE=y
CONFIG_FEATURE_TRACEROUTE_SOURCE_ROUTE=y CONFIG_FEATURE_TRACEROUTE_SOURCE_ROUTE=y
@ -719,9 +719,9 @@ CONFIG_DHCPD_LEASES_FILE="/var/lib/misc/udhcpd.leases"
CONFIG_APP_UDHCPC=y CONFIG_APP_UDHCPC=y
CONFIG_FEATURE_UDHCPC_ARPING=y CONFIG_FEATURE_UDHCPC_ARPING=y
CONFIG_FEATURE_UDHCP_PORT=y CONFIG_FEATURE_UDHCP_PORT=y
CONFIG_FEATURE_UDHCP_DEBUG=y CONFIG_UDHCP_DEBUG=y
CONFIG_FEATURE_RFC3397=y CONFIG_FEATURE_UDHCP_RFC3397=y
CONFIG_DHCPC_DEFAULT_SCRIPT="/usr/share/udhcpc/default.script" CONFIG_UDHCPC_DEFAULT_SCRIPT="/usr/share/udhcpc/default.script"
CONFIG_UDHCPC_SLACK_FOR_BUGGY_SERVERS=80 CONFIG_UDHCPC_SLACK_FOR_BUGGY_SERVERS=80
CONFIG_VCONFIG=y CONFIG_VCONFIG=y
CONFIG_WGET=y CONFIG_WGET=y

View File

@ -1037,7 +1037,7 @@ enum {
PARSE_GREEDY = 0x00040000, // last token takes entire remainder of the line PARSE_GREEDY = 0x00040000, // last token takes entire remainder of the line
PARSE_MIN_DIE = 0x00100000, // die if < min tokens found PARSE_MIN_DIE = 0x00100000, // die if < min tokens found
// keep a copy of current line // keep a copy of current line
PARSE_KEEP_COPY = 0x00200000 * ENABLE_DEBUG_CROND_OPTION, PARSE_KEEP_COPY = 0x00200000 * ENABLE_FEATURE_CROND_D,
// PARSE_ESCAPE = 0x00400000, // process escape sequences in tokens // PARSE_ESCAPE = 0x00400000, // process escape sequences in tokens
// NORMAL is: // NORMAL is:
// * remove leading and trailing delimiters and collapse // * remove leading and trailing delimiters and collapse

View File

@ -535,13 +535,13 @@
"\n F Input from file" \ "\n F Input from file" \
#define crond_trivial_usage \ #define crond_trivial_usage \
"-fbS -l N " USE_DEBUG_CROND_OPTION("-d N ") "-L LOGFILE -c DIR" "-fbS -l N " USE_FEATURE_CROND_D("-d N ") "-L LOGFILE -c DIR"
#define crond_full_usage "\n\n" \ #define crond_full_usage "\n\n" \
" -f Foreground" \ " -f Foreground" \
"\n -b Background (default)" \ "\n -b Background (default)" \
"\n -S Log to syslog (default)" \ "\n -S Log to syslog (default)" \
"\n -l Set log level. 0 is the most verbose, default 8" \ "\n -l Set log level. 0 is the most verbose, default 8" \
USE_DEBUG_CROND_OPTION( \ USE_FEATURE_CROND_D( \
"\n -d Set log level, log to stderr" \ "\n -d Set log level, log to stderr" \
) \ ) \
"\n -L Log to file" \ "\n -L Log to file" \
@ -4349,7 +4349,7 @@
"\n -C,--clientid-none Suppress default client identifier" \ "\n -C,--clientid-none Suppress default client identifier" \
"\n -p,--pidfile=file Create pidfile" \ "\n -p,--pidfile=file Create pidfile" \
"\n -r,--request=IP IP address to request" \ "\n -r,--request=IP IP address to request" \
"\n -s,--script=file Run file at DHCP events (default "CONFIG_DHCPC_DEFAULT_SCRIPT")" \ "\n -s,--script=file Run file at DHCP events (default "CONFIG_UDHCPC_DEFAULT_SCRIPT")" \
"\n -t,--retries=N Send up to N request packets" \ "\n -t,--retries=N Send up to N request packets" \
"\n -T,--timeout=N Try to get a lease for N seconds (default 3)" \ "\n -T,--timeout=N Try to get a lease for N seconds (default 3)" \
"\n -A,--tryagain=N Wait N seconds (default 20) after failure" \ "\n -A,--tryagain=N Wait N seconds (default 20) after failure" \
@ -4378,7 +4378,7 @@
"\n -C Suppress default client identifier" \ "\n -C Suppress default client identifier" \
"\n -p file Create pidfile" \ "\n -p file Create pidfile" \
"\n -r IP IP address to request" \ "\n -r IP IP address to request" \
"\n -s file Run file at DHCP events (default "CONFIG_DHCPC_DEFAULT_SCRIPT")" \ "\n -s file Run file at DHCP events (default "CONFIG_UDHCPC_DEFAULT_SCRIPT")" \
"\n -t N Send up to N request packets" \ "\n -t N Send up to N request packets" \
"\n -T N Try to get a lease for N seconds (default 3)" \ "\n -T N Try to get a lease for N seconds (default 3)" \
"\n -A N Wait N seconds (default 20) after failure" \ "\n -A N Wait N seconds (default 20) after failure" \

View File

@ -107,7 +107,7 @@ config CROND
# Run daily cron jobs at 4:40 every day: # Run daily cron jobs at 4:40 every day:
40 4 * * * /etc/cron/daily > /dev/null 2>&1 40 4 * * * /etc/cron/daily > /dev/null 2>&1
config DEBUG_CROND_OPTION config FEATURE_CROND_D
bool "Support option -d to redirect output to stderr" bool "Support option -d to redirect output to stderr"
depends on CROND depends on CROND
default n default n

View File

@ -80,9 +80,9 @@ enum {
OPT_b = (1 << 3), OPT_b = (1 << 3),
OPT_S = (1 << 4), OPT_S = (1 << 4),
OPT_c = (1 << 5), OPT_c = (1 << 5),
OPT_d = (1 << 6) * ENABLE_DEBUG_CROND_OPTION, OPT_d = (1 << 6) * ENABLE_FEATURE_CROND_D,
}; };
#if ENABLE_DEBUG_CROND_OPTION #if ENABLE_FEATURE_CROND_D
#define DebugOpt (option_mask32 & OPT_d) #define DebugOpt (option_mask32 & OPT_d)
#else #else
#define DebugOpt 0 #define DebugOpt 0
@ -166,11 +166,11 @@ int crond_main(int argc UNUSED_PARAM, char **argv)
INIT_G(); INIT_G();
/* "-b after -f is ignored", and so on for every pair a-b */ /* "-b after -f is ignored", and so on for every pair a-b */
opt_complementary = "f-b:b-f:S-L:L-S" USE_DEBUG_CROND_OPTION(":d-l") opt_complementary = "f-b:b-f:S-L:L-S" USE_FEATURE_CROND_D(":d-l")
":l+:d+"; /* -l and -d have numeric param */ ":l+:d+"; /* -l and -d have numeric param */
opt = getopt32(argv, "l:L:fbSc:" USE_DEBUG_CROND_OPTION("d:"), opt = getopt32(argv, "l:L:fbSc:" USE_FEATURE_CROND_D("d:"),
&LogLevel, &LogFile, &CDir &LogLevel, &LogFile, &CDir
USE_DEBUG_CROND_OPTION(,&LogLevel)); USE_FEATURE_CROND_D(,&LogLevel));
/* both -d N and -l N set the same variable: LogLevel */ /* both -d N and -l N set the same variable: LogLevel */
if (!(opt & OPT_f)) { if (!(opt & OPT_f)) {

View File

@ -859,7 +859,7 @@ config FEATURE_TFTP_BLOCKSIZE
Allow tftp to specify block size, and tftpd to understand Allow tftp to specify block size, and tftpd to understand
"blksize" option. "blksize" option.
config DEBUG_TFTP config TFTP_DEBUG
bool "Enable debug" bool "Enable debug"
default n default n
depends on TFTP depends on TFTP

View File

@ -113,7 +113,7 @@ static int tftp_blksize_check(const char *blksize_str, int maxsize)
bb_error_msg("bad blocksize '%s'", blksize_str); bb_error_msg("bad blocksize '%s'", blksize_str);
return -1; return -1;
} }
#if ENABLE_DEBUG_TFTP #if ENABLE_TFTP_DEBUG
bb_error_msg("using blksize %u", blksize); bb_error_msg("using blksize %u", blksize);
#endif #endif
return blksize; return blksize;
@ -369,7 +369,7 @@ static int tftp_protocol(
waittime_ms = TFTP_TIMEOUT_MS; waittime_ms = TFTP_TIMEOUT_MS;
send_again: send_again:
#if ENABLE_DEBUG_TFTP #if ENABLE_TFTP_DEBUG
fprintf(stderr, "sending %u bytes\n", send_len); fprintf(stderr, "sending %u bytes\n", send_len);
for (cp = xbuf; cp < &xbuf[send_len]; cp++) for (cp = xbuf; cp < &xbuf[send_len]; cp++)
fprintf(stderr, "%02x ", (unsigned char) *cp); fprintf(stderr, "%02x ", (unsigned char) *cp);
@ -431,7 +431,7 @@ static int tftp_protocol(
/* Process recv'ed packet */ /* Process recv'ed packet */
opcode = ntohs( ((uint16_t*)rbuf)[0] ); opcode = ntohs( ((uint16_t*)rbuf)[0] );
recv_blk = ntohs( ((uint16_t*)rbuf)[1] ); recv_blk = ntohs( ((uint16_t*)rbuf)[1] );
#if ENABLE_DEBUG_TFTP #if ENABLE_TFTP_DEBUG
fprintf(stderr, "received %d bytes: %04x %04x\n", len, opcode, recv_blk); fprintf(stderr, "received %d bytes: %04x %04x\n", len, opcode, recv_blk);
#endif #endif
if (opcode == TFTP_ERROR) { if (opcode == TFTP_ERROR) {
@ -602,7 +602,7 @@ int tftp_main(int argc UNUSED_PARAM, char **argv)
port = bb_lookup_port(argv[1], "udp", 69); port = bb_lookup_port(argv[1], "udp", 69);
peer_lsa = xhost2sockaddr(argv[0], port); peer_lsa = xhost2sockaddr(argv[0], port);
#if ENABLE_DEBUG_TFTP #if ENABLE_TFTP_DEBUG
fprintf(stderr, "using server '%s', remote_file '%s', local_file '%s'\n", fprintf(stderr, "using server '%s', remote_file '%s', local_file '%s'\n",
xmalloc_sockaddr2dotted(&peer_lsa->u.sa), xmalloc_sockaddr2dotted(&peer_lsa->u.sa),
remote_file, local_file); remote_file, local_file);

View File

@ -74,14 +74,14 @@ config FEATURE_UDHCP_PORT
At the cost of ~300 bytes, enables -P port option. At the cost of ~300 bytes, enables -P port option.
This feature is typically not needed. This feature is typically not needed.
config FEATURE_UDHCP_DEBUG config UDHCP_DEBUG
bool "Compile udhcp with noisy debugging messages" bool "Compile udhcp with noisy debugging messages"
default n default n
depends on APP_UDHCPD || APP_UDHCPC depends on APP_UDHCPD || APP_UDHCPC
help help
If selected, udhcpd will output extra debugging output. If selected, udhcpd will output extra debugging output.
config FEATURE_RFC3397 config FEATURE_UDHCP_RFC3397
bool "Support for RFC3397 domain search (experimental)" bool "Support for RFC3397 domain search (experimental)"
default n default n
depends on APP_UDHCPD || APP_UDHCPC depends on APP_UDHCPD || APP_UDHCPC
@ -89,7 +89,7 @@ config FEATURE_RFC3397
If selected, both client and server will support passing of domain If selected, both client and server will support passing of domain
search lists via option 119, specified in RFC3397. search lists via option 119, specified in RFC3397.
config DHCPC_DEFAULT_SCRIPT config UDHCPC_DEFAULT_SCRIPT
string "Absolute path to config script" string "Absolute path to config script"
default "/usr/share/udhcpc/default.script" default "/usr/share/udhcpc/default.script"
depends on APP_UDHCPC depends on APP_UDHCPC

View File

@ -22,4 +22,4 @@ lib-$(CONFIG_APP_UDHCPD) += dhcpd.o arpping.o files.o leases.o \
lib-$(CONFIG_APP_DUMPLEASES) += dumpleases.o lib-$(CONFIG_APP_DUMPLEASES) += dumpleases.o
lib-$(CONFIG_APP_DHCPRELAY) += dhcprelay.o lib-$(CONFIG_APP_DHCPRELAY) += dhcprelay.o
lib-$(CONFIG_FEATURE_RFC3397) += domain_codec.o lib-$(CONFIG_FEATURE_UDHCP_RFC3397) += domain_codec.o

View File

@ -18,7 +18,7 @@
# pragma GCC visibility push(hidden) # pragma GCC visibility push(hidden)
#endif #endif
#define DEFAULT_SCRIPT CONFIG_DHCPC_DEFAULT_SCRIPT #define DEFAULT_SCRIPT CONFIG_UDHCPC_DEFAULT_SCRIPT
extern const uint8_t MAC_BCAST_ADDR[6]; /* six all-ones */ extern const uint8_t MAC_BCAST_ADDR[6]; /* six all-ones */
@ -97,7 +97,7 @@ int udhcp_listen_socket(/*uint32_t ip,*/ int port, const char *inf) FAST_FUNC;
/* Returns 1 if no reply received */ /* Returns 1 if no reply received */
int arpping(uint32_t test_ip, uint32_t from_ip, uint8_t *from_mac, const char *interface) FAST_FUNC; int arpping(uint32_t test_ip, uint32_t from_ip, uint8_t *from_mac, const char *interface) FAST_FUNC;
#if ENABLE_FEATURE_UDHCP_DEBUG #if ENABLE_UDHCP_DEBUG
# define DEBUG(str, args...) bb_info_msg("### " str, ## args) # define DEBUG(str, args...) bb_info_msg("### " str, ## args)
#else #else
# define DEBUG(str, args...) do {;} while (0) # define DEBUG(str, args...) do {;} while (0)

View File

@ -7,7 +7,7 @@
* Licensed under GPLv2 or later, see file LICENSE in this tarball for details. * Licensed under GPLv2 or later, see file LICENSE in this tarball for details.
*/ */
#if ENABLE_FEATURE_RFC3397 #if ENABLE_FEATURE_UDHCP_RFC3397
#include "common.h" #include "common.h"
#include "options.h" #include "options.h"
@ -202,4 +202,4 @@ uint8_t* FAST_FUNC dname_enc(const uint8_t *cstr, int clen, const char *src, int
return dname; return dname;
} }
#endif /* ENABLE_FEATURE_RFC3397 */ #endif /* ENABLE_FEATURE_UDHCP_RFC3397 */

View File

@ -90,7 +90,7 @@ static void attach_option(struct option_set **opt_list,
if (!existing) { if (!existing) {
DEBUG("Attaching option %02x to list", option->code); DEBUG("Attaching option %02x to list", option->code);
#if ENABLE_FEATURE_RFC3397 #if ENABLE_FEATURE_UDHCP_RFC3397
if ((option->flags & TYPE_MASK) == OPTION_STR1035) if ((option->flags & TYPE_MASK) == OPTION_STR1035)
/* reuse buffer and length for RFC1035-formatted string */ /* reuse buffer and length for RFC1035-formatted string */
buffer = (char *)dname_enc(NULL, 0, buffer, &length); buffer = (char *)dname_enc(NULL, 0, buffer, &length);
@ -109,7 +109,7 @@ static void attach_option(struct option_set **opt_list,
new->next = *curr; new->next = *curr;
*curr = new; *curr = new;
#if ENABLE_FEATURE_RFC3397 #if ENABLE_FEATURE_UDHCP_RFC3397
if ((option->flags & TYPE_MASK) == OPTION_STR1035 && buffer != NULL) if ((option->flags & TYPE_MASK) == OPTION_STR1035 && buffer != NULL)
free(buffer); free(buffer);
#endif #endif
@ -119,7 +119,7 @@ static void attach_option(struct option_set **opt_list,
/* add it to an existing option */ /* add it to an existing option */
DEBUG("Attaching option %02x to existing member of list", option->code); DEBUG("Attaching option %02x to existing member of list", option->code);
if (option->flags & OPTION_LIST) { if (option->flags & OPTION_LIST) {
#if ENABLE_FEATURE_RFC3397 #if ENABLE_FEATURE_UDHCP_RFC3397
if ((option->flags & TYPE_MASK) == OPTION_STR1035) if ((option->flags & TYPE_MASK) == OPTION_STR1035)
/* reuse buffer and length for RFC1035-formatted string */ /* reuse buffer and length for RFC1035-formatted string */
buffer = (char *)dname_enc(existing->data + 2, buffer = (char *)dname_enc(existing->data + 2,
@ -139,7 +139,7 @@ static void attach_option(struct option_set **opt_list,
memcpy(existing->data + existing->data[OPT_LEN] + 2, buffer, length); memcpy(existing->data + existing->data[OPT_LEN] + 2, buffer, length);
existing->data[OPT_LEN] += length; existing->data[OPT_LEN] += length;
} /* else, ignore the data, we could put this in a second option in the future */ } /* else, ignore the data, we could put this in a second option in the future */
#if ENABLE_FEATURE_RFC3397 #if ENABLE_FEATURE_UDHCP_RFC3397
if ((option->flags & TYPE_MASK) == OPTION_STR1035 && buffer != NULL) if ((option->flags & TYPE_MASK) == OPTION_STR1035 && buffer != NULL)
free(buffer); free(buffer);
#endif #endif
@ -190,7 +190,7 @@ static int read_opt(const char *const_line, void *arg)
retval = read_ip(val, buffer + 4); retval = read_ip(val, buffer + 4);
break; break;
case OPTION_STRING: case OPTION_STRING:
#if ENABLE_FEATURE_RFC3397 #if ENABLE_FEATURE_UDHCP_RFC3397
case OPTION_STR1035: case OPTION_STR1035:
#endif #endif
length = strlen(val); length = strlen(val);
@ -266,7 +266,7 @@ static int read_staticlease(const char *const_line, void *arg)
addStaticLease(arg, mac_bytes, ip); addStaticLease(arg, mac_bytes, ip);
if (ENABLE_FEATURE_UDHCP_DEBUG) printStaticLeases(arg); if (ENABLE_UDHCP_DEBUG) printStaticLeases(arg);
return 1; return 1;
} }

View File

@ -43,7 +43,7 @@ const struct dhcp_option dhcp_options[] = {
{ OPTION_STRING , 0x42 }, /* tftp */ { OPTION_STRING , 0x42 }, /* tftp */
{ OPTION_STRING , 0x43 }, /* bootfile */ { OPTION_STRING , 0x43 }, /* bootfile */
{ OPTION_STRING , 0x4D }, /* userclass */ { OPTION_STRING , 0x4D }, /* userclass */
#if ENABLE_FEATURE_RFC3397 #if ENABLE_FEATURE_UDHCP_RFC3397
{ OPTION_STR1035 | OPTION_LIST , 0x77 }, /* search */ { OPTION_STR1035 | OPTION_LIST , 0x77 }, /* search */
#endif #endif
/* MSIE's "Web Proxy Autodiscovery Protocol" support */ /* MSIE's "Web Proxy Autodiscovery Protocol" support */
@ -92,7 +92,7 @@ const char dhcp_option_strings[] ALIGN1 =
"tftp" "\0" "tftp" "\0"
"bootfile" "\0" "bootfile" "\0"
"userclass" "\0" "userclass" "\0"
#if ENABLE_FEATURE_RFC3397 #if ENABLE_FEATURE_UDHCP_RFC3397
"search" "\0" "search" "\0"
#endif #endif
/* MSIE's "Web Proxy Autodiscovery Protocol" support */ /* MSIE's "Web Proxy Autodiscovery Protocol" support */
@ -106,7 +106,7 @@ const uint8_t dhcp_option_lengths[] ALIGN1 = {
[OPTION_IP_PAIR] = 8, [OPTION_IP_PAIR] = 8,
[OPTION_BOOLEAN] = 1, [OPTION_BOOLEAN] = 1,
[OPTION_STRING] = 1, [OPTION_STRING] = 1,
#if ENABLE_FEATURE_RFC3397 #if ENABLE_FEATURE_UDHCP_RFC3397
[OPTION_STR1035] = 1, [OPTION_STR1035] = 1,
#endif #endif
[OPTION_U8] = 1, [OPTION_U8] = 1,

View File

@ -13,7 +13,7 @@ enum {
OPTION_IP = 1, OPTION_IP = 1,
OPTION_IP_PAIR, OPTION_IP_PAIR,
OPTION_STRING, OPTION_STRING,
#if ENABLE_FEATURE_RFC3397 #if ENABLE_FEATURE_UDHCP_RFC3397
OPTION_STR1035, /* RFC1035 compressed domain name list */ OPTION_STR1035, /* RFC1035 compressed domain name list */
#endif #endif
OPTION_BOOLEAN, OPTION_BOOLEAN,
@ -109,7 +109,7 @@ uint8_t *get_option(struct dhcpMessage *packet, int code) FAST_FUNC;
int end_option(uint8_t *optionptr) FAST_FUNC; int end_option(uint8_t *optionptr) FAST_FUNC;
int add_option_string(uint8_t *optionptr, uint8_t *string) FAST_FUNC; int add_option_string(uint8_t *optionptr, uint8_t *string) FAST_FUNC;
int add_simple_option(uint8_t *optionptr, uint8_t code, uint32_t data) FAST_FUNC; int add_simple_option(uint8_t *optionptr, uint8_t code, uint32_t data) FAST_FUNC;
#if ENABLE_FEATURE_RFC3397 #if ENABLE_FEATURE_UDHCP_RFC3397
char *dname_dec(const uint8_t *cstr, int clen, const char *pre) FAST_FUNC; char *dname_dec(const uint8_t *cstr, int clen, const char *pre) FAST_FUNC;
uint8_t *dname_enc(const uint8_t *cstr, int clen, const char *src, int *retlen) FAST_FUNC; uint8_t *dname_enc(const uint8_t *cstr, int clen, const char *src, int *retlen) FAST_FUNC;
#endif #endif

View File

@ -18,7 +18,7 @@ static const uint8_t max_option_length[] = {
[OPTION_IP] = sizeof("255.255.255.255 "), [OPTION_IP] = sizeof("255.255.255.255 "),
[OPTION_IP_PAIR] = sizeof("255.255.255.255 ") * 2, [OPTION_IP_PAIR] = sizeof("255.255.255.255 ") * 2,
[OPTION_STRING] = 1, [OPTION_STRING] = 1,
#if ENABLE_FEATURE_RFC3397 #if ENABLE_FEATURE_UDHCP_RFC3397
[OPTION_STR1035] = 1, [OPTION_STR1035] = 1,
#endif #endif
[OPTION_BOOLEAN] = sizeof("yes "), [OPTION_BOOLEAN] = sizeof("yes "),
@ -109,7 +109,7 @@ static char *alloc_fill_opts(uint8_t *option, const struct dhcp_option *type_p,
memcpy(dest, option, len); memcpy(dest, option, len);
dest[len] = '\0'; dest[len] = '\0';
return ret; /* Short circuit this case */ return ret; /* Short circuit this case */
#if ENABLE_FEATURE_RFC3397 #if ENABLE_FEATURE_UDHCP_RFC3397
case OPTION_STR1035: case OPTION_STR1035:
/* unpack option into dest; use ret for prefix (i.e., "optname=") */ /* unpack option into dest; use ret for prefix (i.e., "optname=") */
dest = dname_dec(option, len, ret); dest = dname_dec(option, len, ret);

View File

@ -79,7 +79,7 @@ uint32_t FAST_FUNC reservedIp(struct static_lease *lease_struct, uint32_t ip)
return return_val; return return_val;
} }
#if ENABLE_FEATURE_UDHCP_DEBUG #if ENABLE_UDHCP_DEBUG
/* Print out static leases just to check what's going on */ /* Print out static leases just to check what's going on */
/* Takes the address of the pointer to the static_leases linked list */ /* Takes the address of the pointer to the static_leases linked list */
void FAST_FUNC printStaticLeases(struct static_lease **arg) void FAST_FUNC printStaticLeases(struct static_lease **arg)

View File

@ -556,7 +556,7 @@ CONFIG_FEATURE_CHAT_IMPLICIT_CR=y
# CONFIG_FEATURE_CHAT_CLR_ABORT is not set # CONFIG_FEATURE_CHAT_CLR_ABORT is not set
CONFIG_CHRT=y CONFIG_CHRT=y
CONFIG_CROND=y CONFIG_CROND=y
# CONFIG_DEBUG_CROND_OPTION is not set # CONFIG_FEATURE_CROND_D is not set
CONFIG_FEATURE_CROND_CALL_SENDMAIL=y CONFIG_FEATURE_CROND_CALL_SENDMAIL=y
CONFIG_CRONTAB=y CONFIG_CRONTAB=y
CONFIG_DC=y CONFIG_DC=y
@ -711,7 +711,7 @@ CONFIG_TFTPD=y
CONFIG_FEATURE_TFTP_GET=y CONFIG_FEATURE_TFTP_GET=y
CONFIG_FEATURE_TFTP_PUT=y CONFIG_FEATURE_TFTP_PUT=y
CONFIG_FEATURE_TFTP_BLOCKSIZE=y CONFIG_FEATURE_TFTP_BLOCKSIZE=y
# CONFIG_DEBUG_TFTP is not set # CONFIG_TFTP_DEBUG is not set
CONFIG_TRACEROUTE=y CONFIG_TRACEROUTE=y
# CONFIG_FEATURE_TRACEROUTE_VERBOSE is not set # CONFIG_FEATURE_TRACEROUTE_VERBOSE is not set
# CONFIG_FEATURE_TRACEROUTE_SOURCE_ROUTE is not set # CONFIG_FEATURE_TRACEROUTE_SOURCE_ROUTE is not set
@ -724,9 +724,9 @@ CONFIG_DHCPD_LEASES_FILE="/var/lib/misc/udhcpd.leases"
CONFIG_APP_UDHCPC=y CONFIG_APP_UDHCPC=y
CONFIG_FEATURE_UDHCPC_ARPING=y CONFIG_FEATURE_UDHCPC_ARPING=y
# CONFIG_FEATURE_UDHCP_PORT is not set # CONFIG_FEATURE_UDHCP_PORT is not set
# CONFIG_FEATURE_UDHCP_DEBUG is not set # CONFIG_UDHCP_DEBUG is not set
CONFIG_FEATURE_RFC3397=y CONFIG_FEATURE_UDHCP_RFC3397=y
CONFIG_DHCPC_DEFAULT_SCRIPT="/usr/share/udhcpc/default.script" CONFIG_UDHCPC_DEFAULT_SCRIPT="/usr/share/udhcpc/default.script"
CONFIG_UDHCPC_SLACK_FOR_BUGGY_SERVERS=80 CONFIG_UDHCPC_SLACK_FOR_BUGGY_SERVERS=80
CONFIG_VCONFIG=y CONFIG_VCONFIG=y
CONFIG_WGET=y CONFIG_WGET=y

View File

@ -403,10 +403,8 @@ config FEATURE_USE_TERMIOS
unable to move the cursor. unable to move the cursor.
config VOLUMEID config VOLUMEID
bool "Routines for detecting label and uuid on common filesystems" bool #No description makes it a hidden option
default n default n
help
TODO
config FEATURE_VOLUMEID_EXT config FEATURE_VOLUMEID_EXT
bool "Ext filesystem" bool "Ext filesystem"