busybox: add musl compatible nslookup replacement
[openwrt/openwrt.git] / package / utils / busybox / config / networking / Config.in
index 26bde152c5c254b723474e61b6e2855228420a58..e58746bdd72ebb843ffba46ea6227e782291c848 100644 (file)
@@ -55,7 +55,7 @@ config BUSYBOX_CONFIG_NC_SERVER
          Allow netcat to act as a server.
 
 config BUSYBOX_CONFIG_NC_EXTRA
-       bool "Netcat extensions (-eiw and filename)"
+       bool "Netcat extensions (-eiw and -f FILE)"
        default BUSYBOX_DEFAULT_NC_EXTRA
        depends on BUSYBOX_CONFIG_NC
        help
@@ -71,7 +71,7 @@ config BUSYBOX_CONFIG_NC_110_COMPAT
          This option makes nc closely follow original nc-1.10.
          The code is about 2.5k bigger. It enables
          -s ADDR, -n, -u, -v, -o FILE, -z options, but loses
-         busybox-specific extensions: -f FILE and -ll.
+         busybox-specific extensions: -f FILE.
 config BUSYBOX_CONFIG_PING
        bool "ping"
        default BUSYBOX_DEFAULT_PING
@@ -94,6 +94,89 @@ config BUSYBOX_CONFIG_FEATURE_FANCY_PING
        help
          Make the output from the ping applet include statistics, and at the
          same time provide full support for ICMP packets.
+config BUSYBOX_CONFIG_WGET
+       bool "wget"
+       default BUSYBOX_DEFAULT_WGET
+       help
+         wget is a utility for non-interactive download of files from HTTP
+         and FTP servers.
+
+config BUSYBOX_CONFIG_FEATURE_WGET_STATUSBAR
+       bool "Enable a nifty process meter (+2k)"
+       default BUSYBOX_DEFAULT_FEATURE_WGET_STATUSBAR
+       depends on BUSYBOX_CONFIG_WGET
+       help
+         Enable the transfer progress bar for wget transfers.
+
+config BUSYBOX_CONFIG_FEATURE_WGET_AUTHENTICATION
+       bool "Enable HTTP authentication"
+       default BUSYBOX_DEFAULT_FEATURE_WGET_AUTHENTICATION
+       depends on BUSYBOX_CONFIG_WGET
+       help
+         Support authenticated HTTP transfers.
+
+config BUSYBOX_CONFIG_FEATURE_WGET_LONG_OPTIONS
+       bool "Enable long options"
+       default BUSYBOX_DEFAULT_FEATURE_WGET_LONG_OPTIONS
+       depends on BUSYBOX_CONFIG_WGET && BUSYBOX_CONFIG_LONG_OPTS
+       help
+         Support long options for the wget applet.
+
+config BUSYBOX_CONFIG_FEATURE_WGET_TIMEOUT
+       bool "Enable timeout option -T SEC"
+       default BUSYBOX_DEFAULT_FEATURE_WGET_TIMEOUT
+       depends on BUSYBOX_CONFIG_WGET
+       help
+         Supports network read and connect timeouts for wget,
+         so that wget will give up and timeout, through the -T
+         command line option.
+
+         Currently only connect and network data read timeout are
+         supported (i.e., timeout is not applied to the DNS query). When
+         FEATURE_WGET_LONG_OPTIONS is also enabled, the --timeout option
+         will work in addition to -T.
+
+config BUSYBOX_CONFIG_FEATURE_WGET_OPENSSL
+       bool "Try to connect to HTTPS using openssl"
+       default BUSYBOX_DEFAULT_FEATURE_WGET_OPENSSL
+       depends on BUSYBOX_CONFIG_WGET
+       help
+         Choose how wget establishes SSL connection for https:// URLs.
+
+         Busybox itself contains no SSL code. wget will spawn
+         a helper program to talk over HTTPS.
+
+         OpenSSL has a simple SSL client for debug purposes.
+         If you select "openssl" helper, wget will effectively call
+         "openssl s_client -quiet -connect IP:443 2>/dev/null"
+         and pipe its data through it.
+         Note inconvenient API: host resolution is done twice,
+         and there is no guarantee openssl's idea of IPv6 address
+         format is the same as ours.
+         Another problem is that s_client prints debug information
+         to stderr, and it needs to be suppressed. This means
+         all error messages get suppressed too.
+         openssl is also a big binary, often dynamically linked
+         against ~15 libraries.
+
+config BUSYBOX_CONFIG_FEATURE_WGET_SSL_HELPER
+       bool "Try to connect to HTTPS using ssl_helper"
+       default BUSYBOX_DEFAULT_FEATURE_WGET_SSL_HELPER
+       depends on BUSYBOX_CONFIG_WGET
+       help
+         Choose how wget establishes SSL connection for https:// URLs.
+
+         Busybox itself contains no SSL code. wget will spawn
+         a helper program to talk over HTTPS.
+
+         ssl_helper is a tool which can be built statically
+         from busybox sources against a small embedded SSL library.
+         Please see networking/ssl_helper/README.
+         It does not require double host resolution and emits
+         error messages to stderr.
+
+         Precompiled static binary may be available at
+         http://busybox.net/downloads/binaries/
 config BUSYBOX_CONFIG_WHOIS
        bool "whois"
        default BUSYBOX_DEFAULT_WHOIS
@@ -227,6 +310,13 @@ config BUSYBOX_CONFIG_FEATURE_FTPD_ACCEPT_BROKEN_LIST
          it increases the code size by ~40 bytes.
          Most other ftp servers seem to behave similar to this.
 
+config BUSYBOX_CONFIG_FEATURE_FTP_AUTHENTICATION
+       bool "Enable authentication"
+       default BUSYBOX_DEFAULT_FEATURE_FTP_AUTHENTICATION
+       depends on BUSYBOX_CONFIG_FTPD
+       help
+         Enable basic system login as seen in telnet etc.
+
 config BUSYBOX_CONFIG_FTPGET
        bool "ftpget"
        default BUSYBOX_DEFAULT_FTPGET
@@ -267,14 +357,6 @@ config BUSYBOX_CONFIG_FEATURE_HTTPD_RANGES
          "Range: bytes=NNN-[MMM]" header. Allows for resuming interrupted
          downloads, seeking in multimedia players etc.
 
-config BUSYBOX_CONFIG_FEATURE_HTTPD_USE_SENDFILE
-       bool "Use sendfile system call"
-       default BUSYBOX_DEFAULT_FEATURE_HTTPD_USE_SENDFILE
-       depends on BUSYBOX_CONFIG_HTTPD
-       help
-         When enabled, httpd will use the kernel sendfile() function
-         instead of read/write loop.
-
 config BUSYBOX_CONFIG_FEATURE_HTTPD_SETUID
        bool "Enable -u <user> option"
        default BUSYBOX_DEFAULT_FEATURE_HTTPD_SETUID
@@ -292,14 +374,22 @@ config BUSYBOX_CONFIG_FEATURE_HTTPD_BASIC_AUTH
        help
          Utilizes password settings from /etc/httpd.conf for basic
          authentication on a per url basis.
+         Example for httpd.conf file:
+         /adm:toor:PaSsWd
 
 config BUSYBOX_CONFIG_FEATURE_HTTPD_AUTH_MD5
        bool "Support MD5 crypted passwords for http Authentication"
        default BUSYBOX_DEFAULT_FEATURE_HTTPD_AUTH_MD5
        depends on BUSYBOX_CONFIG_FEATURE_HTTPD_BASIC_AUTH
        help
-         Enables basic per URL authentication from /etc/httpd.conf
-         using md5 passwords.
+         Enables encrypted passwords, and wildcard user/passwords
+         in httpd.conf file.
+         User '*' means 'any system user name is ok',
+         password of '*' means 'use system password for this user'
+         Examples:
+         /adm:toor:$1$P/eKnWXS$aI1aPGxT.dJD5SzqAKWrF0
+         /adm:root:*
+         /wiki:*:*
 
 config BUSYBOX_CONFIG_FEATURE_HTTPD_CGI
        bool "Support Common Gateway Interface (CGI)"
@@ -316,8 +406,8 @@ config BUSYBOX_CONFIG_FEATURE_HTTPD_CONFIG_WITH_SCRIPT_INTERPR
        help
          This option enables support for running scripts through an
          interpreter. Turn this on if you want PHP scripts to work
-         properly. You need to supply an additional line in your httpd
-         config file:
+         properly. You need to supply an additional line in your
+         httpd.conf file:
          *.php:/path/to/your/php
 
 config BUSYBOX_CONFIG_FEATURE_HTTPD_SET_REMOTE_PORT_TO_ENV
@@ -583,7 +673,7 @@ config BUSYBOX_CONFIG_FEATURE_INETD_SUPPORT_BUILTIN_CHARGEN
 
 config BUSYBOX_CONFIG_FEATURE_INETD_RPC
        bool "Support RPC services"
-       default BUSYBOX_DEFAULT_FEATURE_INETD_RPC
+       default BUSYBOX_DEFAULT_FEATURE_INETD_RPC  # very rarely used, and needs Sun RPC support in libc
        depends on BUSYBOX_CONFIG_INETD
        select BUSYBOX_CONFIG_FEATURE_HAVE_RPC
        help
@@ -619,6 +709,13 @@ config BUSYBOX_CONFIG_FEATURE_IP_ROUTE
        help
          Add support for routing table management to "ip".
 
+config BUSYBOX_CONFIG_FEATURE_IP_ROUTE_DIR
+       string "ip route configuration directory"
+       default BUSYBOX_DEFAULT_FEATURE_IP_ROUTE_DIR
+       depends on BUSYBOX_CONFIG_FEATURE_IP_ROUTE
+       help
+         Location of the "ip" applet routing configuration.
+
 config BUSYBOX_CONFIG_FEATURE_IP_TUNNEL
        bool "ip tunnel"
        default BUSYBOX_DEFAULT_FEATURE_IP_TUNNEL
@@ -633,6 +730,13 @@ config BUSYBOX_CONFIG_FEATURE_IP_RULE
        help
          Add support for rule commands to "ip".
 
+config BUSYBOX_CONFIG_FEATURE_IP_NEIGH
+       bool "ip neighbor"
+       default BUSYBOX_DEFAULT_FEATURE_IP_NEIGH
+       depends on BUSYBOX_CONFIG_IP
+       help
+         Add support for neighbor commands to "ip".
+
 config BUSYBOX_CONFIG_FEATURE_IP_SHORT_FORMS
        bool "Support short forms of ip commands"
        default BUSYBOX_DEFAULT_FEATURE_IP_SHORT_FORMS
@@ -644,6 +748,7 @@ config BUSYBOX_CONFIG_FEATURE_IP_SHORT_FORMS
          ip route  -> iproute
          ip tunnel -> iptunnel
          ip rule   -> iprule
+         ip neigh  -> ipneigh
 
          Say N unless you desparately need the short form of the ip
          object commands.
@@ -683,6 +788,11 @@ config BUSYBOX_CONFIG_IPRULE
        default BUSYBOX_DEFAULT_IPRULE
        depends on BUSYBOX_CONFIG_FEATURE_IP_SHORT_FORMS && BUSYBOX_CONFIG_FEATURE_IP_RULE
 
+config BUSYBOX_CONFIG_IPNEIGH
+       bool
+       default BUSYBOX_DEFAULT_IPNEIGH
+       depends on BUSYBOX_CONFIG_FEATURE_IP_SHORT_FORMS && BUSYBOX_CONFIG_FEATURE_IP_NEIGH
+
 config BUSYBOX_CONFIG_IPCALC
        bool "ipcalc"
        default BUSYBOX_DEFAULT_IPCALC
@@ -740,6 +850,20 @@ config BUSYBOX_CONFIG_NSLOOKUP
        help
          nslookup is a tool to query Internet name servers.
 
+config BUSYBOX_CONFIG_NSLOOKUP_LEDE
+       bool "nslookup_lede"
+       depends on !BUSYBOX_CONFIG_NSLOOKUP
+       default BUSYBOX_DEFAULT_NSLOOKUP_LEDE
+       help
+         nslookup is a tool to query Internet name servers (LEDE flavor).
+
+config BUSYBOX_CONFIG_FEATURE_NSLOOKUP_LEDE_LONG_OPTIONS
+       bool "Enable long options"
+       default BUSYBOX_DEFAULT_FEATURE_NSLOOKUP_LEDE_LONG_OPTIONS
+       depends on BUSYBOX_CONFIG_NSLOOKUP_LEDE && BUSYBOX_CONFIG_LONG_OPTS
+       help
+         Support long options for the nslookup applet.
+
 config BUSYBOX_CONFIG_NTPD
        bool "ntpd"
        default BUSYBOX_DEFAULT_NTPD
@@ -755,6 +879,14 @@ config BUSYBOX_CONFIG_FEATURE_NTPD_SERVER
          Make ntpd usable as a NTP server. If you disable this option
          ntpd will be usable only as a NTP client.
 
+config BUSYBOX_CONFIG_FEATURE_NTPD_CONF
+       bool "Make ntpd understand /etc/ntp.conf"
+       default BUSYBOX_DEFAULT_FEATURE_NTPD_CONF
+       depends on BUSYBOX_CONFIG_NTPD
+       help
+         Make ntpd look in /etc/ntp.conf for peers. Only "server address"
+         is supported.
+
 config BUSYBOX_CONFIG_PSCAN
        bool "pscan"
        default BUSYBOX_DEFAULT_PSCAN
@@ -834,8 +966,7 @@ config BUSYBOX_CONFIG_TELNETD
 
          Note that for busybox telnetd to work you need several things:
          First of all, your kernel needs:
-                 UNIX98_PTYS=y
-                 DEVPTS_FS=y
+                 CONFIG_UNIX98_PTYS=y
 
          Next, you need a /dev/pts directory on your root filesystem:
 
@@ -1007,7 +1138,7 @@ config BUSYBOX_CONFIG_FEATURE_TUNCTL_UG
          Allow to specify owner and group of newly created interface.
          340 bytes of pure bloat. Say no here.
 
-source package/utils/busybox/config/networking/udhcp/Config.in
+source udhcp/Config.in
 
 config BUSYBOX_CONFIG_IFUPDOWN_UDHCPC_CMD_OPTIONS
        string "ifup udhcpc command line options"
@@ -1032,46 +1163,6 @@ config BUSYBOX_CONFIG_VCONFIG
        help
          Creates, removes, and configures VLAN interfaces
 
-config BUSYBOX_CONFIG_WGET
-       bool "wget"
-       default BUSYBOX_DEFAULT_WGET
-       help
-         wget is a utility for non-interactive download of files from HTTP,
-         HTTPS, and FTP servers.
-
-config BUSYBOX_CONFIG_FEATURE_WGET_STATUSBAR
-       bool "Enable a nifty process meter (+2k)"
-       default BUSYBOX_DEFAULT_FEATURE_WGET_STATUSBAR
-       depends on BUSYBOX_CONFIG_WGET
-       help
-         Enable the transfer progress bar for wget transfers.
-
-config BUSYBOX_CONFIG_FEATURE_WGET_AUTHENTICATION
-       bool "Enable HTTP authentication"
-       default BUSYBOX_DEFAULT_FEATURE_WGET_AUTHENTICATION
-       depends on BUSYBOX_CONFIG_WGET
-       help
-         Support authenticated HTTP transfers.
-
-config BUSYBOX_CONFIG_FEATURE_WGET_LONG_OPTIONS
-       bool "Enable long options"
-       default BUSYBOX_DEFAULT_FEATURE_WGET_LONG_OPTIONS
-       depends on BUSYBOX_CONFIG_WGET && BUSYBOX_CONFIG_LONG_OPTS
-       help
-         Support long options for the wget applet.
-
-config BUSYBOX_CONFIG_FEATURE_WGET_TIMEOUT
-       bool "Enable read timeout option -T SEC"
-       default BUSYBOX_DEFAULT_FEATURE_WGET_TIMEOUT
-       depends on BUSYBOX_CONFIG_WGET
-       help
-         Supports network read timeout for wget, so that wget will give
-         up and timeout when reading network data, through the -T command
-         line option.  Currently only network data read timeout is
-         supported (i.e., timeout is not applied to the DNS nor TCP
-         connection initialization).  When FEATURE_WGET_LONG_OPTIONS is
-         also enabled, the --timeout option will work in addition to -T.
-
 config BUSYBOX_CONFIG_ZCIP
        bool "zcip"
        default BUSYBOX_DEFAULT_ZCIP